/* --- ESTILO DE REGISTRO / LOGIN --- */

/* --- Ajuste para que el fondo crezca con el formulario --- */
.bg-login {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('./Imagenes/BackGroundForest.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene el fondo quieto al hacer scroll */
    
    /* CAMBIO CLAVE: Usa min-height en lugar de height */
    min-height: 100vh; 
    
    display: flex;
    align-items: center; /* Centra verticalmente si hay espacio */
    justify-content: center;
    padding: 40px 20px; /* Añade espacio arriba y abajo para que no toque los bordes */
}

.login-container {
    width: 100%;
    max-width: 450px;
    /* Eliminamos cualquier restricción de altura aquí */
}

.login-box {
    background: rgba(20, 30, 25, 0.95);
    border: 3px solid var(--primary-yellow);
    padding: 30px; /* Reducimos un poco el padding interno para ganar espacio */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    text-align: center;
}

.login-header h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary-yellow);
    font-size: 1rem;
    margin: 20px 0 10px;
}

.login-header p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 30px;
}

/* Grupos de Entrada */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: #050a07;
    border: 1px solid #3e5a4a;
    color: #fff;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

/* Términos y Checkbox */
.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.75rem;
    color: #bbb;
    text-align: left;
}

/* Botón de Formulario */
.btn-primary-form {
    width: 100%;
    padding: 15px;
    background: var(--primary-yellow);
    color: #000;
    border: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 5px 0 #9e850a;
    transition: 0.2s;
}

.btn-primary-form:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-primary-form:active {
    transform: translateY(4px);
    box-shadow: none;
}

.login-footer {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
}

.login-footer a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: bold;
}

.back-home {
    display: block;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #555;
    text-decoration: none;
}

.back-home:hover {
    color: #fff;
}

#error-password, #error-usuario, #error-confirm, #error-email {
    line-height: 1.5; /* Separa un poco más las líneas */
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
    transition: all 0.3s ease; /* Para que los cambios no sean bruscos */
}