/* COLORES INSTITUCIONALES */
:root {
    --rojo-institucional: #7B1E2B;
    --azul-fuerte: #0A2A66;
    --blanco: #FFFFFF;
    --negro-suave: #1A1A1A;
    --gris-claro: #F4F4F4;
    --gris-medio: #C4C4C4;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

/* FONDO GENERAL (OPTIMIZADO) */
body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
        url('ilb.png') center/cover no-repeat;
    
    /* ❌ quitamos background-attachment: fixed; */
    
    display: flex;
    flex-direction: column;
}

/* HEADER SUPERIOR */
h1 {
    background-color: var(--rojo-institucional);
    color: var(--blanco);
    text-align: center;
    padding: 18px;
    font-size: 22px;
    letter-spacing: 1px;
}

/* CONTENEDOR TARJETA (SIN BLUR PESADO) */
form {
    margin: auto;
    margin-top: 60px;
    margin-bottom: 60px;

    width: 380px;
    padding: 40px;

    background: rgba(255, 255, 255, 0.95); /* más sólido y rápido */

    /* ❌ quitamos backdrop-filter */
    
    border-radius: 15px;
    border: 1px solid var(--gris-medio);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    animation: fadeIn 0.5s ease-in-out;
}

/* Animación ligera */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LABELS */
label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: var(--negro-suave);
}

/* INPUTS */
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid var(--gris-medio);
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--rojo-institucional);
    box-shadow: 0 0 4px rgba(123,30,43,0.3);
}

/* BOTÓN */
input[type="submit"] {
    width: 100%;
    padding: 13px;
    background-color: var(--rojo-institucional);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #651722;
    transform: translateY(-2px);
}

/* LINKS */
p {
    text-align: center;
    margin-top: 18px;
}

a {
    color: var(--azul-fuerte);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}