/* Estilos específicos APENAS da página de Login */

body.login-page {
    /* Fundo dark rico com gradiente radial sutil no centro */
    background: radial-gradient(circle at 50% -20%, #1a0a00 0%, var(--background) 70%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    /* Prepara para brilhos de fundo sem estourar barra de rolagem */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Orbes de brilho (Light leaks) usando a cor master #FF6600 */
body.login-page::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body.login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 65%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Container do Login (estilo "Card" do shadcn/ui) com efeito Glassmorphism Premium */
.login-container {
    background-color: rgba(9, 9, 11, 0.65);
    /* Fundo muito dark translúcido */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Borda clarinha para refletir o glass */
    /* Sombra profunda e densa, característica premium */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 102, 0, 0.05) inset;
    padding: 2.5rem 2rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Cabeçalho */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.25rem;
}

/* Formulário e Grupos Específicos do login */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Link Esqueceu a Senha */
.forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    align-self: flex-end;
    margin-top: -0.25rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Rodapé do form de login */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==================================
   Transição de Página (Premium Overlay)
   ================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    /* Escuro sólido idêntico ao dashboard */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: none;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 1);
}