/* css/login.css */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 20, 0.9); /* Fundo mais escuro e sólido para melhor contraste */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

/* Atmospheric Ambient Light */
.login-overlay::before,
.login-overlay::after {
    content: '';
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1; /* Agora acima do fundo do overlay */
    pointer-events: none;
    opacity: 0.5;
    animation: pulseLight 15s ease-in-out infinite alternate;
}

.login-overlay::before {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(70, 90, 40, 0.25) 0%, transparent 70%);
}

.login-overlay::after {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(70, 90, 40, 0.15) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes pulseLight {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.1) translate(5%, 5%); opacity: 0.6; }
    100% { transform: scale(0.9) translate(-5%, -5%); opacity: 0.4; }
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-glass-card {
    background: rgba(15, 15, 20, 0.65); /* Mais escuro e mantendo transparência glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
    z-index: 10; /* Garante que o card fique acima das luzes de fundo */
    overflow: hidden;
}

/* Brilho reflexivo sutil (Shimmer) */
.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shine {
    0% { left: -150%; }
    30% { left: 250%; }
    100% { left: 250%; }
}

.login-logo-container {
    margin-bottom: 1.5rem;
}

.login-logo-glass {
    width: 220px;
    height: auto;
    margin: 0 auto;
    display: block;
    
    /* Sofisticação: Preservando cores vibrantes do novo logo */
    filter: 
        brightness(100%) 
        opacity(1.0)
        drop-shadow(0 15px 35px rgba(0, 112, 255, 0.4)); /* Aura azul sutil */
    
    transition: all 0.5s ease;
}

.login-logo-glass:hover {
    opacity: 0.95;
    transform: scale(1.04);
    filter: 
        brightness(110%) 
        drop-shadow(0 0 30px rgba(0, 112, 255, 0.7)); /* Aura azul mais intensa no hover */
}

.octopus-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1.0); }
    50% { transform: translateY(-12px) scale(1.02); }
    100% { transform: translateY(0px) scale(1.0); }
}


.login-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.login-input-group input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(112, 180, 64, 0.5); /* Verde oliva para consistência */
    box-shadow: 0 0 0 2px rgba(112, 180, 64, 0.15);
}

.login-input-group input:focus + i, 
.login-input-group input:focus ~ i {
    color: #70b440; /* Verde oliva vibrante no foco */
    text-shadow: 0 0 10px rgba(112, 180, 64, 0.4);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.3);
}

.login-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #fff;
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.login-error.show {
    opacity: 1;
    transform: translateY(0);
}

.forgot-pwd-link {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    letter-spacing: 0.3px;
    display: inline-block;
}

.forgot-pwd-link:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.8px;
    transform: translateY(-1px);
}

.forgot-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.login-footer-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    animation: fadeInFooter 2s ease-out;
}

@keyframes fadeInFooter {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
