@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ==========================================
   VARIÁVEIS
   ========================================== */
:root {
    --bg:       #07090f;
    --surface:  rgba(10, 13, 22, 0.88);
    --border:   rgba(255,255,255,0.07);
    --border2:  rgba(255,255,255,0.13);
    --accent:   #c8a84b;
    --accent2:  #e8c96a;
    --text:     #e2e6f0;
    --muted:    #5a6480;
    --error:    rgba(248,113,113,0.12);
    --success:  rgba(103,232,180,0.12);
    --info:     rgba(56,189,248,0.12);
    --radius:   16px;
    --radius-sm: 8px;
}

/* ==========================================
   BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../imgs/fundo.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Overlay escuro com gradiente dourado sutil */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(200,168,75,0.12) 0%, rgba(7,9,15,0.6) 50%, rgba(56,189,248,0.06) 100%),
        rgba(7,9,15,0.72);
    pointer-events: none;
    z-index: 0;
}

/* Vinheta nas bordas */
body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(7,9,15,0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   INDEX — tela de boas-vindas
   ========================================== */
.container {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
    animation: fadeUp 0.8s cubic-bezier(0.34,1.2,0.64,1);
    max-width: 560px;
    width: 100%;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 180px;
    margin-bottom: 28px;
    filter: drop-shadow(0 8px 30px rgba(200,168,75,0.25));
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.logo:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 12px 40px rgba(200,168,75,0.4));
}

.title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin: 0 0 16px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.05rem;
    margin: 0 0 48px;
    color: rgba(226,230,240,0.65);
    font-weight: 300;
    line-height: 1.6;
}

.start-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #0a0c12;
    border: none;
    border-radius: 50px;
    padding: 16px 52px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(200,168,75,0.35);
    position: relative;
    overflow: hidden;
}

/* Shimmer no hover */
.start-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.start-button:hover::before { left: 100%; }

.start-button:hover {
    background: var(--accent2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(200,168,75,0.5);
}

/* ==========================================
   LOGIN & REGISTRO — card compartilhado
   ========================================== */
.login-container,
.register-container {
    width: 100%;
    max-width: 400px;
    padding: 44px 40px;
    background: var(--surface);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border2);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(200,168,75,0.06) inset;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s cubic-bezier(0.34,1.2,0.64,1);
    margin: 20px;
}

/* Registro tem mais campos — permitir scroll se necessário */
.register-container {
    max-height: 96vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.register-container::-webkit-scrollbar { display: none; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Linha decorativa dourada no topo do card */
.login-container::before,
.register-container::before {
    content: '';
    position: absolute;
    top: 0; left: 40px; right: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    border-radius: 1px;
}

/* Logo */
.login-logo,
.register-logo {
    width: 90px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(200,168,75,0.2));
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.login-logo:hover,
.register-logo:hover { transform: scale(1.06); }

/* Auth icon circle (used in recovery/reset pages) */
.auth-icon-circle {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(200,168,75,0.1);
    border: 1px solid rgba(200,168,75,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2);
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

/* Título */
.login-title,
.register-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 28px;
    text-align: center;
    font-weight: 300;
}

/* When no subtitle follows the title, add bottom margin */
.login-title + .error-message,
.login-title + .success-message,
.register-title + .login-subtitle,
.login-title + .login-subtitle {
    /* subtitle present - margin handled by subtitle */
}
.login-title:last-of-type {
    margin-bottom: 28px;
}

.recovery-spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(200,168,75,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 12px;
}

.recovery-invalid-icon {
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Formulário */
.login-form,
.register-form { text-align: left; }

.login-form label,
.register-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}
.login-form label i,
.register-form label i {
    font-size: 0.7rem;
    color: rgba(200,168,75,0.5);
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: rgba(200,168,75,0.45);
    background: rgba(200,168,75,0.04);
    box-shadow: 0 0 0 3px rgba(200,168,75,0.08);
}

.login-form input::placeholder,
.register-form input::placeholder { color: rgba(90,100,128,0.7); }

.login-form select {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: #111620;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

/* Botão principal */
.login-form button[type="submit"],
.register-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #0a0c12;
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.login-form button[type="submit"]::before,
.register-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.login-form button[type="submit"]:hover::before,
.register-form button[type="submit"]:hover::before { left: 100%; }

.login-form button[type="submit"]:hover,
.register-form button[type="submit"]:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200,168,75,0.4);
}

.login-form button[type="submit"]:disabled,
.register-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Links de navegação */
.register-link,
.login-link {
    display: block;
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.register-link:hover,
.login-link:hover { color: var(--accent2); }

/* Social login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 26px;
}

.social-login img {
    width: 42px;
    height: 42px;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    object-fit: contain;
}
.social-login img:hover {
    transform: scale(1.14) translateY(-2px);
    background: rgba(200,168,75,0.1);
    border-color: rgba(200,168,75,0.35);
    box-shadow: 0 6px 18px rgba(200,168,75,0.2);
}

/* Separador */
.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 20px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border2);
}

/* ==========================================
   MENSAGENS DE FEEDBACK
   ========================================== */
.error-message,
.success-message,
.info-message {
    --message-rgb: 226, 230, 240;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 54px;
    padding: 14px 15px 14px 54px;
    border: 1px solid rgba(var(--message-rgb), 0.3);
    border-radius: 12px;
    margin-bottom: 18px;
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.5;
    background: linear-gradient(135deg, rgba(var(--message-rgb), 0.15), rgba(var(--message-rgb), 0.055));
    box-shadow:
        0 12px 28px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.045);
    animation: authMessageIn 0.35s cubic-bezier(0.34,1.2,0.64,1);
}

.error-message::before,
.success-message::before,
.info-message::before {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--message-rgb), 0.24);
    border-radius: 10px;
    background: rgba(var(--message-rgb), 0.12);
    color: rgb(var(--message-rgb));
    font-family: "Font Awesome 6 Free";
    font-size: 0.8rem;
    font-weight: 900;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.error-message::after,
.success-message::after,
.info-message::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: rgb(var(--message-rgb));
    box-shadow: 0 0 14px rgba(var(--message-rgb), 0.5);
}

.error-message {
    --message-rgb: 248, 113, 113;
    color: #fecaca;
}
.error-message::before { content: '\f071'; }

.success-message {
    --message-rgb: 103, 232, 180;
    color: #a7f3d0;
}
.success-message::before { content: '\f00c'; }

.info-message {
    --message-rgb: 56, 189, 248;
    color: #bae6fd;
}
.info-message::before { content: '\f129'; }

.success-message.auth-prompt-message {
    --message-rgb: 200, 168, 75;
    color: rgba(226,230,240,0.72);
}
.success-message.auth-prompt-message::before { content: '\f2f6'; }

@keyframes authMessageIn {
    from { opacity: 0; transform: translateY(-7px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .error-message,
    .success-message,
    .info-message { animation: none; }
}

/* ==========================================
   LOADING STATE
   ========================================== */
.loading {
    opacity: 0.65;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(10,12,18,0.4);
    border-top-color: #0a0c12;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   RECUPERAÇÃO DE SENHA
   ========================================== */
.recovery-subtitle {
    font-size: 0.88rem;
    color: var(--muted);
    margin: -12px 0 22px;
    line-height: 1.5;
    text-align: center;
}

.forgot-password-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.8;
}
.forgot-password-link:hover {
    color: var(--accent2);
    opacity: 1;
}

.recovery-loading,
.recovery-invalid {
    text-align: center;
    padding: 20px 0;
}

.recovery-loading p {
    color: var(--muted);
    font-size: 0.9rem;
}

.recovery-invalid p {
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ==========================================
   BOTÃO VOLTAR (auth pages)
   ========================================== */
.auth-back {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(226,230,240,0.5);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s;
}
.auth-back i { font-size: 0.75rem; }

.auth-back:hover {
    color: #e2e6f0;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

/* ==========================================
   AUTH V2 — login e cadastro reimaginados
   ========================================== */
body.auth-v2 {
    display: block;
    align-items: initial;
    justify-content: initial;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
}

body.auth-v2::before,
body.auth-v2::after {
    display: none;
}

.auth-v2 .auth-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1fr);
    background-image:
        linear-gradient(135deg, rgba(200,168,75,0.12) 0%, rgba(7,9,15,0.68) 48%, rgba(56,189,248,0.05) 100%),
        linear-gradient(90deg, rgba(7,9,15,0.92), rgba(7,9,15,0.58)),
        url('../imgs/fundo.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-v2 .auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 38%, rgba(7,9,15,0.72) 100%);
    pointer-events: none;
}

.auth-v2 .auth-showcase,
.auth-v2 .auth-stage {
    position: relative;
    z-index: 1;
}

.auth-v2 .auth-showcase {
    min-height: 100vh;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.auth-v2 .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.auth-v2 .auth-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(200,168,75,0.25));
}

.auth-v2 .auth-brand span {
    color: rgba(226,230,240,0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-v2 .auth-hero-copy {
    max-width: 600px;
    animation: fadeUp 0.7s cubic-bezier(0.34,1.2,0.64,1);
}

.auth-v2 .auth-hero-copy h1 {
    max-width: 10ch;
    margin: 0;
    color: #fff;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6.6vw, 6.6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-shadow: 0 8px 34px rgba(0,0,0,0.48);
}

.auth-v2 .auth-hero-copy p {
    max-width: 36rem;
    margin: 22px 0 0;
    color: rgba(226,230,240,0.66);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    font-weight: 300;
    line-height: 1.65;
}

.auth-v2 .auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
}

.auth-v2 .auth-highlight {
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(10,13,22,0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-v2 .auth-highlight strong {
    display: block;
    color: var(--accent2);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-v2 .auth-highlight span {
    display: block;
    margin-top: 10px;
    color: rgba(226,230,240,0.62);
    font-size: 0.9rem;
    line-height: 1.42;
}

.auth-v2 .auth-stage {
    min-height: 100vh;
    padding: clamp(20px, 4vw, 58px);
    display: grid;
    place-items: center;
}

.auth-v2 .auth-card.login-container,
.auth-v2 .auth-card.register-container {
    width: min(100%, 430px);
    max-width: 430px;
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: clamp(32px, 4vw, 44px);
    overflow-y: auto;
    scrollbar-width: none;
}

.auth-v2 .auth-card.login-container::-webkit-scrollbar,
.auth-v2 .auth-card.register-container::-webkit-scrollbar {
    display: none;
}

.auth-v2 .auth-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.auth-v2 .login-title,
.auth-v2 .register-title {
    font-size: clamp(2rem, 4vw, 2.55rem);
    line-height: 1.05;
    text-align: center;
}

.auth-v2 .login-subtitle {
    margin: 12px 0 26px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-v2 .auth-form {
    display: grid;
    gap: 15px;
}

.auth-v2 .auth-field {
    display: grid;
    gap: 7px;
}

.auth-v2 .login-form label,
.auth-v2 .register-form label {
    margin-bottom: 0;
}

.auth-v2 .login-form input,
.auth-v2 .register-form input {
    margin-bottom: 0;
}

.auth-v2 .auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-v2 .login-form .auth-check,
.auth-v2 .register-form .auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.auth-v2 .login-form .auth-check input,
.auth-v2 .register-form .auth-check input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 auto;
    background: initial;
    accent-color: var(--accent);
}

.auth-v2 .forgot-password-link {
    display: inline;
    margin-top: 0;
    text-align: right;
}

.auth-v2 .auth-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}

.auth-v2 .auth-social-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--border2);
    border-radius: 50px;
    color: var(--text);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-v2 .auth-social-button img {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    transform: none;
}

.auth-v2 .auth-social-button:hover {
    border-color: rgba(200,168,75,0.35);
    background: rgba(200,168,75,0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200,168,75,0.18);
}

.auth-v2 .auth-social-button:hover img {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.auth-v2 .register-link,
.auth-v2 .login-link {
    margin-top: 4px;
}

.auth-v2 .auth-benefits {
    display: grid;
    gap: 9px;
}

.auth-v2 .auth-benefit {
    position: relative;
    padding-left: 18px;
    color: rgba(226,230,240,0.58);
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-v2 .auth-benefit::before {
    content: '';
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(200,168,75,0.1);
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 980px) {
    .auth-v2 .auth-shell {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .auth-v2 .auth-showcase {
        min-height: auto;
        padding-bottom: 28px;
        gap: 32px;
    }

    .auth-v2 .auth-hero-copy h1 {
        max-width: 12ch;
    }

    .auth-v2 .auth-hero-copy p {
        max-width: 42rem;
    }

    .auth-v2 .auth-highlights {
        max-width: none;
    }

    .auth-v2 .auth-stage {
        min-height: auto;
        padding-top: 0;
    }

    .auth-v2 .auth-card.login-container,
    .auth-v2 .auth-card.register-container {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .auth-v2 .auth-shell {
        background-image:
            linear-gradient(135deg, rgba(200,168,75,0.14), rgba(7,9,15,0.8)),
            url('../imgs/fundo.jpg');
    }

    .auth-v2 .auth-showcase,
    .auth-v2 .auth-stage {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-v2 .auth-showcase {
        padding-top: 18px;
    }

    .auth-v2 .auth-brand img {
        width: 58px;
        height: 58px;
    }

    .auth-v2 .auth-hero-copy h1 {
        font-size: clamp(2.25rem, 13vw, 3.4rem);
    }

    .auth-v2 .auth-hero-copy p {
        margin-top: 14px;
        font-size: 0.98rem;
    }

    .auth-v2 .auth-highlights {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auth-v2 .auth-highlight {
        min-height: auto;
        padding: 13px 14px;
    }

    .auth-v2 .auth-card.login-container,
    .auth-v2 .auth-card.register-container {
        width: 100%;
        padding: 30px 22px;
        margin-bottom: 16px;
    }

    .auth-v2 .auth-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-v2 .forgot-password-link {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .auth-v2 .auth-form {
        gap: 13px;
    }

    .auth-v2 .auth-card.login-container,
    .auth-v2 .auth-card.register-container {
        padding: 28px 18px;
    }

    .auth-v2 .login-title,
    .auth-v2 .register-title {
        font-size: 2rem;
    }

    .auth-v2 .auth-social-grid {
        grid-template-columns: 1fr;
    }

    .auth-v2 .login-form button[type="submit"],
    .auth-v2 .register-form button[type="submit"],
    .auth-v2 .auth-social-button {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .login-container,
    .register-container {
        padding: 36px 24px;
        margin: 12px;
    }

    .title { font-size: 1.8rem; }
    .start-button { padding: 14px 40px; }

    .auth-back {
        top: 16px;
        left: 16px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Tema claro também cobre recuperação de senha e conclusão do login social. */
:is(html.light-theme-early, body.light-theme) {
    --bg: #f4f1ea;
    --surface: rgba(255, 255, 255, 0.96);
    --border: rgba(30, 41, 59, 0.12);
    --border2: rgba(30, 41, 59, 0.2);
    --text: #1e293b;
    --muted: #586577;
}
html.light-theme-early body::before,
body.light-theme::before {
    background: linear-gradient(135deg, rgba(250, 247, 237, 0.94), rgba(239, 245, 249, 0.9));
}
html.light-theme-early body::after,
body.light-theme::after { background: radial-gradient(ellipse at center, transparent 40%, rgba(235, 230, 217, 0.55)); }
:is(html.light-theme-early, body.light-theme) :is(.login-container, .register-container) {
    background: var(--surface);
    border-color: var(--border2);
    box-shadow: 0 24px 64px rgba(30, 41, 59, 0.14);
}
:is(html.light-theme-early, body.light-theme) :is(.login-title, .register-title, .title) {
    color: var(--text);
    text-shadow: none;
}
:is(html.light-theme-early, body.light-theme) .subtitle { color: var(--muted); }
:is(html.light-theme-early, body.light-theme) :is(.login-form input, .register-form input, .login-form select) {
    background: #f8f7f3;
    color: var(--text);
    border-color: var(--border2);
}
:is(html.light-theme-early, body.light-theme) :is(.login-form input, .register-form input):focus {
    background: #fff;
    border-color: #8a681d;
    box-shadow: 0 0 0 3px rgba(138, 104, 29, 0.14);
}
:is(html.light-theme-early, body.light-theme) :is(.login-form label i, .register-form label i, .auth-icon-circle, .forgot-password-link, .register-link:hover, .login-link:hover, .auth-kicker) { color: #806018; }
:is(html.light-theme-early, body.light-theme) :is(.error-message, .recovery-invalid p) { color: #a52532; }
:is(html.light-theme-early, body.light-theme) .error-message { --message-rgb: 165, 37, 50; }
:is(html.light-theme-early, body.light-theme) .success-message { --message-rgb: 27, 110, 71; color: #1b6e47; }
:is(html.light-theme-early, body.light-theme) .info-message { --message-rgb: 30, 100, 147; color: #1e6493; }
:is(html.light-theme-early, body.light-theme) .success-message.auth-prompt-message { --message-rgb: 128, 96, 24; color: #68521c; }
:is(html.light-theme-early, body.light-theme) .auth-back {
    color: #465369;
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border2);
}
:is(html.light-theme-early, body.light-theme) .auth-back:hover { color: var(--text); background: #fff; }
:is(html.light-theme-early, body.light-theme) .auth-shell {
    background-image: linear-gradient(135deg, rgba(250, 247, 237, 0.94), rgba(239, 245, 249, 0.92)), url('../imgs/fundo.jpg');
}
:is(html.light-theme-early, body.light-theme) .auth-shell::before { background: none; }
:is(html.light-theme-early, body.light-theme) :is(.auth-brand span, .auth-hero-copy p, .auth-highlight span, .auth-benefit) { color: var(--muted); }
:is(html.light-theme-early, body.light-theme) .auth-hero-copy h1 { color: var(--text); text-shadow: none; }
:is(html.light-theme-early, body.light-theme) .auth-highlight { background: rgba(255, 255, 255, 0.8); }
:is(html.light-theme-early, body.light-theme) .auth-highlight strong { color: #806018; }
:is(html.light-theme-early, body.light-theme) .auth-social-button { background: #f8f7f3; }

