/* ======= ESTILO GENERAL ======= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center; /* centro horizontal */
    align-items: center;     /* centro vertical */
    min-height: 100vh;       /* ocupa toda la pantalla */
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
                url('../img/divino.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* ======= CONTENEDOR LOGIN ======= */
.login-container {
    width: 380px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.15); /* fondo glass */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.login-container:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ======= LOGO ======= */
.logo h1 {
    font-size: 32px;
    font-weight: 900;
    color: #00bcd4;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.logo h1:hover {
    color: #0e0f0f;
}

.logo p {
    font-size: 14px;
    color: #c5cae9;
    margin-bottom: 25px;
}

/* ======= FORMULARIO ======= */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: 0.3s;
}

input:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.7);
}

/* ======= BOTONES ======= */
.btn {
    width: 100%;
    padding: 12px;
    background: #00bcd4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ======= ENLACES ======= */
.back-link {
    display: block;
    margin-top: 20px;
    color: #bbdefb;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ======= MENSAJE DE ERROR ======= */
.error {
    background: rgba(255, 0, 0, 0.15);
    color: #ffbaba;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.input-validation-error {
    display: none;
    font-size: 12px;
    color: #ff8a80;
}

.error-input {
    border: 2px solid #ff5252;
}

/* ======= RESPONSIVO ======= */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
}
