/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #071f46;
}


/* =========================================
   PAGE
========================================= */

.login-page {
    position: relative;

    min-height: 100vh;
    width: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 40px 100px;
}


/* =========================================
   BACKGROUND
========================================= */

.background {

    position: absolute;

    inset: 0;
    background-size: cover;
    background-position: center;

    z-index: 0;

    transform: scale(1.02);
}


/* =========================================
   OVERLAY
========================================= */

.background-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 31, 70, .92) 0%,
            rgba(8, 48, 100, .65) 38%,
            rgba(8, 42, 88, .35) 65%,
            rgba(2, 27, 61, .65) 100%
        );

    z-index: 1;
}


/* =========================================
   DECORATIONS
========================================= */

.decoration {

    position: absolute;

    z-index: 2;

    pointer-events: none;

    opacity: .35;
}


.decoration-1 {

    width: 400px;
    height: 400px;

    top: -220px;
    left: -100px;

    border-radius: 50%;

    border: 80px solid rgba(255,255,255,.08);
}


.decoration-2 {

    width: 450px;
    height: 450px;

    right: -200px;
    bottom: -250px;

    border-radius: 50%;

    border: 80px solid rgba(255,255,255,.08);
}


/* =========================================
   INSTITUTION
========================================= */

.institution {

    position: absolute;

    top: 65px;
    left: 7%;

    z-index: 5;

    display: flex;
    align-items: center;

    color: white;
}


.institution-logo img {

    width: 100px;
    height: 120px;

    object-fit: contain;
}


.institution-line {

    width: 2px;
    height: 110px;

    background: rgba(255,255,255,.7);

    margin: 0 28px;
}


.institution-text {

    display: flex;
    flex-direction: column;
}


.institution-text span {

    font-size: 25px;
    letter-spacing: 2px;
}


.institution-text strong {

    font-size: 48px;

    line-height: 1;

    letter-spacing: 1px;
}


.institution-text p {

    margin-top: 12px;

    font-size: 20px;

    line-height: 1.3;

    opacity: .95;
}


/* =========================================
   SLOGAN
========================================= */

.slogan {

    position: absolute;

    left: 6%;
    bottom: 125px;

    z-index: 5;

    color: white;

    display: flex;
    flex-direction: column;

    font-family: Georgia, serif;

    font-style: italic;

    font-size: 30px;

    line-height: 1.1;
}


.slogan strong {

    font-weight: 600;
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {

    position: relative;

    z-index: 10;

    width: 420px;

    margin-left: 42%;

    padding: 38px 45px 34px;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.28);

    animation: cardAppear .7s ease;
}


@keyframes cardAppear {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================
   LOGO
========================================= */

.login-logo {

    text-align: center;

    margin-bottom: 15px;
}


.login-logo img {

    width: 105px;
    height: 105px;

    object-fit: contain;
}


/* =========================================
   TITLES
========================================= */

.login-card h1 {

    text-align: center;

    color: #102f61;

    font-size: 27px;

    font-weight: 700;
}


.subtitle {

    text-align: center;

    margin-top: 6px;

    color: #55709b;

    font-size: 16px;
}


.title-line {

    width: 80px;
    height: 3px;

    margin: 18px auto;

    border-radius: 10px;

    background: #1264c3;
}


.login-description {

    text-align: center;

    color: #60769a;

    font-size: 15px;

    margin-bottom: 27px;
}


/* =========================================
   FORM
========================================= */

.form-group {

    margin-bottom: 20px;
}


.form-group label {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #17396d;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}


.label-icon {

    font-size: 15px;
}


/* =========================================
   INPUT
========================================= */

.input-container {

    position: relative;

    display: flex;

    align-items: center;
}


.input-container input {

    width: 100%;

    height: 50px;

    border: 1px solid #d4dce8;

    border-radius: 10px;

    outline: none;

    padding: 0 10px;

    font-family: inherit;

    font-size: 14px;

    color: #17396d;

    background: rgba(255,255,255,.9);

    transition: .25s;
}


.input-container input::placeholder {

    color: #a6b4c8;
}


.input-container input:focus {

    border-color: #2375d5;

    box-shadow:
        0 0 0 4px rgba(35,117,213,.10);
}


.input-icon {

    position: absolute;

    left: 16px;

    color: #51719e;

    z-index: 2;
}


.show-password {

    position: absolute;

    right: 14px;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 16px;

    color: #55709b;
}


/* =========================================
   REMEMBER
========================================= */

.login-options {

    margin: 4px 0 22px;
}


.remember {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #496384;

    font-size: 14px;

    cursor: pointer;
}


.remember input {

    display: none;
}


.checkmark {

    width: 20px;
    height: 20px;

    border-radius: 5px;

    border: 1px solid #cbd5e2;

    background: white;

    position: relative;
}


.remember input:checked + .checkmark {

    background: #1465c5;

    border-color: #1465c5;
}


.remember input:checked + .checkmark::after {

    content: "✓";

    position: absolute;

    color: white;

    font-size: 14px;

    font-weight: bold;

    left: 4px;
    top: 0px;
}


/* =========================================
   BUTTON
========================================= */

.login-button {

    width: 100%;

    height: 56px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #176ac5,
            #0d58ac
        );

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    box-shadow:
        0 8px 18px rgba(15,89,174,.25);

    transition: all .25s;
}


.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(15,89,174,.35);
}


.login-button:active {

    transform: translateY(0);
}


.arrow {

    font-size: 25px;

    line-height: 1;

    transition: transform .25s;
}


.login-button:hover .arrow {

    transform: translateX(5px);
}


/* =========================================
   FORGOT PASSWORD
========================================= */

.forgot-password {

    display: block;

    text-align: center;

    margin-top: 20px;

    color: #145fd0;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;
}


.forgot-password:hover {

    text-decoration: underline;
}


/* =========================================
   HELP BOX
========================================= */

.help-box {

    margin-top: 27px;

    padding: 15px;

    border-radius: 12px;

    background: #edf5ff;

    display: flex;

    align-items: center;

    gap: 14px;
}


.help-icon {

    min-width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1267ce;

    color: white;

    font-weight: 700;
}


.help-content strong {

    display: block;

    color: #17498a;

    font-size: 13px;

    margin-bottom: 4px;
}


.help-content p {

    color: #617898;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================
   FOOTER
========================================= */

.footer {

    position: absolute;

    z-index: 20;

    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(3,31,70,.75);

    backdrop-filter: blur(10px);

    color: rgba(255,255,255,.85);

    font-size: 11px;
}


.footer-left,
.footer-right {

    display: flex;

    align-items: center;

    gap: 12px;
}


.footer-left strong {

    font-size: 11px;
}


.footer a {

    color: white;

    text-decoration: underline;
}


.separator {

    width: 1px;
    height: 15px;

    background: rgba(255,255,255,.3);
}


.footer-icon {

    font-size: 17px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .login-card {

        margin-left: 35%;

    }

    .institution {

        left: 4%;
    }

    .institution-text strong {

        font-size: 40px;
    }

}


@media (max-width: 850px) {

    .login-page {

        padding: 40px 20px 40px;

        align-items: center;

    }

    .background-overlay {

        background:
            linear-gradient(
                180deg,
                rgba(3,31,70,.82),
                rgba(3,31,70,.78)
            );
    }

    .institution {

        position: relative;

        top: auto;
        left: auto;

        margin-bottom: 25px;

        justify-content: center;

        display: none;
    }

    .login-card {

        width: min(520px, 100%);

        margin-left: 0;

    }

    .slogan {

        display: none;
    }

    .footer {

        display: none;
    }

}


@media (max-width: 500px) {

    .login-page {

        padding: 25px 15px;

    }

    .login-card {

        padding: 30px 24px;

        border-radius: 18px;

    }

    .login-logo img {

        width: 85px;
        height: 85px;

    }

    .login-card h1 {

        font-size: 22px;

    }

    .subtitle {

        font-size: 14px;

    }

    .login-description {

        font-size: 13px;

    }

}

.app-download {
    width: 100%;
    margin-top: 20px;
}


/* =========================================
   BOTONES APP STORE / GOOGLE PLAY
========================================= */

.store-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-button {
    width: 150px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 8px 14px;
    background: #d6d8dd;
    border: 1px solid #dfdfdf;
    border-radius: 9px;
    color: #171166;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Hover */

.store-button:hover {
    color: #ffffff;
    background: #151515;
    transform: translateY(-2px);
    box-shadow:
        0 7px 16px rgba(0, 0, 0, .18);
}


/* Iconos */

.store-icon {
    font-size: 21px;
    line-height: 1;
}

.google-icon {
    font-size: 21px;
}


/* Texto */

.store-text {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    line-height: 1;
}


.store-text small {
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 3px;
}


.store-text strong {
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}



/* =========================================
   QR
========================================= */

.qr-download {
    margin-top: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}


/* Caja QR */

.qr-box {
    width: 86px;
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #dbe5f0;
    border-radius: 8px;

    box-shadow:
        0 2px 6px rgba(10, 61, 117, .08);
}


/* Bootstrap QR icon */

.qr-box i {
    font-size: 65px;

    color: #000000;

    line-height: 1;
}


/* Línea vertical */

.qr-divider {
    width: 1px;
    height: 72px;

    background: #cbd9e8;
}


/* Información */

.qr-info {
    display: flex;
    flex-direction: column;

    text-align: center;
}


.qr-info strong {
    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;

    color: #173e72;
}


.qr-info span {
    margin-top: 5px;

    font-size: 12px;
    font-weight: 400;

    color: #6f8bab;
}



/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .store-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .store-button {
        width: 100%;
        max-width: 250px;
    }

    .qr-download {
        margin-top: 20px;
    }

}