/* Estilos para as telas de autenticação */
.preauth-note {}
.preauth-note {}
.preauth-note {}
/* Gating pré-autenticação: oculta todas as seções não-auth até o boot JS
   e exibe imediatamente a tela de login/cadastro/reset mesmo se marcada como hidden. */
body:not(.boot-done) .section:not(.auth-section) {
    display: none !important;
}
body:not(.boot-done) #main-header {
    display: none !important;
}
body:not(.boot-done) #login-page.auth-section.hidden {
    display: flex !important;
}

.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(1200px circle at 50% 18%, rgba(30, 136, 229, 0.15), rgba(255, 46, 126, 0.12), rgba(0,0,0,0)), #0b0b0d;
}

/* Modo escuro global contínuo para telas de autenticação */
body.auth-dark {
    background: linear-gradient(180deg, #000 0%, #111 100%);
    color: rgba(255,255,255,0.9);
    min-height: 100vh;
}

/* Neutralizar estilos de .section na página de autenticação */
.section.auth-section {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #111216;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6); /* apenas sombra externa suave */
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.auth-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    background: transparent;
    color: #fff;
}

.auth-header i {
    display: none;
}

.auth-logo {
    width: 88px;
    height: 88px;
    display: inline-block;
    margin-bottom: 0.65rem;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(46, 197, 255, 0.35), 0 0 36px rgba(255, 46, 126, 0.25);
}

.auth-logo-image {
    object-fit: cover;
    background: #0b0b0d; /* evita fundo claro em cantos arredondados */
}

.auth-header h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}

.auth-form-container {
    padding: 2rem;
}

.auth-form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #fff;
    text-align: center;
}

.auth-section .form-group {
    margin-bottom: 1.25rem;
}

.auth-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.auth-section .form-group input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    font-size: 1rem;
    background: #0f1014;
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-section .form-group input:focus {
    border-color: rgba(46, 197, 255, 0.7);
    outline: none;
    box-shadow: 0 0 12px rgba(46, 197, 255, 0.35);
}

.auth-section .form-buttons {
    margin-top: 1.5rem;
}

.btn-block {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: #41c97b;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Elementos auxiliares do fluxo de reset */
.captcha-question {
    font-weight: 500;
}

/* Botão primário com efeito neon */
.auth-section .btn.btn-primary {
    background: #1e88e5;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 12px rgba(30, 136, 229, 0.45), 0 8px 18px rgba(0,0,0,0.5);
}
.auth-section .btn.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 16px rgba(30, 136, 229, 0.6), 0 10px 20px rgba(0,0,0,0.6);
}

/* Estilos para o menu de usuário */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#usuarioNome {
    font-weight: 500;
    color: #333;
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
}