/**
 * Login Page Styles
 * Intranet SCTPower
 */

/* ============================================
   Background Dinâmico
   ============================================ */
body.login-page {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast; /* Melhora a performance em alguns browsers */
    background-color: #1a1a1a; /* Cor sólida enquanto a imagem carrega */
}

/* Overlay escuro com blur */
/* .bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
} */

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Preto com 50% de opacidade */
    z-index: -1; /* Fica atrás do conteúdo mas à frente da imagem */
}

body.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

/* Conteúdo acima do overlay */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ============================================
   Logo Fixo
   ============================================ */
.logo-top {
    position: absolute;
    top: 40px;
    left: 40px;
    filter: brightness(0) invert(1);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.logo-top:hover {
    opacity: 0.8;
}

/* ============================================
   Relógio Digital
   ============================================ */
.clock-container {
    text-align: center;
    color: white;
}

.clock {
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    display: inline-block;
    min-width: 520px;
    text-align: center;
}

.date {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

/* ============================================
   Frase do Dia
   ============================================ */
.quote-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 5px solid white;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.quote-text {
    color: white;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.quote-author {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: right;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Créditos da Imagem
   ============================================ */
.image-credits {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.image-credits:hover {
    background: rgba(0, 0, 0, 0.5);
}

.image-credits strong {
    font-weight: 600;
}

/* ============================================
   Formulário de Login
   ============================================ */
.login-form-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .logo-top {
        top: 20px;
        left: 20px;
        height: 40px !important;
    }
    
    .clock {
        font-size: 3.5rem;
        min-width: 280px;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .quote-box {
        padding: 20px;
        margin: 20px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-author {
        font-size: 0.95rem;
    }
    
    .image-credits {
        bottom: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 575.98px) {
    .clock {
        font-size: 2.5rem;
        min-width: 200px;
        letter-spacing: 0.1em;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .quote-box {
        padding: 15px;
        margin: 15px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
}

/* ============================================
   Animações
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clock-container,
.quote-box,
.login-form-container {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Dark Mode Support (opcional)
   ============================================ */
[data-bs-theme="dark"] .bg-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="dark"] .quote-box {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: rgba(255, 255, 255, 0.8);
}