/* =========================================================
   BIBLIOTECA VIRTUAL DIGITAL
   LOGIN INSTITUCIONAL 2026
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    background: #f5f7fa;
    color: #263746;
}


/* =========================================================
   ESTRUCTURA
   ========================================================= */

.login-modern-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(520px, 1.08fr)
        minmax(480px, .92fr);
}


/* =========================================================
   PANEL INSTITUCIONAL
   ========================================================= */

.login-institutional {
    position: relative;
    min-height: 100vh;
    padding: 42px 54px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(71,132,190,.30),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(49,117,151,.22),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #0b2947 0%,
            #123b66 48%,
            #18537f 100%
        );

    color: #fff;
}


/* DECORACIONES */

.login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 430px;
    height: 430px;
    right: -220px;
    top: -170px;
    border: 1px solid rgba(255,255,255,.08);
}

.decoration-two {
    width: 290px;
    height: 290px;
    right: -130px;
    top: -95px;
    border: 1px solid rgba(255,255,255,.08);
}

.decoration-three {
    width: 180px;
    height: 180px;
    left: -100px;
    bottom: 70px;
    background: rgba(255,255,255,.025);
}


/* CONTENIDO */

.login-institutional-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    flex: 1;
}


/* =========================================================
   LOGO / MARCA
   ========================================================= */

.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-brand-logo {
    width: 62px;
    height: 62px;
    padding: 4px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow:
        0 10px 25px rgba(0,0,0,.14);
}

.login-brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 11px;
}

.login-brand-text span,
.login-brand-text strong {
    display: block;
}

.login-brand-text span {
    margin-bottom: 2px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    font-weight: 500;
}

.login-brand-text strong {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   LICENCIAMIENTO
   ========================================================= */

.login-license-badge {
    width: max-content;
    max-width: 100%;
    margin-top: 31px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;

    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.login-license-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;

    background: rgba(113,194,137,.16);
    color: #8bd29f;
    font-size: 17px;
}

.login-license-badge small,
.login-license-badge strong {
    display: block;
}

.login-license-badge small {
    color: rgba(255,255,255,.58);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.login-license-badge strong {
    margin-top: 1px;
    color: #fff;
    font-size: 11px;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.login-welcome {
    margin-top: 36px;
}

.login-welcome-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;

    color: #8fc2e3;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.1px;
}

.login-welcome h1 {
    max-width: 540px;
    margin: 0;

    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 780;
    line-height: 1.03;
    letter-spacing: -1.7px;
}

.login-welcome h1 span {
    display: block;
    color: #86c5e7;
}

.login-welcome p {
    max-width: 530px;
    margin: 18px 0 0;

    color: rgba(255,255,255,.68);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   ILUSTRACIÓN DIGITAL
   ========================================================= */

.login-library-visual {
    position: relative;
    height: 185px;
    margin-top: 20px;
}

.login-visual-glow {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 350px;
    height: 100px;
    transform: translateX(-50%);

    border-radius: 50%;
    background:
        radial-gradient(
            ellipse,
            rgba(86,166,212,.23),
            transparent 67%
        );
}

.login-book-stack {
    position: relative;
    width: 330px;
    height: 180px;
    margin: auto;
}

.login-book {
    position: absolute;
    bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px 7px 4px 4px;
    box-shadow:
        0 12px 25px rgba(0,0,0,.15);
}

.book-one {
    left: 28px;
    width: 52px;
    height: 117px;
    transform: rotate(-7deg);

    background:
        linear-gradient(
            160deg,
            #4e8eb7,
            #326a91
        );

    color: rgba(255,255,255,.8);
}

.book-two {
    left: 76px;
    width: 55px;
    height: 135px;
    transform: rotate(-2deg);

    background:
        linear-gradient(
            160deg,
            #d4a95c,
            #a97c37
        );

    color: rgba(255,255,255,.84);
}

.book-three {
    right: 39px;
    width: 57px;
    height: 120px;
    transform: rotate(7deg);

    background:
        linear-gradient(
            160deg,
            #6a9c7a,
            #47745a
        );

    color: rgba(255,255,255,.82);
}

.login-book i {
    font-size: 19px;
}

.login-device {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 12px;

    width: 135px;
    height: 153px;
    padding: 7px;

    transform: translateX(-50%);

    border-radius: 12px;
    background: #dce6ed;

    box-shadow:
        0 18px 30px rgba(0,0,0,.22);
}

.login-device-screen {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        linear-gradient(
            150deg,
            #153b5c,
            #205e88
        );

    color: #fff;
}

.login-device-screen i {
    margin-bottom: 8px;
    color: #91c9e8;
    font-size: 28px;
}

.login-device-screen span {
    font-size: 12px;
    font-weight: 700;
}

.login-device-screen small {
    color: rgba(255,255,255,.55);
    font-size: 8px;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.login-features {
    margin-top: 10px;
    padding-top: 17px;

    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;

    border-top:
        1px solid rgba(255,255,255,.10);
}

.login-features > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-features > div > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(255,255,255,.08);

    color: #8fc2df;
}

.login-features p {
    margin: 0;
}

.login-features strong,
.login-features small {
    display: block;
}

.login-features strong {
    color: rgba(255,255,255,.88);
    font-size: 9px;
}

.login-features small {
    margin-top: 1px;
    color: rgba(255,255,255,.45);
    font-size: 7px;
}


/* PIE IZQUIERDO */

.login-institutional-footer {
    position: relative;
    z-index: 2;

    margin-top: 22px;
    padding-top: 14px;

    display: flex;
    justify-content: space-between;
    gap: 15px;

    border-top:
        1px solid rgba(255,255,255,.09);

    color: rgba(255,255,255,.43);
    font-size: 8px;
}

.login-institutional-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   PANEL DE ACCESO
   ========================================================= */

.login-access {
    min-height: 100vh;
    padding: 45px 55px 25px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(51,113,160,.06),
            transparent 30%
        ),
        #f8fafc;
}

.login-access-inner {
    width: 100%;
    max-width: 455px;
    margin: auto;
}


/* =========================================================
   CABECERA FORMULARIO
   ========================================================= */

.login-access-header {
    margin-bottom: 26px;
}

.login-access-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #eaf2f8,
            #f3f7fa
        );

    color: #356f9c;
    font-size: 18px;

    box-shadow:
        inset 0 0 0 1px #dfe9ef;
}

.login-access-eyebrow {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #78909d;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .7px;
}

.login-access-header h2 {
    margin: 4px 0 5px;

    color: #233847;
    font-size: 30px;
    font-weight: 760;
    letter-spacing: -.6px;
}

.login-access-header p {
    max-width: 370px;
    margin: 0;

    color: #8a9aa4;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-error {
    margin-bottom: 17px;
    padding: 11px 12px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    border: 1px solid #efdada;
    border-radius: 10px;

    background: #fff8f8;
}

.login-error > span {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f9e8e8;
    color: #a86f6f;
}

.login-error strong {
    display: block;
    color: #875f5f;
    font-size: 10px;
}

.login-error p {
    margin: 2px 0 0;
    color: #a17d7d;
    font-size: 9px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form-group {
    margin-bottom: 17px;
}

.login-form-group label {
    margin-bottom: 6px;

    color: #536b79;
    font-size: 11px;
    font-weight: 700;
}

.login-form-group label span {
    color: #b07676;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-security-label {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #8ba098;
    font-size: 8px;
}

.login-input-box {
    height: 51px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #dce5ea;
    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 3px 10px rgba(44,69,83,.025);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.login-input-box:focus-within {
    border-color: #8fb1c7;

    box-shadow:
        0 0 0 4px rgba(58,113,151,.07);
}

.login-input-icon {
    width: 48px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7896a8;
    font-size: 15px;
}

.login-input-box input {
    min-width: 0;
    flex: 1;
    height: 49px;

    padding: 0 8px 0 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #425966;
    font-size: 12px;
}

.login-input-box input::placeholder {
    color: #aab6bd;
}

.login-input-end {
    padding: 0 13px;
    flex: 0 0 auto;

    color: #a2adb3;
    font-size: 8px;
}

.login-password-toggle {
    width: 48px;
    height: 49px;
    flex: 0 0 auto;

    border: 0;
    border-left: 1px solid #edf1f3;

    background: #fafcfd;

    color: #718b99;
}

.login-password-toggle:hover {
    background: #f2f6f8;
    color: #3f718e;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.login-submit {
    width: 100%;
    min-height: 51px;
    margin-top: 5px;
    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1c527e,
            #286c9d
        );

    color: #fff;

    font-size: 11px;
    font-weight: 750;

    box-shadow:
        0 10px 20px rgba(28,82,126,.18);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.login-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 13px 25px rgba(28,82,126,.23);
}

.login-submit i {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255,255,255,.12);
}


/* =========================================================
   RECUPERACIÓN
   ========================================================= */

.login-recovery {
    margin-top: 20px;
    text-align: center;
}

.login-recovery a {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #376f99;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.login-recovery a:hover {
    text-decoration: underline;
}

.login-recovery p {
    max-width: 330px;
    margin: 8px auto 0;

    color: #9aa6ad;
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   SEGURIDAD
   ========================================================= */

.login-security {
    margin-top: 20px;
    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid #e1e9ed;
    border-radius: 10px;

    background: #fff;
}

.login-security > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #edf6f0;
    color: #688e73;
}

.login-security strong,
.login-security small {
    display: block;
}

.login-security strong {
    color: #617681;
    font-size: 9px;
}

.login-security small {
    margin-top: 1px;
    color: #9aa6ac;
    font-size: 8px;
    line-height: 1.4;
}


/* =========================================================
   FOOTER DERECHO
   ========================================================= */

.login-access-footer {
    width: 100%;
    max-width: 455px;

    margin: 25px auto 0;
    padding-top: 13px;

    display: flex;
    justify-content: space-between;
    gap: 15px;

    border-top: 1px solid #e6ebee;

    color: #a2adb3;
    font-size: 8px;
}


/* =========================================================
   MÓVIL
   ========================================================= */

.login-mobile-brand,
.login-mobile-license {
    display: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .login-modern-page {
        grid-template-columns: 1fr 1fr;
    }

    .login-institutional {
        padding-left: 35px;
        padding-right: 35px;
    }

    .login-access {
        padding-left: 38px;
        padding-right: 38px;
    }

    .login-features {
        grid-template-columns: 1fr;
    }

    .login-library-visual {
        height: 155px;
    }

    .login-book-stack {
        transform: scale(.84);
        transform-origin: center top;
    }
}


@media (max-width: 850px) {

    .login-modern-page {
        display: block;
        min-height: 100vh;
    }

    .login-institutional {
        display: none;
    }

    .login-access {
        min-height: 100vh;
        padding: 30px 22px 20px;
    }

    .login-access-inner {
        margin: auto;
    }

    .login-mobile-brand {
        margin-bottom: 35px;

        display: flex;
        align-items: center;
        gap: 10px;
    }

    .login-mobile-brand img {
        width: 48px;
        height: 48px;
        padding: 3px;

        border: 1px solid #e1e8ec;
        border-radius: 11px;

        background: #fff;

        object-fit: contain;
    }

    .login-mobile-brand small,
    .login-mobile-brand strong {
        display: block;
    }

    .login-mobile-brand small {
        color: #98a5ac;
        font-size: 8px;
    }

    .login-mobile-brand strong {
        color: #435d6b;
        font-size: 11px;
    }

    .login-mobile-license {
        margin-top: 15px;
        padding: 10px 11px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;

        border: 1px solid #dfe9e3;
        border-radius: 9px;

        background: #f6faf7;

        color: #6c8d75;
        font-size: 9px;
    }

    .login-mobile-license span,
    .login-mobile-license strong {
        display: block;
    }

    .login-mobile-license strong {
        margin-top: 1px;
        font-size: 8px;
    }
}


@media (max-width: 480px) {

    .login-access {
        padding: 20px 16px;
    }

    .login-mobile-brand {
        margin-bottom: 27px;
    }

    .login-access-header h2 {
        font-size: 26px;
    }

    .login-input-end {
        display: none;
    }

    .login-access-footer {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}

