* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --color-primary: #1fd7a3;
  --color-primary-hover: #12a77c;
  --color-primary-soft: #e8fff7;
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-text-main: #111111;
  --color-text-body: #666666;
  --color-border: #dddddd;
  --color-shadow: rgba(0, 0, 0, 0.2);
  --login-image-overlay: rgba(31, 215, 163, 0.42);
  --transition: all 0.3s ease;
}

html.theme-dark {
  color-scheme: dark;

  --color-primary: #34d399;
  --color-primary-hover: #22c55e;
  --color-primary-soft: rgba(34, 197, 94, 0.14);
  --color-bg: #07130d;
  --color-surface: #0d2117;
  --color-text-main: #ecfdf5;
  --color-text-body: #a7d9b8;
  --color-border: rgba(134, 239, 172, 0.24);
  --color-shadow: rgba(0, 0, 0, 0.52);
  --login-image-overlay: rgba(6, 95, 70, 0.52);
}

/* Layout dividido */
body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--color-text-main);
  background: var(--color-bg);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Lado esquerdo */
.left-side {
  width: 50%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-primary);
  /* Substitua o caminho abaixo pela imagem definitiva da tela de login. */
  background-image:
    linear-gradient(var(--login-image-overlay), var(--login-image-overlay)),
    url("../imagens/imagem_login/265689-entenda-a-importancia-da-acessibilidade-nos-restaurantes.jpg");
  background-size: cover;
  background-position: 80% center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: inline-flex;
}

.logo img {
  width: 50px;
}

.logo h2 {
  color: white;
}

/* Lado direito */
.right-side {
  width: 50%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-bg);
  padding: 30px;
}

.login-theme-toggle.theme-toggle {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;
}

/* Container login */
.login-container {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px var(--color-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.login-container h1 {
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.login-container p {
  color: var(--color-text-body);
  margin-bottom: 20px;
}

/* Botão Google */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-main);
  cursor: pointer;
  transition: 0.3s;
}

.google-btn img {
  width: 20px;
}

.google-btn:hover {
  background: var(--color-primary-soft);
}

.terms-text {
  font-size: 13px;
  line-height: 1.5;
}

.login-container .terms-text {
  margin-bottom: 0;
}

.terms-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Status */
#status {
  margin-top: 15px;
  font-size: 14px;
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  body {
    position: relative;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(var(--login-image-overlay), var(--login-image-overlay)),
      url("../imagens/imagem_login/265689-entenda-a-importancia-da-acessibilidade-nos-restaurantes.jpg");
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat;
  }

  .left-side {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 24px;
    background: transparent;
    pointer-events: none;
    z-index: 0;
  }

  .logo {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    pointer-events: auto;
  }

  .right-side {
    width: 100%;
    min-height: 100dvh;
    padding: 88px 20px 32px;
    background: transparent;
    z-index: 1;
  }

  .login-theme-toggle.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 3;
  }

  .login-container {
    background: rgba(255, 255, 255, 0.92);
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    padding: 32px 24px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
  }
}

@media (max-width: 360px) {
  .left-side {
    padding: 20px;
  }

  .right-side {
    padding: 82px 16px 24px;
  }

  .login-theme-toggle.theme-toggle {
    top: 16px;
    right: 16px;
    left: auto;
  }

  .login-container {
    padding: 28px 20px;
  }
}
