/* ═══════════════════════════════════════════════════════════════════════
   AUTH DESIGN SYSTEM — telas de autenticação do admin (login, cadastro,
   recuperação, 2FA) no split-layout do Figma/Stitch "Premiação Top".
   Valores extraídos do design (mesmos tokens da vitrine): verde, Nunito,
   raios 16/12/10/8px. Sem Tailwind — CSS próprio, escopado em .auth-ds.
   ═══════════════════════════════════════════════════════════════════════ */

.auth-ds {
    --a-bg: #f9fafb; 
    --a-surface: #fefeff;
    --a-surface-alt: #f2f4f7;
    --a-border: #e8ebef;
    --a-text: #2c2c2c;
    --a-text-2: #8f8f8f;
    --a-brand-dark: #032303;   /* painel de marca */
    --a-brand: #00c200;
    --a-brand-green-dark: #008100;
    --a-action: #00fc93;       /* botão primário */
    --a-action-text: #05391f;
    --a-mint: #20d39c;
    --a-err: #ba1a1a;
    --a-err-bg: #fff2f2;
    --a-err-border: #ffdad6;

    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--a-text);
    background: var(--a-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .auth-ds { flex-direction: row; }
}

/* ── Painel de marca (esquerda) ─────────────────────────────────────── */
.auth-ds .auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--a-brand-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .auth-ds .auth-brand { width: 45%; padding: 60px; }
}

/* Grafismos sutis (círculos borrados) */
.auth-ds .auth-brand::before,
.auth-ds .auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}
.auth-ds .auth-brand::before {
    width: 400px; height: 400px;
    right: -80px; bottom: -80px;
    background: rgba(32, 211, 156, 0.12);
}
.auth-ds .auth-brand::after {
    width: 300px; height: 300px;
    left: -80px; top: 25%;
    background: rgba(0, 252, 147, 0.15);
}

.auth-ds .auth-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-ds .auth-logo-mark {
    width: 180px;   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.auth-ds .auth-logo-mark img { width: 190px;  object-fit: contain; border-radius: 10px; }
.auth-ds .auth-logo-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.auth-ds .auth-welcome {
    position: relative;
    z-index: 1;
    margin-top: auto;
    max-width: 480px;
    display: none;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 768px) {
    .auth-ds .auth-welcome { display: flex; }
}
.auth-ds .auth-welcome h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.auth-ds .auth-welcome p {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ── Área do formulário (direita) ───────────────────────────────────── */
.auth-ds .auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 60vh;
}
@media (min-width: 768px) {
    .auth-ds .auth-main { min-height: 100vh; }
}

.auth-ds .auth-lang {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 20;
}
.auth-ds .auth-lang .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--a-text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.auth-ds .auth-lang .dropdown-toggle:hover { color: var(--a-text); background: var(--a-surface-alt); }
.auth-ds .auth-lang .dropdown-menu { border-radius: 10px; border: 1px solid var(--a-border); }

.auth-ds .auth-card-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
@media (min-width: 768px) {
    .auth-ds .auth-card-wrap { padding: 24px; }
}

.auth-ds .auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-ds .auth-head { display: flex; flex-direction: column; gap: 4px; }
.auth-ds .auth-head h1,
.auth-ds .auth-head h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--a-text);
    margin: 0;
}
.auth-ds .auth-head p { font-size: 14px; font-weight: 600; color: var(--a-text-2); margin: 0; }

/* Alertas */
.auth-ds .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.auth-ds .auth-alert i { font-size: 18px; line-height: 1.3; flex-shrink: 0; }
.auth-ds .auth-alert.err { background: var(--a-err-bg); border: 1px solid var(--a-err-border); color: var(--a-err); }
.auth-ds .auth-alert.ok  { background: rgba(32, 211, 156, 0.12); border: 1px solid rgba(32, 211, 156, 0.4); color: var(--a-brand-green-dark); }

/* Formulário */
.auth-ds .auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-ds .auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-ds .auth-field > label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--a-text-2);
}
.auth-ds .auth-input-wrap { position: relative; }
.auth-ds .auth-field input {
    width: 100%;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    outline: none;
    padding: 12px 44px 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--a-text);
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-ds .auth-field input::placeholder { color: var(--a-text-2); opacity: .7; }
.auth-ds .auth-field input:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px rgba(0, 194, 0, 0.12); }
.auth-ds .auth-field input.is-invalid { border-color: #dc3545; }
.auth-ds .auth-field .auth-icon,
.auth-ds .auth-field .auth-eye {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--a-text-2);
    font-size: 18px;
    line-height: 1;
}
.auth-ds .auth-field .auth-eye { background: transparent; border: 0; cursor: pointer; padding: 0; }
.auth-ds .auth-field .auth-eye:hover { color: var(--a-text); }
.auth-ds .auth-field .field-error { font-size: 13px; font-weight: 600; color: #dc3545; }

.auth-ds .auth-forgot {
    width: fit-content;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--a-text-2);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    transition: color .15s ease;
}
.auth-ds .auth-forgot:hover { color: var(--a-text); }

.auth-ds .auth-help { font-size: 14px; font-weight: 600; color: var(--a-text-2); margin: 0; }

/* Botão primário */
.auth-ds .auth-btn {
    width: 100%;
    height: 52px;
    background: var(--a-action);
    color: var(--a-action-text);
    font-size: 16px;
    font-weight: 800;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity .15s ease, transform .05s ease;
}
.auth-ds .auth-btn:hover { opacity: .95; }
.auth-ds .auth-btn:active { transform: scale(.985); }
.auth-ds .auth-btn:disabled { opacity: .7; cursor: not-allowed; }
.auth-ds .auth-btn .spin { animation: authspin 1s linear infinite; }
@keyframes authspin { to { transform: rotate(360deg); } }

/* Rodapé do card */
.auth-ds .auth-foot { text-align: center; margin-top: 4px; }
.auth-ds .auth-foot p { font-size: 14px; font-weight: 600; color: var(--a-text-2); margin: 0; }
.auth-ds .auth-foot a { font-weight: 700; color: var(--a-brand); text-decoration: none; }
.auth-ds .auth-foot a:hover { text-decoration: underline; }

.auth-ds .auth-version { padding: 20px; display: flex; justify-content: flex-end; }
.auth-ds .auth-version span { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--a-text-2); font-variant-numeric: tabular-nums; }

/* Caixa do reCAPTCHA */
.auth-ds .auth-recaptcha { margin-top: 4px; }
