
:root {
    --azul-oscuro: #102d52;
    --azul-principal: #2563eb;
    --texto: #172b46;
    --gris: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f8fafc;
    color: var(--texto);
}

.login-contenedor {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

.panel-institucional {
    background: linear-gradient(
        145deg, #0d2341, #173c6b, #174d91
    );
    color: white;
    padding: 45px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.marca {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-institucional {
    width: 55px;
    height: 55px;
    background: #ffffff;
    color: #15365e;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
}

.marca strong {
    display: block;
    font-size: 20px;
    letter-spacing: 1px;
}

.marca span {
    font-size: 13px;
    letter-spacing: 5px;
    color: #c4d8f1;
}

.contenido-institucional {
    max-width: 570px;
    margin: 60px 0;
}

.etiqueta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.contenido-institucional h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
}

.contenido-institucional p {
    font-size: 17px;
    color: #cbdcf1;
    line-height: 1.8;
}

.carnet {
    background: #ffffff;
    color: #15365e;
    border-radius: 15px;
    max-width: 450px;
    overflow: hidden;
    margin: 35px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carnet-titulo {
    background: #e8effa;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
}

.carnet-contenido {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 18px;
}

.avatar {
    width: 60px;
    height: 75px;
    background: #dbeafe;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: bold;
    flex-shrink: 0;
}

.carnet-datos {
    flex: 1;
}

.carnet-datos strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.carnet-datos span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.qr-icono {
    width: 75px;
    flex-shrink: 0;
}

.carnet-pie {
    background: #1d4ed8;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

.beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #dbeafe;
}

.institucion {
    color: #cbdcf1;
    font-size: 14px;
}

.panel-acceso {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.formulario-contenedor {
    width: 100%;
    max-width: 420px;
}

.icono-seguridad {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e8f0ff;
    color: #2563eb;
    margin-bottom: 25px;
}

.formulario-contenedor h2 {
    font-size: 36px;
    font-weight: 750;
    margin-bottom: 12px;
}

.subtitulo {
    color: var(--gris);
    line-height: 1.7;
    margin-bottom: 35px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    min-height: 52px;
    border: 1px solid #d5deea;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.boton-login {
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    background: var(--azul-principal);
    border: none;
    font-weight: 600;
    font-size: 15px;
}

.boton-login:hover {
    background: #1d4ed8;
}

.aviso-seguridad {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.copyright {
    text-align: center;
    margin-top: 45px;
    font-size: 12px;
    line-height: 1.8;
    color: #94a3b8;
}

@media (max-width: 900px) {
    .login-contenedor {
        grid-template-columns: 1fr;
    }

    .panel-institucional {
        padding: 30px;
    }

    .contenido-institucional {
        margin: 30px 0;
    }

    .contenido-institucional h1 {
        font-size: 32px;
    }

    .panel-acceso {
        padding: 40px 25px;
    }

    .carnet {
        display: none;
    }

    .beneficios {
        display: none;
    }
}

@media (max-width: 480px) {
    .contenido-institucional h1 {
        font-size: 26px;
    }

    .formulario-contenedor h2 {
        font-size: 30px;
    }
}