/* --- Estilos Generales y de Fondo --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    /* --- ¡AQUÍ ESTÁ EL CAMBIO PRINCIPAL! --- */
    /* Usamos el nuevo fondo dividido */
    background-image: url('/img/background-split.jpg');
    background-size: cover; /* Asegura que la imagen cubra toda la pantalla */
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-attachment: fixed; /* Mantiene el fondo estático al hacer scroll */

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Contenedor del Login --- */
.login-container {
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    /* El efecto de cristal se ve aún mejor sobre este fondo */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
    
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

/* --- Logo y Títulos --- */
.logo {
    max-width: 220px;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* --- Formulario y Campos de Entrada --- */
form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #3CB371; /* Verde del logo */
    box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.2);
}

/* --- Opciones y Links --- */
.options {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password {
    font-size: 13px;
    color: #3CB371;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* --- Botón de Ingreso --- */
.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #2E8B57, #3CB371);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
}

/* --- Link de Registro --- */
.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #555;
}

.signup-link a {
    color: #3CB371;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* --- Adaptación para Móviles --- */
@media (max-width: 768px) {
    body {
        /* En móviles, centramos el fondo para que se vea bien la parte más interesante */
        background-position: center;
    }
    
    .login-box {
        padding: 30px 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        backdrop-filter: blur(5px);
    }
}