:root {
    /* Nuevo color de marca implementado aquí */
    --acai-purple: #7D4380; 
    --acai-dark: #2D0D2E;
    --tropical-green: #2ECA6A;
    --bg-light: #F4F7F6;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #FEF6EB; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
}

.login-container {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    /* Ajuste responsivo de la caja principal para pantallas de celulares muy pequeños */
    max-width: 400px;
    margin: 0 15px; 
    text-align: center;
}

/* --- ESTILOS PARA EL LOGO RESPONSIVE --- */
.login-header .logo-img {
    width: 100%;       
    max-width: 140px;  /* Tamaño base más pequeño (ideal para celulares) */
    height: auto;      
    margin-bottom: 15px;
    display: inline-block;
    transition: max-width 0.3s ease; /* Transición suave al cambiar de tamaño */
}

/* MEDIA QUERY: Cuando la pantalla sea más ancha que 480px (Tablets, Laptops, PCs) */
@media (min-width: 480px) {
    .login-header .logo-img {
        max-width: 180px; /* Se hace un poco más grande porque hay más espacio */
    }
}

.login-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--acai-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    /* Al hacer clic en un input, el borde usará tu nuevo color #7D4380 */
    border-color: var(--acai-purple);
    outline: none;
}

.btn-submit {
    background: var(--tropical-green);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover { 
    background: #25a855; 
}

.btn-submit:active { 
    transform: scale(0.98); 
}

/* --- ESTILOS DE LA ALERTA --- */
.alert {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c62828;
    text-align: left;
    display: none; 
}