/* ------------------------- */
/* 1. RESET Y TIPOGRAFÍA */
/* ------------------------- */
body {
    /* Fondo Lavanda Pastel */
    font-family: 'Montserrat', sans-serif;
    background-color: #E0E5FF; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* ------------------------- */
/* 2. CONTENEDOR PRINCIPAL */
/* ------------------------- */
.login-container {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Sombra profesional */
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

h2 {
    color: #454545;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    color: #8C8C8C; 
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

/* ------------------------- */
/* 3. CAMPOS DE FORMULARIO */
/* ------------------------- */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #454545;
    font-size: 0.9em;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #E0E0E0; /* Borde gris muy claro */
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #FAFAFA;
}

/* EFECTO HOVER EN EL CAMPO (Al pasar el cursor) */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover {
    border-color: #B3E5FC; /* Celeste pálido */
}

/* EFECTO FOCUS EN EL CAMPO (Al hacer clic para escribir) */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #A5D6A7; /* Verde menta suave */
    box-shadow: 0 0 0 4px rgba(165, 214, 167, 0.3); 
    outline: none;
}

/* ------------------------- */
/* 4. BOTÓN SUBMIT */
/* ------------------------- */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #7F7FFF; /* Lila principal */
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.1s;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(127, 127, 255, 0.4);
}

/* EFECTO HOVER EN EL BOTÓN (Al pasar el cursor) */
.submit-btn:hover {
    background-color: #9999FF; /* Lila más claro */
    box-shadow: 0 6px 15px rgba(127, 127, 255, 0.6);
}

/* EFECTO ACTIVE EN EL BOTÓN (Al hacer clic) */
.submit-btn:active {
    background-color: #6A6AFF; /* Lila más oscuro */
    transform: translateY(1px); 
}

/* ------------------------------------- */
/* 5. MEDIA QUERIES (RESPONSIVO MÓVIL)   */
/* ------------------------------------- */
@media (max-width: 500px) {
    
    body {
        min-height: auto;
        padding: 30px 10px;
    }

    .login-container {
        width: 95%;
        max-width: 100%; 
        padding: 25px 20px;
        box-shadow: none; 
    }

    h2 {
        font-size: 1.5em;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
}