.student-login-page {
    --edu-blue-800: #103f80;
    --edu-blue-700: #10468e;
    --edu-blue-600: #175bb5;
    --edu-blue-500: #2877c8;
    --edu-blue-400: #3280d4;
    --edu-ink: #183858;
    --edu-text: #35536f;
    --edu-muted: #536b83;
    --edu-canvas: #f2f6fc;
    --edu-border: #dce6f2;
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 13%, #d9eaff 0, transparent 25rem),
        radial-gradient(circle at 8% 92%, #e1efff 0, transparent 22rem),
        var(--edu-canvas);
    color: var(--edu-text);
    font-family: 'Nunito', sans-serif;
}

.student-login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 14px 32px;
    border-bottom: 1px solid var(--edu-border);
    background: #ffffffed;
    box-shadow: 0 4px 18px #1838580a;
    backdrop-filter: blur(12px);
}

.student-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-login-brand-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--edu-blue-800), #236dbb);
    box-shadow: 0 8px 18px #175bb526;
    color: #fff;
    font-size: 20px;
}

.student-login-brand div > span,
.student-login-brand div > strong {
    display: block;
}

.student-login-brand div > span {
    margin-bottom: 2px;
    color: #4e6c88;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.student-login-brand div > strong {
    color: var(--edu-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.student-login-stage {
    display: flex;
    min-height: calc(100vh - 88px);
    align-items: center;
    justify-content: center;
    padding: 38px 30px 48px;
}

.student-login-card {
    display: grid;
    width: min(1180px, 100%);
    min-height: 670px;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border: 1px solid var(--edu-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px #193d6821;
}

.student-login-welcome {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
    background: linear-gradient(145deg, #0d3a76 0%, #1759a7 58%, #2375c8 100%);
    color: #fff;
}

.student-login-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ffffff0a 1px, transparent 1px),
        linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.student-login-decoration {
    position: absolute;
    border: 1px solid #ffffff21;
    border-radius: 50%;
}

.student-login-decoration-one {
    top: -130px;
    right: -160px;
    width: 390px;
    height: 390px;
}

.student-login-decoration-two {
    right: -70px;
    bottom: -155px;
    width: 330px;
    height: 330px;
}

.student-login-welcome-content,
.student-login-institution {
    position: relative;
    z-index: 1;
}

.student-login-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--edu-blue-600);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.student-login-welcome .student-login-eyebrow {
    color: #cfe5ff;
}

.student-login-welcome h2 {
    max-width: 410px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.student-login-welcome p {
    max-width: 420px;
    margin: 0;
    color: #dfedff;
    font-size: .98rem;
    line-height: 1.7;
}

.student-login-features {
    display: grid;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.student-login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eff7ff;
    font-size: .85rem;
    font-weight: 700;
}

.student-login-features i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff1f;
    color: #cce5ff;
    font-size: .62rem;
}

.student-login-institution {
    display: flex;
    justify-content: center;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #ffffff26;
    text-align: center;
}

.student-login-institution img {
    width: 205px;
    max-width: 60%;
    opacity: .86;
}

.student-login-form-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 46px 58px;
    background: #fff;
}

.student-login-form-content {
    width: 100%;
    max-width: 450px;
}

.student-login-form-content h1 {
    margin: 0 0 8px;
    color: var(--edu-ink);
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.student-login-intro {
    margin: 0;
    color: var(--edu-muted);
    font-size: .94rem;
    line-height: 1.6;
}

.student-login-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--edu-blue-500);
    border-radius: 0 10px 10px 0;
    background: #edf5ff;
    color: #355d86;
    font-size: .8rem;
    line-height: 1.5;
}

.student-login-guidance i {
    margin-top: 3px;
    color: var(--edu-blue-600);
}

.student-login-form {
    display: grid;
    gap: 19px;
}

.student-login-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--edu-ink);
    font-size: .82rem;
    font-weight: 800;
}

.student-login-label-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #e7f1fd;
    color: var(--edu-blue-600);
    font-size: .67rem;
}

.student-login-field .form-control {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid #aac7e8;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--edu-ink);
    font-size: .9rem;
    font-weight: 600;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.student-login-field .form-control::placeholder {
    color: #8495a8;
    opacity: 1;
}

.student-login-field .form-control:hover {
    border-color: #83add8;
}

.student-login-field .form-control:focus {
    border-color: var(--edu-blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px #2877c824;
    color: var(--edu-ink);
}

.student-login-field .form-control.is-invalid {
    border-color: #c6463e;
    background-image: none;
    box-shadow: 0 0 0 3px #b4231812;
}

.student-login-field .invalid-feedback {
    align-items: flex-start;
    gap: 7px;
    margin: 7px 0 0;
    color: #a9322a;
    font-size: .76rem;
    line-height: 1.45;
}

.student-login-field .is-invalid ~ .invalid-feedback {
    display: flex;
}

.student-login-field .invalid-feedback i {
    margin-top: 3px;
}

.student-login-submit,
.student-login-professor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 800;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.student-login-submit {
    margin-top: 3px;
    border: 1px solid var(--edu-blue-600);
    background: var(--edu-blue-600);
    box-shadow: 0 7px 18px #175bb526;
    color: #fff;
}

.student-login-submit:hover {
    border-color: var(--edu-blue-700);
    background: var(--edu-blue-700);
    color: #fff;
}

.student-login-submit i {
    transition: transform 180ms ease;
}

.student-login-submit:hover i {
    transform: translateX(3px);
}

.student-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8293a5;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.student-login-divider::before,
.student-login-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #dce6f2;
}

.student-login-professor {
    border: 1px solid #bed3ea;
    background: #f7faff;
    color: var(--edu-blue-700);
}

.student-login-professor:hover {
    border-color: #8fb6dd;
    background: #edf5ff;
    color: var(--edu-blue-800);
}

.student-login-submit:focus-visible,
.student-login-professor:focus-visible {
    outline: 3px solid var(--edu-blue-400);
    outline-offset: 3px;
}

.student-login-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 24px 0 0;
    color: #6c8093;
    font-size: .73rem;
    line-height: 1.5;
}

.student-login-help i {
    margin-top: 3px;
    color: var(--edu-blue-600);
}

@media (max-width: 991.98px) {
    .student-login-card {
        width: min(650px, 100%);
        grid-template-columns: 1fr;
    }

    .student-login-welcome {
        min-height: auto;
        padding: 28px 34px;
    }

    .student-login-welcome-content {
        display: block;
        text-align: center;
    }

    .student-login-welcome-content h2,
    .student-login-welcome-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .student-login-welcome h2 {
        margin-bottom: 4px;
        font-size: 1.6rem;
    }

    .student-login-welcome p {
        font-size: .86rem;
    }

    .student-login-features,
    .student-login-institution {
        display: none;
    }

    .student-login-form-panel {
        padding: 42px 48px 46px;
    }
}

@media (max-width: 575.98px) {
    .student-login-topbar {
        min-height: 76px;
        padding: 11px 14px;
    }

    .student-login-brand-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }

    .student-login-brand div > span {
        display: none;
    }

    .student-login-brand div > strong {
        font-size: .94rem;
    }

    .student-login-stage {
        min-height: calc(100vh - 76px);
        align-items: flex-start;
        padding: 16px 10px 28px;
    }

    .student-login-card {
        min-height: 0;
        border-radius: 18px;
    }

    .student-login-welcome {
        padding: 22px 18px;
    }

    .student-login-welcome .student-login-eyebrow {
        font-size: .57rem;
    }

    .student-login-welcome h2 {
        font-size: 1.25rem;
    }

    .student-login-welcome p {
        display: none;
    }

    .student-login-form-panel {
        padding: 30px 20px 28px;
    }

    .student-login-guidance {
        margin: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-login-field .form-control,
    .student-login-submit,
    .student-login-professor,
    .student-login-submit i {
        transition: none;
    }
}
