/* Telas de autenticacao (login, cadastro, esqueci-senha, redefinir-senha).
   Usa as variaveis de cor/raio/sombra (--accent, --panel, --border etc.)
   definidas no :root de style.css - este arquivo nao redeclara nenhuma,
   entao style.css precisa ser carregado antes deste no <head>. */

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-title {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-low);
  line-height: 1.5;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.auth-alert.is-success {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.25);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.4); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-low);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
}

.auth-field input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-hi);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-field small { font-size: 11px; color: var(--text-low); }

.auth-esqueci-senha { margin: -8px 0 0; text-align: right; }
.auth-esqueci-senha a { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-esqueci-senha a:hover { text-decoration: underline; }

/* Icone circular mostrado na tela de "email enviado" (apos submeter o
   formulario de esqueci-senha) */
.auth-confirmacao-icone {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
#esqueci-passo-confirmacao .auth-subtitle { margin-bottom: 22px; }
#esqueci-passo-confirmacao .auth-subtitle strong { color: var(--text-hi); font-weight: 600; }

.auth-submit {
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-top: 4px;
}

.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.auth-footer {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-low);
}
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 480px) {
  .auth-shell { padding: 20px 14px; }
  .auth-card { padding: 26px 22px 22px; }
  .auth-title { font-size: 18px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 22px 16px 18px; }
  .auth-brand h1 { font-size: 18px; }
  .btn-google { padding: 10px 12px; font-size: 12.5px; }
}
