
/* =========================================================
   LOGIN - SISTEMA DE GESTIÓN EDUCATIVA
   ========================================================= */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 52% 48%;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    font-family: inherit;
}

/* =========================================================
   PANEL INSTITUCIONAL
   ========================================================= */

.login-decoration {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 13%;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 15% 15%, rgba(37, 99, 235, .25), transparent 35%), linear-gradient(145deg, #071b3a 0%, #0b2c58 55%, #103c70 100%);
}

    .login-decoration::before {
        content: "";
        position: absolute;
        width: 460px;
        height: 460px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 50%;
        top: -180px;
        right: -160px;
    }

    .login-decoration::after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 50%;
        bottom: -170px;
        left: -120px;
    }

.login-decoration-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, black, transparent 85%);
}

.login-brand {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin-top: -30px;
}

.login-overline {
    display: inline-block;
    color: #91c5ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.login-brand h1 {
    color: #ffffff;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
}

.login-brand p {
    color: #c3d3e8;
    font-size: 16px;
    line-height: 1.9;
    max-width: 455px;
    margin: 0;
}

/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */

.login-feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 23px;
    margin-top: 52px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e5eef9;
    font-size: 14px;
    font-weight: 500;
}

    .login-feature i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 43px;
        height: 43px;
        flex-shrink: 0;
        border-radius: 12px;
        color: #8fc5ff;
        background: rgba(255,255,255,.09);
        border: 1px solid rgba(255,255,255,.12);
        font-size: 20px;
    }

/* =========================================================
   PIE DEL PANEL AZUL
   ========================================================= */

.login-decoration-footer {
    position: absolute;
    bottom: 32px;
    left: 13%;
    z-index: 1;
    color: #8faac9;
    font-size: 11px;
    letter-spacing: .4px;
}

    .login-decoration-footer span {
        margin: 0 7px;
        color: #5faaff;
    }

/* =========================================================
   PANEL DERECHO
   ========================================================= */

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 55px 45px 145px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 325px;
}

    /* =========================================================
   ENCABEZADO DEL FORMULARIO
   ========================================================= */

    .login-card .eyebrow {
        display: block;
        color: #3979c8;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 13px;
    }

    .login-card h2 {
        color: #102746;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -.8px;
        margin: 0 0 10px;
    }

.login-subtitle {
    color: #8491a3;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 34px;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.login-field {
    margin-bottom: 23px;
}

.login-form .form-label {
    display: block;
    color: #263b56;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 9px;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    height: 51px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #fbfcfe;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .login-input-wrap:focus-within {
        border-color: #3982d5;
        box-shadow: 0 0 0 3px rgba(57,130,213,.10);
        background: #ffffff;
    }

    .login-input-wrap > i:first-child {
        flex: 0 0 45px;
        width: 40px;
        height: 100%;
        transform: translateX(-11px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #91a2b8;
        font-size: 17px;
        position: relative;
        z-index: 1;
    }

    .login-input-wrap .form-control {
        height: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        box-shadow: none;
        background: transparent;
        color: #203750;
        font-size: 12px;
        padding: 0 12px 0 0;
    }

        .login-input-wrap .form-control::placeholder {
            color: #aab5c3;
        }

        .login-input-wrap .form-control:focus {
            border: 0;
            box-shadow: none;
            background: transparent;
        }

/* =========================================================
   MOSTRAR / OCULTAR CONTRASEÑA
   ========================================================= */

.password-toggle {
    width: 42px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #8c9bae;
    cursor: pointer;
    font-size: 17px;
}

    .password-toggle:hover {
        color: #286fc0;
    }

/* =========================================================
   NOTA DE SESIÓN
   ========================================================= */

.login-session-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8996a7;
    font-size: 10px;
    margin: 8px 0 25px;
}

    .login-session-note i {
        font-size: 14px;
    }

/* =========================================================
   BOTÓN INGRESAR
   ========================================================= */

.login-submit {
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(105deg, #1768bd, #287fdb);
    box-shadow: 0 7px 18px rgba(31, 111, 194, .19);
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .login-submit:hover {
        color: #ffffff;
        background: linear-gradient(105deg, #105aa9, #216fc5);
        box-shadow: 0 10px 22px rgba(31, 111, 194, .27);
        transform: translateY(-1px);
    }

/* =========================================================
   SEGURIDAD Y COPYRIGHT
   ========================================================= */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #a0aaba;
    font-size: 9px;
    line-height: 1.6;
    text-align: center;
    margin-top: 27px;
}

    .login-security i {
        color: #5b9bdc;
        font-size: 13px;
    }

.login-copyright {
    color: #b0bac6;
    font-size: 10px;
    text-align: center;
    margin-top: 35px;
}

/* =========================================================
   VALIDACIONES
   ========================================================= */

.login-validation {
    font-size: 12px;
    border-radius: 8px;
}

.login-field .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

/* =========================================================
   LOGO CENTRAL PARA COMPUTADORAS
   ========================================================= */

.login-floating-logo {
    position: absolute;
    z-index: 5;
    top: 46%;
    left: 52%;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 8px solid #e8edf3;
    box-shadow: 0 15px 45px rgba(10, 31, 58, .18);
    transform: translate(-50%, -50%);
}

    .login-floating-logo img {
        display: block;
        width: 85%;
        height: 85%;
        object-fit: contain;
        border-radius: 20%;
    }

.login-mobile-logo {
    display: none;
}

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

@media (min-width: 769px) and (max-width: 1100px) {

    .login-decoration {
        padding: 55px 9%;
    }

    .login-decoration-footer {
        left: 9%;
    }

    .login-panel {
        padding: 40px 35px 40px 115px;
    }

    .login-floating-logo {
        width: 280px;
        height: 280px;
        padding: 10px;
    }

    .login-brand h1 {
        font-size: 39px;
    }
}

/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 768px) {

    .login-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        overflow: visible;
    }

    .login-decoration {
        min-height: 245px;
        padding: 42px 28px 35px;
        justify-content: center;
    }

    .login-brand {
        margin-top: 0;
    }

    .login-overline {
        font-size: 9px;
        margin-bottom: 12px;
    }

    .login-brand h1 {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .login-brand p {
        font-size: 12px;
        line-height: 1.6;
        max-width: 100%;
    }

    .login-feature-list {
        display: none;
    }

    .login-decoration-footer {
        display: none;
    }

    .login-panel {
        min-height: auto;
        flex: 1;
        padding: 45px 25px 35px;
    }

    .login-card {
        max-width: 390px;
    }

        .login-card h2 {
            font-size: 29px;
        }

    .login-floating-logo {
        display: none;
    }

    .login-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 94px;
        height: 94px;
        padding: 7px;
        margin: -90px auto 28px;
        position: relative;
        z-index: 3;
        border-radius: 50%;
        background: #ffffff;
        border: 5px solid #e8edf3;
        box-shadow: 0 8px 25px rgba(10, 31, 58, .13);
    }

        .login-mobile-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
        }
}

/* =========================================================
   PANTALLAS MUY PEQUEÑAS
   ========================================================= */

@media (max-width: 380px) {

    .login-decoration {
        padding-left: 22px;
        padding-right: 22px;
    }

    .login-panel {
        padding-left: 22px;
        padding-right: 22px;
    }

    .login-card h2 {
        font-size: 26px;
    }
}
