/* =========================================================
   TALENTOS - LOGIN
   ========================================================= */


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

html {
    background: #f4f5f9;
}

body.login-body {
    min-height: 100dvh;

    overflow: hidden;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8f9fc 0%,
            #f0f2f7 100%
        );

    color: #343039;
}


/* ==============================
   CONTENEDOR
============================== */

.login-page {
    width: 100%;

    height:
        calc(100dvh - 52px);

    display: flex;

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

    padding: 24px;
}


/* ==============================
   LOGIN BOX
============================== */

.login-box {
    width:
        min(100%, 1000px);

    height: 555px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    overflow: hidden;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 30px 80px rgba(30, 34, 60, .15),
        0 8px 25px rgba(30, 34, 60, .07);
}


/* =========================================================
   PANEL FOTO
========================================================= */

.login-brand-panel {
    position: relative;

    overflow: hidden;

    background-image:
        url('../img/login-colegio.jpg');

    background-size:
        cover;

    background-position:
        48% center;

    background-repeat:
        no-repeat;
}


/* overlay */

.login-brand-panel::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(31, 67, 135, .58) 0%,
            rgba(85, 52, 144, .62) 100%
        );

    z-index: 1;
}


/* oscurecimiento inferior */

.login-brand-panel::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.04) 0%,
            rgba(0,0,0,.10) 40%,
            rgba(23,20,57,.35) 100%
        );

    z-index: 2;
}


.brand-content {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

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

    padding: 45px;

    text-align: center;

    color: #fff;
}


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

.school-logo {
    margin-bottom: 16px;
}


.school-logo-circle {
    width: 118px;
    height: 118px;

    display: grid;

    place-items: center;

    border-radius: 50%;

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

    border:
        4px solid
        rgba(255,255,255,.48);

    box-shadow:
        0 13px 35px
        rgba(17, 16, 53, .30);
}


.logo-letter {
    font-size: 56px;

    font-weight: 900;

    color: #6d5cc9;

    line-height: 1;
}


/* ==============================
   TEXTOS PANEL
============================== */

.school-name {
    margin: 0;

    font-size: 28px;

    font-weight: 800;

    text-shadow:
        0 3px 15px
        rgba(0,0,0,.36);
}


.school-badge {
    display: inline-flex;

    margin-top: 7px;

    padding:
        5px 11px;

    border-radius: 30px;

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

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

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .15em;

    backdrop-filter:
        blur(8px);
}


.school-welcome {
    max-width: 360px;

    margin:
        28px 0 0;

    font-size: 15px;

    line-height: 1.6;

    text-shadow:
        0 3px 12px
        rgba(0,0,0,.48);
}


.school-welcome strong {
    display: block;
}


.school-description {
    max-width: 340px;

    margin:
        5px 0 0;

    font-size: 12px;

    line-height: 1.6;

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

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.45);
}


/* ==============================
   INSTALAR EN PANEL
============================== */

.install-brand-button {
    width: 280px;

    margin-top: 27px;

    padding:
        11px 14px;

    display: flex;

    align-items: center;

    gap: 11px;

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

    border-radius: 14px;

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

    color: #fff;

    font-family: inherit;

    cursor: pointer;

    text-align: left;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        transform .2s ease,
        background .2s ease;
}


.install-brand-button:hover {
    transform:
        translateY(-1px);

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


.install-brand-icon {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 11px;

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


.install-brand-icon svg {
    width: 19px;
    height: 19px;
}


.install-brand-text {
    display: flex;

    flex-direction: column;
}


.install-brand-text strong {
    font-size: 12px;
}


.install-brand-text small {
    margin-top: 2px;

    font-size: 10px;

    color:
        rgba(255,255,255,.70);
}


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

.login-form-panel {
    display: flex;

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

    padding:
        55px 48px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fafbfc
        );
}


.login-form-container {
    width: 100%;

    max-width: 410px;
}


/* ==============================
   TITULO
============================== */

.login-title {
    text-align: center;

    margin-bottom: 29px;
}


.login-title-row {
    display: flex;

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

    gap: 8px;
}


.login-title-icon {
    width: 26px;
    height: 26px;

    color: #342f38;
}


.login-title-icon svg {
    width: 100%;
    height: 100%;
}


.login-title h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;

    line-height: 1;

    color: #302d33;
}


.login-title p {
    margin:
        11px 0 0;

    font-size: 13px;

    color: #6e6973;
}


/* ==============================
   ERROR
============================== */

.login-error {
    display: flex;

    align-items: center;

    gap: 9px;

    margin:
        -8px 0 18px;

    padding:
        10px 12px;

    border-radius: 10px;

    border:
        1px solid #f2cece;

    background:
        #fff2f2;

    color: #ae4048;

    font-size: 12px;
}


.error-icon {
    flex: 0 0 auto;

    width: 21px;
    height: 21px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        #e35961;

    color: #fff;

    font-weight: 800;
}


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

.form-group {
    margin-bottom: 19px;
}


.form-group label {
    display: block;

    margin:
        0 0 7px 3px;

    font-size: 11px;

    font-weight: 700;

    color: #56515b;
}


.input-container {
    position: relative;
}


.input-container > input {
    width: 100%;
    height: 48px;

    padding:
        0 47px 0 45px;

    border:
        1px solid #e0e3ea;

    border-radius: 11px;

    outline: none;

    background:
        #fff;

    color:
        #38353d;

    font-size: 13px;

    box-shadow:
        0 5px 12px
        rgba(35, 42, 57, .055);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.input-container > input::placeholder {
    color: #a5a3aa;
}


.input-container > input:focus {
    border-color:
        #7081eb;

    box-shadow:
        0 0 0 3px
        rgba(98, 119, 229, .13),
        0 5px 12px
        rgba(35, 42, 57, .055);
}


.input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 18px;
    height: 18px;

    color: #9a9eab;

    pointer-events: none;
}


.input-icon svg {
    width: 18px;
    height: 18px;
}


/* ==============================
   OJO PASSWORD
============================== */

.password-button {
    position: absolute;

    top: 50%;
    right: 8px;

    transform:
        translateY(-50%);

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #999daa;

    cursor: pointer;
}


.password-button:hover {
    background: #f3f3f7;

    color: #6d60c9;
}


.password-button svg {
    width: 18px;
    height: 18px;
}


/* ==============================
   OPCIONES
============================== */

.login-options {
    display: flex;

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

    gap: 12px;

    margin:
        4px 0 26px;
}


.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: #69656d;

    cursor: pointer;
}


.remember input {
    width: 16px;
    height: 16px;

    accent-color:
        #735fd1;
}


.forgot-link {
    font-size: 11px;

    font-weight: 600;

    color:
        #667bf0;

    text-decoration: none;
}


.forgot-link:hover {
    text-decoration: underline;
}


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

.login-submit {
    width: 100%;
    height: 53px;

    display: flex;

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

    gap: 8px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            100deg,
            #617bed 0%,
            #755fd5 55%,
            #8050b7 100%
        );

    color: #fff;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .04em;

    box-shadow:
        0 12px 25px
        rgba(105, 88, 199, .22);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.login-submit:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 16px 30px
        rgba(105, 88, 199, .29);
}


.login-submit:active {
    transform:
        scale(.99);
}


.submit-icon {
    width: 18px;
    height: 18px;
}


.submit-icon svg {
    width: 100%;
    height: 100%;
}


/* ==============================
   INSTALAR MÓVIL
============================== */

.mobile-install-button {
    display: none;

    width: 100%;

    min-height: 46px;

    margin-top: 13px;

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

    gap: 7px;

    border:
        1px solid #e5e5ed;

    border-radius: 10px;

    background:
        #f8f8fb;

    color:
        #6558bd;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.mobile-install-button svg {
    width: 17px;
    height: 17px;
}


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

.login-footer {
    height: 52px;

    display: flex;

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

    gap: 5px;

    padding:
        0 15px;

    border-top:
        1px solid #ececf1;

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

    color:
        #77737d;

    font-size: 11px;
}


/* =========================================================
   OCULTAR BANNERS PWA ANTIGUOS
========================================================= */

.login-body .pwa-login-link,
.login-body .pwa-install-prompt,
.login-body .pwa-install-banner,
.login-body .install-banner,
.login-body .install-prompt {
    display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .login-box {
        width:
            min(100%, 820px);

        height: 520px;
    }


    .brand-content {
        padding: 35px;
    }


    .school-logo-circle {
        width: 100px;
        height: 100px;
    }


    .logo-letter {
        font-size: 47px;
    }


    .school-welcome {
        margin-top: 22px;
    }


    .login-form-panel {
        padding:
            40px 32px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 680px) {

    body.login-body {
        overflow: hidden;
    }


    .login-page {
        width: 100%;

        height:
            calc(100dvh - 42px);

        min-height: 0;

        padding:
            12px;
    }


    .login-box {
        width: 100%;

        max-width: 420px;

        height: auto;

        max-height:
            calc(100dvh - 65px);

        display: flex;

        flex-direction: column;

        border-radius: 20px;
    }


    .login-brand-panel {
        flex: 0 0 120px;

        background-position:
            center 40%;
    }


    .brand-content {
        height: 120px;

        justify-content: center;

        padding: 12px;
    }


    .school-logo {
        margin-bottom: 4px;
    }


    .school-logo-circle {
        width: 52px;
        height: 52px;

        border-width: 3px;
    }


    .logo-letter {
        font-size: 25px;
    }


    .school-name {
        font-size: 16px;
    }


    .school-badge {
        margin-top: 3px;

        padding:
            3px 6px;

        font-size: 6px;
    }


    .school-welcome,
    .school-description,
    .install-brand-button {
        display: none;
    }


    .login-form-panel {
        flex: 1 1 auto;

        min-height: 0;

        padding:
            19px 22px 18px;
    }


    .login-form-container {
        max-width: none;
    }


    .login-title {
        margin-bottom: 17px;
    }


    .login-title h2 {
        font-size: 24px;
    }


    .login-title-icon {
        width: 21px;
        height: 21px;
    }


    .login-title p {
        margin-top: 7px;

        font-size: 10px;
    }


    .form-group {
        margin-bottom: 12px;
    }


    .form-group label {
        margin-bottom: 5px;

        font-size: 9px;
    }


    .input-container > input {
        height: 45px;

        font-size: 12px;
    }


    .login-options {
        margin:
            2px 0 16px;
    }


    .remember,
    .forgot-link {
        font-size: 9px;
    }


    .remember input {
        width: 14px;
        height: 14px;
    }


    .login-submit {
        height: 48px;

        font-size: 11px;
    }


    .mobile-install-button {
        display: flex;

        height: 41px;

        min-height: 41px;

        margin-top: 9px;

        font-size: 9px;
    }


    .login-footer {
        height: 42px;

        font-size: 9px;
    }

}


/* =========================================================
   TELÉFONOS BAJOS
========================================================= */

@media
(max-width: 680px)
and
(max-height: 720px) {

    .login-brand-panel {
        flex-basis: 95px;
    }


    .brand-content {
        height: 95px;
    }


    .school-logo-circle {
        width: 42px;
        height: 42px;
    }


    .logo-letter {
        font-size: 20px;
    }


    .school-name {
        font-size: 14px;
    }


    .login-form-panel {
        padding:
            14px 20px;
    }


    .login-title {
        margin-bottom: 12px;
    }


    .form-group {
        margin-bottom: 9px;
    }


    .input-container > input {
        height: 42px;
    }


    .login-options {
        margin-bottom: 12px;
    }


    .login-submit {
        height: 44px;
    }


    .mobile-install-button {
        height: 38px;
        min-height: 38px;
    }

}


/* =========================================================
   PC BAJO
========================================================= */

@media
(min-width: 681px)
and
(max-height: 680px) {

    .login-page {
        height:
            calc(100dvh - 42px);

        padding: 14px;
    }


    .login-box {
        height:
            min(
                510px,
                calc(100dvh - 70px)
            );
    }


    .login-footer {
        height: 42px;
    }


    .school-logo-circle {
        width: 90px;
        height: 90px;
    }


    .logo-letter {
        font-size: 42px;
    }


    .school-welcome {
        margin-top: 18px;
    }


    .install-brand-button {
        margin-top: 17px;
    }


    .login-form-panel {
        padding:
            25px 40px;
    }

}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}
.install-brand-button[hidden],.mobile-install-button[hidden]{display:none!important}
