/*
  ═══════════════════════════════════════════════════════
  06-AUTH-ONBOARDING.CSS
  ═══════════════════════════════════════════════════════
  Telas de autenticação, login e onboarding inicial do usuário.

  COMO EDITAR:
  - Altere variáveis de cor, espaçamento e sombras preferencialmente em 01-base.css.
  - Evite duplicar classes: procure primeiro se já existe um componente equivalente.
  - Comentários com 'AJUSTE AQUI' indicam pontos comuns de personalização.
*/

/* ── Empty State ── */
      .empty-state {
        padding: 44px 24px;
        text-align: center;
      }
      .empty-icon {
        margin-bottom: 14px;
        display: flex;
        justify-content: center;
      }
      .empty-icon svg {
        width: 44px;
        height: 44px;
        stroke: var(--grey-l);
        fill: none;
        stroke-width: 1.5;
      }
      .empty-title {
        font-size: 17px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 7px;
      }
      .empty-sub {
        font-size: 13px;
        color: var(--grey);
        margin-bottom: 18px;
        line-height: 1.6;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
      }

      /* ── Step Cards ── */
      .step-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        border-radius: var(--r);
        background: var(--surface-2);
        margin-bottom: 8px;
        border: 1px solid rgba(14, 33, 64, 0.05);
      }
      .step-num {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: var(--navy);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 13px;
        flex-shrink: 0;
      }
      .step-card h4 {
        font-size: 13px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 2px;
      }
      .step-card p {
        font-size: 12px;
        color: var(--grey);
        line-height: 1.5;
      }

      /* ── Intro ── */
      .intro-hero {
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
        color: #fff;
        border-radius: var(--r-xl);
        padding: 28px;
        box-shadow: var(--sh-lg);
        margin-bottom: 18px;
      }
      .intro-hero p {
        color: rgba(255, 255, 255, 0.72);
        line-height: 1.7;
        font-size: 14px;
      }
      .intro-guide {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
      }
      .intro-step {
        background: var(--surface);
        border: 1px solid rgba(14, 33, 64, 0.06);
        border-radius: var(--r-lg);
        padding: 20px;
        box-shadow: var(--sh);
      }
      .intro-step-num {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: var(--teal-lt);
        color: var(--teal-d);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        margin-bottom: 10px;
        border: 1px solid rgba(13, 143, 110, 0.18);
      }

      /* ── Onboarding ── */
      /* Onboarding: fluxo inicial de configuração do usuário. */
      #onboarding {
        position: fixed;
        inset: 0;
        background: var(--navy);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .ob-progress {
        display: flex;
        gap: 5px;
        padding: 18px 22px 0;
      }
      .ob-step-dot {
        flex: 1;
        height: 2px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.12);
        transition: background 0.3s;
      }
      .ob-step-dot.done {
        background: var(--teal);
      }
      .ob-content {
        flex: 1;
        overflow-y: auto;
        padding: 28px 22px;
      }
      .ob-footer {
        padding: 18px 22px 36px;
        display: flex;
        gap: 10px;
      }
      .ob-icon {
        margin-bottom: 18px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: rgba(71, 201, 168, 0.15);
        border: 1px solid rgba(71, 201, 168, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .ob-icon svg {
        width: 28px;
        height: 28px;
        stroke: var(--teal-b);
        fill: none;
        stroke-width: 1.8;
      }
      .ob-title {
        font-size: 26px;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
        margin-bottom: 10px;
      }
      .ob-sub {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.52);
        line-height: 1.65;
      }
      .ob-pillar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        margin-bottom: 8px;
        border-left: 3px solid var(--teal);
      }
      .ob-pillar-letter {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        background: var(--teal);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 15px;
        color: #fff;
        flex-shrink: 0;
      }
      .ob-pillar-text {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.7);
      }
      .ob-pillar-text strong {
        color: #fff;
      }
      .ob-input-dark {
        background: rgba(255, 255, 255, 0.07);
        border: 1.5px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--r);
        padding: 11px 14px;
        font-size: 14px;
        color: #fff;
        width: 100%;
        transition: border-color 0.2s;
      }
      .ob-input-dark::placeholder {
        color: rgba(255, 255, 255, 0.28);
      }
      .ob-input-dark:focus {
        outline: none;
        border-color: var(--teal);
      }
      .ob-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.35);
        text-transform: uppercase;
        display: block;
        margin-bottom: 7px;
      }
      .ob-gasto-tag {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(71, 201, 168, 0.12);
        border: 1px solid rgba(71, 201, 168, 0.25);
        border-radius: 100px;
        padding: 5px 12px;
        font-size: 12px;
        color: var(--teal-b);
        margin: 4px;
      }
      .ob-part-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--r);
        padding: 14px;
        margin-bottom: 8px;
      }
      .ob-part-num {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--teal);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 12px;
        color: #fff;
        flex-shrink: 0;
      }

      /* ── Login Screen ── */
      /* Tela de login: controla a primeira tela antes do app aparecer. */
      #login-screen {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: flex;
        min-height: 100vh;
      }
      .login-left {
        flex: 1;
        background: linear-gradient(
          145deg,
          #0a1929 0%,
          #122038 60%,
          #0a1929 100%
        );
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 56px;
        position: relative;
        overflow: hidden;
      }
      .login-left::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -80px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(71, 201, 168, 0.08),
          transparent 70%
        );
        pointer-events: none;
      }
      .login-left::after {
        content: "";
        position: absolute;
        bottom: -60px;
        left: -40px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(71, 201, 168, 0.05),
          transparent 70%
        );
        pointer-events: none;
      }
      .login-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 44px;
      }
      .login-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--teal);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        font-weight: 800;
        color: #fff;
      }
      .login-brand-name {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.08em;
      }
      .login-brand-sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.35);
        margin-top: 1px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }
      .login-headline {
        font-family: "DM Serif Display", Georgia, serif;
        font-size: 36px;
        font-weight: 400;
        color: #fff;
        line-height: 1.18;
        margin-bottom: 16px;
        max-width: 420px;
      }
      .login-headline em {
        color: var(--teal-b);
        font-style: italic;
      }
      .login-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.5);
        line-height: 1.7;
        max-width: 360px;
        margin-bottom: 36px;
      }
      .login-features {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .login-feature {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .login-feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(71, 201, 168, 0.1);
        border: 1px solid rgba(71, 201, 168, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .login-feature-icon svg {
        width: 17px;
        height: 17px;
        stroke: var(--teal-b);
        fill: none;
        stroke-width: 1.8;
      }
      .login-feature-text {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.4;
      }
      .login-feature-text strong {
        color: #fff;
        font-weight: 600;
      }
      .login-right {
        width: 440px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 44px;
      }
      .login-form-box {
        width: 100%;
        max-width: 340px;
      }
      .login-form-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 5px;
      }
      .login-form-sub {
        font-size: 13px;
        color: var(--grey);
        margin-bottom: 28px;
        line-height: 1.5;
      }
      .login-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 22px 0;
        color: var(--grey);
        font-size: 12px;
      }
      .login-divider::before,
      .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--grey-l);
      }
      .login-privacy {
        font-size: 11px;
        color: var(--grey);
        text-align: center;
        margin-top: 18px;
        line-height: 1.6;
      }
      @media (max-width: 760px) {
        .login-left {
          display: none;
        }
        .login-right {
          width: 100%;
          padding: 28px 22px;
        }
      }

/* ══════════════════════════════════════════════════════
   AUTH — Design renovado (tabs + campos dinâmicos)
   ══════════════════════════════════════════════════════ */

/* Estatísticas na coluna esquerda */
.login-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.login-stat {
  flex: 1;
  text-align: center;
}
.login-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-b);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.login-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}
.login-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Tabs de login/signup */
.login-tabs {
  display: flex;
  background: #f0f3f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.login-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.18s ease;
}
.login-tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(14,33,64,0.12), 0 1px 2px rgba(14,33,64,0.06);
}

/* Saudação do formulário */
.login-form-greeting {
  margin-bottom: 24px;
}
.login-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.login-form-sub {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Mensagens de erro/sucesso */
.auth-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-msg-error {
  background: var(--red-t);
  border: 1px solid rgba(190,58,49,0.18);
  color: var(--red);
}
.auth-msg-success {
  background: var(--grn-t);
  border: 1px solid rgba(13,122,86,0.18);
  color: var(--green);
}

/* Campos do formulário */
.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}
.auth-label svg {
  stroke: var(--grey-l);
  flex-shrink: 0;
}
.auth-input-wrap {
  position: relative;
}
.auth-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--grey-xl);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.auth-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,143,110,0.1);
}
.auth-input::placeholder {
  color: #b5bec8;
}
.auth-input-wrap .auth-input {
  padding-right: 42px;
}
.auth-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  opacity: 0.45;
  transition: opacity 0.15s;
  color: var(--grey);
}
.auth-eye:hover { opacity: 0.8; }

/* Hint de campo */
.auth-field-hint {
  margin-top: 6px;
  text-align: right;
}
.auth-link-sm {
  font-size: 12px;
  color: var(--grey);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-link-sm:hover { color: var(--teal-d); }

/* Botão primário */
.auth-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(14,33,64,0.22);
}
.auth-btn-primary:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14,33,64,0.28);
}
.auth-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14,33,64,0.18);
}
.auth-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Login privacy */
.login-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #9eaab5;
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
}
.login-privacy svg {
  stroke: #b5bec8;
  flex-shrink: 0;
}

/* Progresso do cadastro */
.signup-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--grey-xl);
}
.signup-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #b5bec8;
  transition: color 0.2s;
}
.signup-progress-step.active,
.signup-progress-step.done {
  color: var(--navy);
}
.signup-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grey-xl);
  color: #9eaab5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.signup-progress-step.active .signup-step-dot,
.signup-progress-step.done .signup-step-dot {
  background: var(--teal);
  color: #fff;
}
.signup-progress-line {
  flex: 1;
  height: 2px;
  background: var(--grey-xl);
  margin: 0 10px;
  border-radius: 100px;
  transition: background 0.3s;
}
.signup-progress-line.active {
  background: var(--teal);
}

/* Barra de força da senha */
.pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.pwd-strength-bar {
  flex: 1;
  height: 3px;
  background: var(--grey-xl);
  border-radius: 100px;
  overflow: hidden;
}
.pwd-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength-label {
  font-size: 11px;
  font-weight: 700;
  min-width: 70px;
  text-align: right;
  transition: color 0.3s;
}

/* Botão voltar na tela de recuperação */
.auth-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--grey);
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.15s;
  font-family: inherit;
}
.auth-back-btn:hover { color: var(--navy); }

/* Mobile: ocultar painel esquerdo abaixo de 760px */
@media (max-width: 760px) {
  .login-stats { display: none; }
  .login-tabs { margin-bottom: 22px; }
  .login-form-title { font-size: 20px; }
}
