/* =========================================================
   MSOLP SCHOOL ERP - SHARED LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;
    background: #f1f5f9;
    font-family: var(--font-family, "Segoe UI", Arial, sans-serif);
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

/* LEFT: SCHOOL INFORMATION */

.login-school-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px clamp(30px, 6vw, 90px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(72,198,217,.24), transparent 32%),
        linear-gradient(145deg, #10243a 0%, #124d7c 58%, #1677c8 100%);
}

.login-school-panel::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -180px;
    bottom: -190px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255,255,255,.035),
                0 0 0 90px rgba(255,255,255,.025);
    pointer-events: none;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.login-brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 27px;
    font-weight: 800;
}

.login-brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .04em;
}

.login-brand-subtitle {
    display: block;
    margin-top: 2px;
    color: #c9dfef;
    font-size: 10px;
    letter-spacing: .17em;
}

.login-school-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
    padding: 55px 0;
}

.login-school-content .eyebrow {
    color: var(--cyan);
}

.login-school-content h1 {
    max-width: 600px;
    color: #fff;
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.12;
}

.login-school-description {
    max-width: 480px;
    color: #d8e8f5;
    font-size: 16px;
    line-height: 1.8;
}

.login-school-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 35px;
}

.login-school-feature {
    padding: 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.login-school-feature span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 19px;
}

.login-school-footer {
    position: relative;
    z-index: 1;
    color: #c5d8e8;
    font-size: 12px;
}

/* RIGHT: LOGIN FORM */

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px clamp(25px, 6vw, 85px);
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 430px;
}

.login-form-heading {
    margin-bottom: 35px;
}

.login-form-heading .eyebrow {
    color: var(--blue);
}

.login-form-heading h2 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: clamp(30px, 3vw, 39px);
}

.login-form-heading p {
    color: var(--muted);
    font-size: 14px;
}

.login-alert {
    padding: 13px 15px;
    margin-bottom: 22px;
    border: 1px solid #f3c4c4;
    border-radius: 8px;
    background: #fff1f1;
    color: #a92f3a;
    font-size: 13px;
}

.login-form .form-group {
    margin-bottom: 21px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 51px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fbfcfe;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22,119,200,.10);
    background: #fff;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 9px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, var(--blue), #219acb);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(22,119,200,.22);
}

.login-security-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.login-return-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
}

.login-return-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE LOGIN LAYOUT */

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-school-panel {
        min-height: 440px;
        padding: 35px 28px;
    }

    .login-school-content {
        padding: 45px 0;
    }

    .login-school-content h1 {
        font-size: 40px;
    }

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

@media (max-width: 480px) {
    .login-school-panel {
        min-height: 400px;
    }

    .login-school-content h1 {
        font-size: 34px;
    }

    .login-school-features {
        grid-template-columns: 1fr;
    }

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


/* =========================================================
   MSOLP PREMIUM LOGIN PAGE
   10-IMAGE SCHOOL FACILITIES CAROUSEL
   ========================================================= */

.login-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fa;
    color: #263442;
    font-family: Arial, Helvetica, sans-serif;
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 100vh;
    overflow: hidden;
}

/* LEFT SCHOOL PANEL */

.login-school-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 48px 6%;
    overflow: hidden;
    background: #10243a;
    color: #fff;
}

.login-carousel {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #10243a;
}

.login-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(9, 30, 53, 0.96) 0%,
            rgba(9, 30, 53, 0.82) 42%,
            rgba(9, 30, 53, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 29, 52, 0.85),
            transparent 65%
        );
    z-index: 2;
}

.login-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity 1.2s ease,
        transform 6s ease;
}

.login-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* BRANDING */

.login-brand {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 17px;
    background: linear-gradient(135deg, #48c6d9, #0875d1);
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-brand-name {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.login-brand-subtitle {
    margin-top: 5px;
    color: #d8e9f6;
    font-size: 11px;
    letter-spacing: 4px;
}

/* SCHOOL INTRODUCTION */

.login-school-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: auto 0;
    padding: 60px 0 90px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 17px;
    border: 1px solid rgba(72, 198, 217, 0.7);
    border-radius: 30px;
    background: rgba(22, 119, 200, 0.25);
    color: #66e6f3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-school-content h1 {
    max-width: 650px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.login-school-content h1 span {
    display: block;
    margin-top: 5px;
    color: #48c6d9;
}

.login-intro {
    max-width: 520px;
    margin: 0 0 35px;
    color: #e0ebf5;
    font-size: 16px;
    line-height: 1.8;
}

/* FEATURE CARDS */

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 550px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(130, 197, 231, 0.45);
    border-radius: 14px;
    background: rgba(13, 54, 88, 0.7);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.login-feature:hover {
    transform: translateY(-4px);
    background: rgba(22, 119, 200, 0.4);
}

.login-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    height: 43px;
    border-radius: 10px;
    background: rgba(72, 198, 217, 0.15);
    color: #48c6d9;
    font-size: 17px;
    font-weight: 800;
}

.login-feature strong,
.login-feature small {
    display: block;
    color: #fff;
}

.login-feature strong {
    font-size: 14px;
}

.login-feature small {
    margin-top: 4px;
    color: #d9e8f4;
    font-size: 12px;
}

/* SCHOOL DETAILS */

.login-school-footer {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 35px;
    padding-left: 15px;
    border-left: 3px solid #48c6d9;
}

.login-school-footer strong {
    color: #fff;
    font-size: 16px;
}

.login-school-footer span {
    color: #d9e8f4;
    font-size: 13px;
}

/* CAROUSEL CONTROLS */

.login-carousel-controls {
    position: absolute;
    z-index: 4;
    right: 6%;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-carousel-controls > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-carousel-controls > button:hover {
    background: #1677c8;
}

.login-carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.login-carousel-dot.active {
    width: 27px;
    background: #48c6d9;
}

.login-powered-left {
    position: absolute;
    z-index: 3;
    bottom: 48px;
    left: 6%;
    color: #dceaf5;
    font-size: 13px;
}

.login-powered-left strong {
    color: #fff;
    letter-spacing: 0.5px;
}

/* RIGHT LOGIN PANEL */

.login-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 55px 8%;
    background:
        radial-gradient(circle at top right, #e1f3ff 0, transparent 35%),
        #f7f9fc;
}

.login-form-card {
    width: 100%;
    max-width: 490px;
    padding: 48px 42px;
    border: 1px solid #e6edf4;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(16, 36, 58, 0.09);
}

/* SECURITY LABEL */

.login-security-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 15px;
    border-radius: 30px;
    background: #eaf6ff;
    color: #1267ae;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-security-icon {
    font-size: 17px;
}

/* FORM HEADING */

.login-form-heading {
    margin-bottom: 35px;
}

.login-form-heading h2 {
    margin: 0 0 10px;
    color: #10243a;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-form-heading p {
    margin: 0;
    color: #617181;
    font-size: 14px;
    line-height: 1.7;
}

/* FORM FIELDS */

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

.login-field label {
    display: block;
    margin-bottom: 10px;
    color: #172d45;
    font-size: 14px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 55px;
    padding: 0 17px;
    border: 1px solid #ccd8e5;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #263442;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input::placeholder {
    color: #8b9aab;
}

.login-field input:focus {
    border-color: #1677c8;
    box-shadow: 0 0 0 4px rgba(22, 119, 200, 0.1);
}

/* PASSWORD */

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 75px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1677c8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.login-password-toggle:hover {
    background: #edf6ff;
}

/* SUBMIT BUTTON */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 58px;
    margin-top: 10px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, #1677c8, #0754b7);
    box-shadow: 0 10px 22px rgba(22, 119, 200, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit span {
    font-size: 22px;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 27px rgba(22, 119, 200, 0.3);
}

.login-submit:active {
    transform: translateY(0);
}

/* ERROR MESSAGE */

.login-error {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #f1b9b9;
    border-radius: 9px;
    background: #fff2f2;
    color: #a52222;
    font-size: 13px;
    line-height: 1.6;
}

/* SECURITY FOOTER */

.login-protection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 28px;
    text-align: center;
}

.login-protection > span {
    color: #1677c8;
    font-size: 20px;
}

.login-protection p {
    margin: 0;
    color: #617181;
    font-size: 12px;
    line-height: 1.6;
}

.login-form-divider {
    height: 1px;
    margin: 28px 0 20px;
    background: #e5ebf1;
}

.login-powered-right {
    color: #617181;
    font-size: 13px;
    text-align: center;
}

.login-powered-right strong {
    color: #0754b7;
    font-size: 15px;
    font-weight: 800;
}

.login-copyright {
    margin-top: 25px;
    color: #8391a0;
    font-size: 11px;
    text-align: center;
}

/* RESPONSIVE TABLET */

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1fr 0.9fr;
    }

    .login-school-panel {
        padding: 35px 5%;
    }

    .login-form-panel {
        padding: 35px 5%;
    }

    .login-form-card {
        padding: 38px 28px;
    }

    .login-school-content h1 {
        font-size: 34px;
    }

    .login-feature {
        padding: 12px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 760px) {
    .login-layout {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .login-school-panel {
        min-height: 620px;
        padding: 30px 25px 100px;
    }

    .login-brand-mark {
        width: 52px;
        height: 52px;
        font-size: 29px;
    }

    .login-brand-name {
        font-size: 26px;
    }

    .login-brand-subtitle {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .login-school-content {
        padding: 65px 0 45px;
    }

    .login-school-content h1 {
        font-size: 32px;
    }

    .login-intro {
        font-size: 14px;
    }

    .login-feature-grid {
        gap: 9px;
    }

    .login-feature {
        min-height: 75px;
        gap: 9px;
        padding: 10px;
    }

    .login-feature-icon {
        flex-basis: 34px;
        height: 34px;
        font-size: 14px;
    }

    .login-feature strong {
        font-size: 12px;
    }

    .login-feature small {
        font-size: 11px;
    }

    .login-school-footer {
        margin-top: 25px;
    }

    .login-carousel-controls {
        right: 25px;
        bottom: 30px;
    }

    .login-powered-left {
        bottom: 40px;
        left: 25px;
        font-size: 11px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 45px 20px 30px;
    }

    .login-form-card {
        max-width: 500px;
        padding: 35px 25px;
        border-radius: 17px;
    }

    .login-form-heading h2 {
        font-size: 31px;
    }
}

@media (max-width: 400px) {
    .login-school-panel {
        min-height: 680px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .login-school-content h1 {
        font-size: 28px;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-feature {
        min-height: 62px;
    }

    .login-powered-left {
        display: none;
    }

    .login-form-card {
        padding: 30px 20px;
    }
}


/* =========================================================
   MSOLP - MONTESSORI OLYMPUS SCHOOL LOGIN PAGE
   Dynamic 10-slide carousel + official school branding
   ========================================================= */

.login-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fa;
    color: #263442;
    font-family: Arial, Helvetica, sans-serif;
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 100vh;
    overflow: hidden;
}

/* LEFT PANEL */

.login-school-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 38px 6%;
    overflow: hidden;
    color: #fff;
    background: #10243a;
}

.login-carousel {
    position: absolute;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    background: #10243a;
}

.login-slide {
    position: absolute;
    inset: 0;
    background-color: #10243a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.1s ease, transform 6s ease;
}

.login-slide.active {
    opacity: 1;
    transform: scale(1);
}

.login-panel-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 46, 0.94) 0%,
            rgba(7, 25, 46, 0.78) 48%,
            rgba(7, 25, 46, 0.40) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 25, 46, 0.88) 0%,
            transparent 55%
        );
}

/* BRAND LOGO */

.login-brand {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-school-logo {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: 5px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.login-brand-text {
    min-width: 0;
}

.login-brand-name {
    color: #fff;
    font-size: clamp(17px, 1.7vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.login-brand-subtitle {
    margin-top: 6px;
    color: #aeeaf4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

/* SLIDE TEXT */

.login-school-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 680px;
    margin: auto 0;
    padding: 42px 0 65px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 26px;
    padding: 10px 16px;
    border: 1px solid rgba(72, 198, 217, 0.65);
    border-radius: 30px;
    background: rgba(22, 119, 200, 0.25);
    color: #8ce9f3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-slide-copy {
    position: relative;
    min-height: 190px;
}

.login-slide-text {
    display: none;
    animation: loginTextEnter 0.7s ease both;
}

.login-slide-text.active {
    display: block;
}

@keyframes loginTextEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-slide-category {
    margin-bottom: 15px;
    color: #65dce9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.login-slide-text h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 3.6vw, 51px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.login-intro {
    max-width: 530px;
    margin: 0;
    color: #e5edf5;
    font-size: 15px;
    line-height: 1.85;
}

/* FEATURE CARDS */

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
    margin-top: 30px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 12px 15px;
    border: 1px solid rgba(164, 217, 240, 0.35);
    border-radius: 12px;
    background: rgba(13, 46, 76, 0.72);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.login-feature:hover {
    transform: translateY(-3px);
    background: rgba(22, 119, 200, 0.45);
}

.login-feature-icon {
    display: flex;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: rgba(72, 198, 217, 0.16);
    color: #65dce9;
    font-size: 14px;
    font-weight: 800;
}

.login-feature strong,
.login-feature small {
    display: block;
    color: #fff;
}

.login-feature strong {
    font-size: 13px;
}

.login-feature small {
    margin-top: 4px;
    color: #cbdbe9;
    font-size: 11px;
}

/* SCHOOL ADDRESS */

.login-school-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 25px;
    padding-left: 14px;
    border-left: 3px solid #48c6d9;
}

.login-school-footer strong {
    color: #fff;
    font-size: 14px;
}

.login-school-footer span {
    color: #cbdbe9;
    font-size: 12px;
}

/* CAROUSEL CONTROLS */

.login-carousel-controls {
    position: absolute;
    z-index: 5;
    right: 6%;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-carousel-controls > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-carousel-controls > button:hover {
    background: #1677c8;
}

.login-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.login-carousel-dot.active {
    width: 23px;
    background: #48c6d9;
}

.login-slide-count {
    color: #e8f4fb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-powered-left {
    position: absolute;
    z-index: 5;
    bottom: 47px;
    left: 6%;
    color: #dceaf5;
    font-size: 12px;
}

.login-powered-left strong {
    color: #fff;
    letter-spacing: 0.5px;
}

/* RIGHT LOGIN PANEL */

.login-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 45px 7%;
    background:
        radial-gradient(circle at top right, #e1f3ff 0, transparent 35%),
        #f7f9fc;
}

.login-form-card {
    width: 100%;
    max-width: 470px;
    padding: 45px 40px;
    border: 1px solid #e6edf4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(16, 36, 58, 0.09);
}

/* LOGIN FORM HEADER */

.login-security-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 29px;
    padding: 10px 14px;
    border-radius: 30px;
    background: #eaf6ff;
    color: #1267ae;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-security-icon {
    font-size: 16px;
}

.login-form-heading {
    margin-bottom: 34px;
}

.login-form-heading h2 {
    margin: 0 0 10px;
    color: #10243a;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-form-heading p {
    margin: 0;
    color: #617181;
    font-size: 14px;
    line-height: 1.7;
}

/* INPUTS */

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

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: #172d45;
    font-size: 13px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #ccd8e5;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #263442;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input::placeholder {
    color: #8b9aab;
}

.login-field input:focus {
    border-color: #1677c8;
    box-shadow: 0 0 0 4px rgba(22, 119, 200, 0.1);
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 75px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1677c8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.login-password-toggle:hover {
    background: #edf6ff;
}

/* SIGN IN BUTTON */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 57px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #1677c8, #0754b7);
    box-shadow: 0 10px 22px rgba(22, 119, 200, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit span {
    font-size: 21px;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 27px rgba(22, 119, 200, 0.3);
}

/* LOGIN ERRORS */

.login-error {
    margin-bottom: 21px;
    padding: 13px 15px;
    border: 1px solid #f1b9b9;
    border-radius: 9px;
    background: #fff2f2;
    color: #a52222;
    font-size: 13px;
    line-height: 1.6;
}

/* LOGIN SECURITY FOOTER */

.login-protection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 27px;
    text-align: center;
}

.login-protection > span {
    color: #1677c8;
    font-size: 19px;
}

.login-protection p {
    margin: 0;
    color: #617181;
    font-size: 11px;
    line-height: 1.6;
}

.login-form-divider {
    height: 1px;
    margin: 27px 0 19px;
    background: #e5ebf1;
}

.login-powered-right {
    color: #617181;
    font-size: 12px;
    text-align: center;
}

.login-powered-right strong {
    color: #0754b7;
    font-size: 14px;
    font-weight: 800;
}

.login-copyright {
    margin-top: 23px;
    color: #8391a0;
    font-size: 11px;
    text-align: center;
}

/* TABLET */

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .login-school-panel {
        padding-right: 5%;
        padding-left: 5%;
    }

    .login-form-panel {
        padding-right: 5%;
        padding-left: 5%;
    }

    .login-form-card {
        padding: 36px 28px;
    }

    .login-school-logo {
        width: 65px;
        height: 65px;
    }

    .login-feature {
        padding: 10px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .login-layout {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .login-school-panel {
        min-height: 690px;
        padding: 28px 23px 100px;
    }

    .login-school-logo {
        width: 58px;
        height: 58px;
    }

    .login-brand-name {
        font-size: 17px;
    }

    .login-brand-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .login-school-content {
        padding: 55px 0 40px;
    }

    .login-slide-text h1 {
        font-size: 34px;
    }

    .login-intro {
        font-size: 14px;
    }

    .login-feature-grid {
        gap: 9px;
    }

    .login-feature {
        min-height: 66px;
        gap: 9px;
        padding: 9px;
    }

    .login-feature-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .login-feature strong {
        font-size: 12px;
    }

    .login-feature small {
        font-size: 10px;
    }

    .login-carousel-controls {
        right: 23px;
        bottom: 30px;
        gap: 8px;
    }

    .login-carousel-controls > button {
        width: 34px;
        height: 34px;
    }

    .login-carousel-dot {
        width: 6px;
        height: 6px;
    }

    .login-carousel-dot.active {
        width: 17px;
    }

    .login-powered-left {
        bottom: 40px;
        left: 23px;
        font-size: 10px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 42px 20px 28px;
    }

    .login-form-card {
        max-width: 500px;
        padding: 34px 24px;
        border-radius: 17px;
    }

    .login-form-heading h2 {
        font-size: 31px;
    }
}

@media (max-width: 400px) {
    .login-school-panel {
        min-height: 750px;
        padding-right: 17px;
        padding-left: 17px;
    }

    .login-slide-text h1 {
        font-size: 29px;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-feature {
        min-height: 58px;
    }

    .login-powered-left {
        display: none;
    }

    .login-form-card {
        padding: 29px 19px;
    }

    .login-slide-count {
        display: none;
    }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .login-slide,
    .login-feature,
    .login-submit,
    .login-slide-text {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   MSOLP LOGIN PAGE - FINAL BRANDING OVERRIDES
   Official logo, larger school name, tagline and light image overlay
   ========================================================= */

/* Navy mask: transparent at the bottom-left, gradually reaching
   40% opacity toward the centre and remaining at 40% beyond it. */
.login-school-panel .login-panel-overlay {
    /* Navy tint starts at the bottom-left and fades toward the upper area. */
    background: linear-gradient(
        to top right,
        rgba(7, 25, 46, 0.70) 0%,
        rgba(7, 25, 46, 0.50) 28%,
        rgba(7, 25, 46, 0.24) 52%,
        rgba(7, 25, 46, 0) 78%
    ) !important;
}

/* Avoid stacking another tint over the same photograph. */
.login-school-panel .login-carousel::after {
    background: transparent !important;
}

/* Official school logo: transparent background, no box or shadow. */
.login-school-panel .login-school-logo {
    display: block;
    width: 105px;
    height: 105px;
    flex: 0 0 105px;
    object-fit: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* School name and tagline. */
.login-school-panel .login-brand {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-school-panel .login-brand-text {
    flex: 0 1 auto;
    min-width: 0;
}

.login-school-panel .login-brand-name {
    display: block;
    width: max-content;
    max-width: 100%;
    color: #fff;
    font-size: clamp(23px, 2.2vw, 31px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.login-school-panel .login-brand-subtitle {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 7px;
    color: #aeeaf4;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2.5px;
    text-align: left;
    white-space: nowrap;
}

/* Tablet sizing. */
@media (max-width: 1050px) {
    .login-school-panel .login-school-logo {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .login-school-panel .login-brand {
        gap: 16px;
    }

    .login-school-panel .login-brand-name {
        font-size: clamp(21px, 2.5vw, 27px);
    }

    .login-school-panel .login-brand-subtitle {
        font-size: 11px;
        letter-spacing: 1.8px;
    }
}

/* Mobile sizing and prevent branding from overflowing. */
@media (max-width: 760px) {
    .login-school-panel .login-school-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .login-school-panel .login-brand {
        align-items: center;
        gap: 12px;
    }

    .login-school-panel .login-brand-text {
        min-width: 0;
    }

    .login-school-panel .login-brand-name {
        font-size: clamp(15px, 4vw, 19px);
        white-space: normal;
    }

    .login-school-panel .login-brand-subtitle {
        font-size: 9px;
        letter-spacing: 1px;
        white-space: normal;
    }
}


/* Improve school branding contrast over bright carousel photographs. */
.login-school-panel .login-brand-name {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.75),
        0 1px 18px rgba(0, 0, 0, 0.55) !important;
}

.login-school-panel .login-brand-subtitle {
    color: #d9f7ff !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.75) !important;
}
