@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #003d2b; 
    --secondary-color: #0a5c3f;
    --accent-color: #1a7d5a;   
    --text-light: #f7fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-image: url('../img/forest_back_2.jpeg');
    background-size: 100% 100%; 
    background-position: center;
    background-attachment: fixed;
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
}

/* Camada branca sobre a floresta */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); 
    z-index: 0;
}

/* --- PARTÍCULAS --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Fica no fundo */
}

/* --- CONTAINER PRINCIPAL --- */
.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 10; /* Fica na frente visualmente */
    
    /* CORREÇÃO CRÍTICA PARA O MOUSE: 
       Permite que o mouse atravesse o container e interaja com as partículas no fundo */
    pointer-events: none; 
}

/* --- Lado Esquerdo --- */
.welcome-side {
    flex: 1.5;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- CARD ESQUERDO --- */
.welcome-side .glass-card {
    max-width: 750px; 
    background: rgba(0, 61, 43, 0.45); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* REATIVA O MOUSE: Para permitir selecionar o texto ou clicar nos logos */
    pointer-events: auto; 
}

/* --- Lado Direito --- */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
    /* AJUSTE DE TRANSPARÊNCIA: Reduzi para 0.85 para ver as partículas atrás */
    background: linear-gradient(135deg, rgba(0, 61, 43, 0.85) 0%, rgba(6, 78, 59, 0.85) 100%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 1; 
}

.login-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 420px;
    
    /* REATIVA O MOUSE: Essencial para clicar nos inputs e botão */
    pointer-events: auto; 
}

/* --- Estilo Base dos Cards --- */
.glass-card {
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    z-index: 20; 
}

/* --- LOGOS --- */
.logos {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 35px;
}

.logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
    opacity: 0.95;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: transparent; 
    padding: 0;
    
    /* Garante clique nos logos */
    pointer-events: auto; 
}

.logo-img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* --- Tipografia --- */
.welcome-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.academic-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #edf2f7; 
}

.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 25px 0;
}

.credits {
    font-size: 1rem;
}

.credits strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
}

/* --- Form --- */
.login-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.login-box p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
    z-index: 25;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    cursor: not-allowed; 
}

.login-button {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    border: none;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 63, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    
    /* Garante clique no botão */
    pointer-events: auto; 
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 92, 63, 0.4);
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
