/* ============================================================
   auth.css — PixManager Páginas de Autenticação
   Usado por: login.html e cadastro.html
   
   Organização:
   1. Variáveis
   2. Reset e base
   3. Card central de autenticação
   4. Logo
   5. Títulos e subtítulos
   6. Campos de formulário
   7. Botão de submit
   8. Links e mensagens
   9. Alertas de erro e sucesso
   10. Badges especiais (assinatura inativa, etc.)
============================================================ */


/* ── 1. VARIÁVEIS ───────────────────────────────────────────*/
:root {
  --verde:      #00c853;
  --verde-dark: #00a040;
  --bg-dark:    #0a0d12;
  --bg-card:    #111722;
  --border:     rgba(255, 255, 255, 0.07);
  --muted:      #8a94a6;
  --white:      #f0f4ff;
  --danger:     rgba(220, 53, 69, 0.15);
  --danger-border: rgba(220, 53, 69, 0.3);
  --danger-text: #f87171;
}


/* ── 2. RESET E BASE ────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--white);

  /* Centraliza o card na tela verticalmente */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
}


/* ── 3. CARD CENTRAL ────────────────────────────────────────
   Container branco/escuro que agrupa o formulário.
──────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px; /* Largura máxima do card */
}


/* ── 4. LOGO ────────────────────────────────────────────────*/
.auth-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.auth-logo .accent {
  color: var(--verde);
}


/* ── 5. TÍTULOS ─────────────────────────────────────────────*/
.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}


/* ── 6. CAMPOS DE FORMULÁRIO ────────────────────────────────*/
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0c8d8;
  margin-bottom: 0.4rem;
  display: block;
}

/* Input e select */
.form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 200, 83, 0.5);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #4a5568;
}

/* Campo com botão de ver/ocultar senha */
.pass-toggle {
  position: relative;
}

/* Ícone de olho dentro do campo de senha */
.pass-toggle .toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Input de senha com espaço para o ícone */
.pass-toggle .form-control {
  padding-right: 2.8rem;
}

/* Espaçamento entre campos */
.form-group {
  margin-bottom: 1.1rem;
}


/* ── 7. BOTÃO DE SUBMIT ─────────────────────────────────────*/
.btn-submit {
  width: 100%;
  background: var(--verde);
  color: #000;
  font-weight: 700;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-submit:hover {
  background: var(--verde-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.25);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ── 8. LINKS E NAVEGAÇÃO ENTRE PÁGINAS ─────────────────────*/
.auth-link {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.auth-link a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}


/* ── 9. ALERTAS ─────────────────────────────────────────────
   Mensagens de erro e sucesso que aparecem no formulário.
──────────────────────────────────────────────────────────── */
.alert-msg {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none; /* Escondido por padrão, exibido via JS */
}

/* Alerta de erro (vermelho) */
.alert-erro {
  background: var(--danger);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

/* Alerta de sucesso (verde) */
.alert-ok {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: var(--verde);
}


/* ── 10. BADGE DE ASSINATURA INATIVA ────────────────────────
   Aparece no login quando o usuário tem assinatura pendente.
──────────────────────────────────────────────────────────── */
.badge-inativo {
  display: none; /* Exibido via JS quando necessário */
  background: var(--danger);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  text-align: center;
}

.badge-inativo a {
  color: var(--danger-text);
  font-weight: 700;
}


/* ── LOGO PADRÃO ────────────────────────────────────────────
   Quadrado verde com raio amarelo — igual em todas as páginas
──────────────────────────────────────────────────────────── */
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #00c853;      /* Verde */
  border-radius: 8px;
  color: #FFD600;           /* Raio amarelo */
  font-size: 1rem;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   BOTÃO GOOGLE + DIVISOR — login.html e cadastro.html
═══════════════════════════════════════════════════════════ */
.btn-google {
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1rem;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.btn-google svg   { width: 20px; height: 20px; flex-shrink: 0; }

.divider-ou {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: #4a5568;
  font-size: 0.82rem;
}
.divider-ou::before,
.divider-ou::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ═══════════════════════════════════════════════════════════
   ALERTA E-MAIL NÃO VERIFICADO — login.html
═══════════════════════════════════════════════════════════ */
.alert-nao-verificado {
  background: rgba(255,184,77,0.1);
  border: 1px solid rgba(255,184,77,0.3);
  color: #ffb84d;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none;
}
.alert-nao-verificado a { color: #ffb84d; font-weight: 700; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   FORÇA DE SENHA — cadastro.html e redefinir-senha.html
═══════════════════════════════════════════════════════════ */
.senha-requisitos {
  margin-top: 0.5rem;
  display: none;
}
.req-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #4a5568;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.req-item.ok   { color: #00c853; }
.req-item.erro { color: #f87171; }
.req-item i    { font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════════════
   EMAIL VERIFICADO — email-verificado.html
═══════════════════════════════════════════════════════════ */
.icone-ok {
  width: 80px;
  height: 80px;
  background: rgba(0,200,83,0.12);
  border: 2px solid rgba(0,200,83,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #00c853;
  margin: 0 auto 1.5rem;
}
.pulsar { animation: pulsar 2s infinite; }

@keyframes pulsar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.3); }
  50%       { box-shadow: 0 0 0 14px rgba(0,200,83,0); }
}

.instrucao {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #8a94a6;
  line-height: 1.7;
  text-align: left;
}
.instrucao strong { color: #f0f4ff; }

/* ═══════════════════════════════════════════════════════════
   TELA DE ESPERA PÓS-CADASTRO — cadastro.html
═══════════════════════════════════════════════════════════ */
.espera-container     { text-align: center; padding: 0.5rem 0; }
.espera-icone         { font-size: 2rem; color: #00c853; margin: 0 auto 1.25rem; width: 80px; height: 80px; background: rgba(0,200,83,0.1); border: 2px solid rgba(0,200,83,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pulsar-box           { animation: pulsar 2s infinite; }
.espera-titulo        { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 700; color: #f0f4ff; margin-bottom: 0.5rem; }
.espera-texto         { color: #8a94a6; font-size: 0.88rem; line-height: 1.7; margin: 0 0 1.25rem; }
.espera-polling       { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.8rem; color: #4a5568; margin-bottom: 1rem; }
.espera-dot           { display: inline-block; width: 8px; height: 8px; background: #00c853; border-radius: 50%; }
.piscar-dot           { animation: piscar 1s infinite; }
.espera-dica          { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.8rem; color: #4a5568; line-height: 1.6; text-align: left; }

@keyframes piscar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}


/* ═══════════════════════════════════════════════════════════
   UTILITÁRIOS DE LAYOUT — auth pages (link-expirado, verificacao-expirada, login)
═══════════════════════════════════════════════════════════ */

/* Cartão centralizado (link-expirado, verificacao-expirada) */
.auth-card-center { text-align: center; }

/* Ícone de status grande (emoji) */
.auth-status-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Subtítulo de status com margem inferior */
.auth-status-sub {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Link de ação inline (ex: "Solicitar novo link") */
.auth-action-link {
  text-decoration: none;
  display: flex;
}

/* Área de ação com texto à esquerda */
.auth-action-body { text-align: left; }

/* Margem superior de rodapé de cartão auth */
.auth-card-footer { margin-top: 1rem; }

/* Link discreto de esqueci senha (login.html) */
.auth-link-muted {
  color: #8a94a6;
  font-size: 0.82rem;
}

/* Margem do bloco de link esqueci senha */
.auth-link-forgot { margin-top: 0.75rem; }

/* ── Cartão centralizado com largura limitada (email-verificado) */
.auth-card-narrow { max-width: 420px; }

/* ── Título de página auth com margem reduzida */
.auth-title-compact { margin-bottom: 0.5rem; }

/* ── Subtítulo auth sem margem inferior */
.auth-sub-flush { text-align: center; margin-bottom: 0; }

/* ── Bloco de nota/instrução abaixo do card */
.auth-nota {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #4a5568;
}

/* ── Link de destaque verde */
.auth-link-accent {
  color: #00c853;
  text-decoration: none;
  font-weight: 600;
}

/* ── Ícone grande de status (emoji) nas páginas de estado */
.auth-status-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ── Subtítulo de estado com margem personalizada */
.auth-status-sub-lg { margin-bottom: 1.5rem; text-align: center; }
.auth-status-sub-md { margin-bottom: 1.5rem; }

/* ── Formulário inline com label à esquerda */
.auth-form-left { text-align: left; }

/* ── Rodapé do card auth com margem superior */
.auth-card-footer-mt { margin-top: 1rem; }

/* ── Link de "Esqueci minha senha" discreto */
.auth-link-forgot-wrap { margin-top: 0.75rem; }
.auth-link-muted {
  color: #8a94a6;
  font-size: 0.82rem;
}

/* ── Botão submit estilizado como link (ex: link-expirado) */
.btn-submit-link {
  text-decoration: none;
  display: flex;
}
