/* =========================================================
   LINAO NATIONAL HIGH SCHOOL
   SENIOR HIGH SCHOOL ACADEMIC RECORDS
   LOGIN PAGE
   ========================================================= */


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}


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

.login-page {

    min-height: 100vh;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #f5f7fb 0%,
            #eef3fa 100%
        );

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    display: flex;

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

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   LOGIN SHELL
   ========================================================= */

.login-shell {

    width: min(1100px, 100%);

    min-height: 650px;

    display: grid;

    grid-template-columns:
        46% 54%;

    background: #ffffff;

    border:
        1px solid #e5eaf2;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 70px
        rgba(23, 32, 51, 0.12);

}


/* =========================================================
   LEFT BRANDING PANEL
   ========================================================= */

.login-brand {

    position: relative;

    min-height: 650px;

    padding: 42px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color: #ffffff;

    background-image:

        linear-gradient(
            135deg,
            rgba(8, 29, 78, 0.25),
            rgba(18, 61, 145, 0.16)
        ),

        url("images/businessman.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


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

.login-brand::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(4, 18, 48, 0.10) 0%,
            rgba(4, 18, 48, 0.18) 48%,
            rgba(4, 18, 48, 0.58) 100%
        );

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.brand-content {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 20px;

    max-width: 440px;

}


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

.brand-logo-wrap {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}


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

.school-logo {

    width: 82px;

    height: 82px;

    object-fit: contain;

    display: block;

    background: #ffffff;

    padding: 6px;

    border-radius: 20px;

    box-shadow:

        0 12px 30px
        rgba(0, 0, 0, 0.20);

    transition:

        transform 0.25s ease,

        box-shadow 0.25s ease;

}


.school-logo:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 16px 35px
        rgba(0, 0, 0, 0.25);

}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-text {

    min-width: 0;

    text-align: left;

}


/* =========================================================
   SCHOOL NAME
   ========================================================= */

.brand-school {

    margin: 0;

    color: #ffffff;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 23px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.035em;

    text-shadow:

        0 2px 12px
        rgba(0, 0, 0, 0.25);

}


/* =========================================================
   SENIOR HIGH SCHOOL
   ========================================================= */

.brand-level {

    margin-top: 7px;

    color:
        rgba(255, 255, 255, 0.94);

    font-size: 12px;

    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    text-shadow:

        0 2px 8px
        rgba(0, 0, 0, 0.20);

}


/* =========================================================
   SYSTEM NAME
   ========================================================= */

.brand-system {

    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 11px;

    line-height: 1.5;

    font-weight: 500;

    letter-spacing: 0.015em;

    text-shadow:

        0 2px 7px
        rgba(0, 0, 0, 0.20);

}


/* =========================================================
   BRAND BOTTOM
   ========================================================= */

.brand-bottom {

    position: relative;

    z-index: 2;

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 11px;

    font-weight: 650;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    padding-left: 2px;

    text-shadow:

        0 2px 10px
        rgba(0, 0, 0, 0.30);

}


/* GOLD ACCENT */

.brand-bottom::before {

    content: "";

    display: inline-block;

    width: 28px;

    height: 2px;

    margin-right: 9px;

    vertical-align: middle;

    background: #fbbf24;

    border-radius: 99px;

}


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

.login-card {

    padding: 65px 70px;

    background: #ffffff;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


/* =========================================================
   PORTAL ICON
   ========================================================= */

.portal-login-icon {

    width: 56px;

    height: 56px;

    display: grid;

    place-items: center;

    background: #edf3ff;

    color: #2563eb;

    border-radius: 15px;

    font-size: 24px;

    margin-bottom: 20px;

    box-shadow:

        0 8px 20px
        rgba(37, 99, 235, 0.08);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.portal-login-icon:hover {

    background: #2563eb;

    color: #ffffff;

    transform:
        translateY(-2px);

}


/* =========================================================
   EYEBROW
   ========================================================= */

.login-card .eyebrow {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

    color: #2563eb;

    margin-bottom: 7px;

}


/* =========================================================
   LOGIN TITLE
   ========================================================= */

.login-card h1 {

    margin: 0 0 10px;

    font-size: 34px;

    line-height: 1.15;

    color: #172033;

    font-weight: 850;

    letter-spacing: -0.04em;

}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.login-card > .muted {

    color: #7d889b;

    font-size: 13px;

    line-height: 1.7;

    margin:

        0 0 28px;

}


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

.login-card .alert {

    background: #fff1f2;

    border:
        1px solid #fecdd3;

    color: #be123c;

    border-radius: 10px;

    padding: 11px 13px;

    font-size: 12px;

    margin-bottom: 15px;

}


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

.login-card form label {

    display: block;

    margin:
        16px 0 7px;

    color: #344054;

    font-size: 12px;

    font-weight: 750;

}


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

.login-card form input {

    width: 100%;

    height: 48px;

    border:
        1px solid #dce2eb;

    border-radius: 11px;

    padding:
        0 14px;

    background: #ffffff;

    color: #172033;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.login-card form input::placeholder {

    color: #a4adbb;

}


.login-card form input:hover {

    border-color: #b8c3d4;

}


.login-card form input:focus {

    border-color: #2563eb;

    background: #ffffff;

    box-shadow:

        0 0 0 4px
        rgba(37, 99, 235, 0.10);

}


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

.login-card .btn.primary.full {

    width: 100%;

    height: 48px;

    margin-top: 24px;

    border: none;

    border-radius: 11px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:

        0 10px 22px
        rgba(37, 99, 235, 0.20);

    transition:

        background 0.2s ease,

        transform 0.2s ease,

        box-shadow 0.2s ease;

}


.login-card .btn.primary.full:hover {

    background: #1d4ed8;

    transform:
        translateY(-2px);

    box-shadow:

        0 14px 28px
        rgba(37, 99, 235, 0.25);

}


.login-card .btn.primary.full:active {

    transform:
        translateY(0);

    box-shadow:

        0 7px 15px
        rgba(37, 99, 235, 0.18);

}


.login-card .btn.primary.full:focus-visible {

    outline: none;

    box-shadow:

        0 0 0 4px
        rgba(37, 99, 235, 0.15),

        0 10px 22px
        rgba(37, 99, 235, 0.20);

}


/* =========================================================
   OTHER PORTALS
   ========================================================= */

.portal-switch {

    border-top:
        1px solid #edf0f5;

    margin-top: 27px;

    padding-top: 18px;

    text-align: center;

}


.portal-switch > span {

    display: block;

    color: #9aa3b2;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 10px;

}


.portal-switch a {

    display: inline-block;

    color: #2563eb;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    margin: 3px 5px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.portal-switch a:hover {

    color: #1e3a8a;

    text-decoration: underline;

}


/* =========================================================
   BACK HOME
   ========================================================= */

.back-home {

    display: block;

    margin-top: 20px;

    color: #7c8798;

    text-align: center;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.back-home:hover {

    color: #2563eb;

    transform:
        translateX(-2px);

}


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

@media (max-width: 900px) {

    .login-shell {

        grid-template-columns:
            40% 60%;

    }

    .login-brand {

        padding: 30px;

    }

    .brand-content {

        gap: 14px;

    }

    .school-logo {

        width: 68px;

        height: 68px;

    }

    .brand-school {

        font-size: 18px;

    }

    .brand-level {

        font-size: 10px;

    }

    .brand-system {

        font-size: 9px;

    }

    .login-card {

        padding: 50px 40px;

    }

    .login-card h1 {

        font-size: 29px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .login-page {

        padding: 0;

        align-items: stretch;

    }


    .login-shell {

        width: 100%;

        min-height: 100vh;

        border-radius: 0;

        grid-template-columns: 1fr;

        box-shadow: none;

    }


    .login-brand {

        min-height: 245px;

        padding: 28px 25px;

        justify-content: space-between;

    }


    .brand-content {

        gap: 14px;

        align-items: center;

    }


    .school-logo {

        width: 62px;

        height: 62px;

        padding: 5px;

        border-radius: 15px;

    }


    .brand-school {

        font-size: 18px;

        line-height: 1.15;

    }


    .brand-level {

        font-size: 9px;

        margin-top: 5px;

    }


    .brand-system {

        font-size: 9px;

        margin-top: 4px;

    }


    .brand-bottom {

        font-size: 8px;

        letter-spacing: 0.04em;

    }


    .login-card {

        padding: 35px 25px;

    }


    .login-card h1 {

        font-size: 27px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .login-brand {

        min-height: 225px;

        padding: 24px 20px;

    }


    .brand-content {

        gap: 11px;

    }


    .school-logo {

        width: 55px;

        height: 55px;

    }


    .brand-school {

        font-size: 16px;

    }


    .brand-level {

        font-size: 8px;

    }


    .brand-system {

        font-size: 8px;

    }


    .brand-bottom {

        font-size: 7px;

    }


    .login-card {

        padding:
            30px 20px;

    }

}