:root {
    color-scheme: light;
    --login-sky: #16a4d8;
    --login-sky-bright: #54c6ee;
    --login-sky-dark: #087ba9;
    --login-navy: #073a58;
    --login-ink: #17354a;
    --login-muted: #6e8493;
    --login-line: #d9e8ef;
    --login-shadow: 0 28px 80px rgba(24, 76, 105, .13);
}

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

html {
    min-width: 320px;
    min-height: 100%;
    background: #edf8fc;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--login-ink);
    background: #edf8fc;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(440px, .82fr);
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 93% 8%, rgba(64, 187, 230, .16), transparent 24rem),
        linear-gradient(140deg, #f5fbfe 0%, #eaf6fb 100%);
}

/* Campus photo and brand panel */
.campus-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #075277;
}

.campus-panel__photo,
.campus-panel__shade,
.campus-panel__texture {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.campus-panel__photo {
    object-fit: cover;
    object-position: 52% center;
    transform: scale(1.035);
    animation: campus-drift 32s ease-in-out infinite alternate;
}

.campus-panel__shade {
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(4, 49, 78, .82) 0%, rgba(5, 62, 94, .64) 42%, rgba(6, 63, 91, .27) 100%),
        linear-gradient(0deg, rgba(2, 39, 62, .69) 0%, transparent 48%, rgba(1, 36, 61, .25) 100%);
}

.campus-panel__texture {
    z-index: -1;
    opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .72) .8px, transparent .8px);
    background-size: 23px 23px;
    mask-image: linear-gradient(100deg, #000 0%, transparent 60%);
}

.campus-panel::before {
    position: absolute;
    z-index: -1;
    top: -23rem;
    right: -21rem;
    width: 50rem;
    height: 50rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(255, 255, 255, .055),
        0 0 0 82px rgba(255, 255, 255, .04),
        0 0 0 132px rgba(255, 255, 255, .025);
    content: "";
    pointer-events: none;
}

.campus-orbit {
    position: absolute;
    z-index: -1;
    width: 13px;
    height: 13px;
    border: 3px solid rgba(157, 232, 255, .96);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(108, 215, 250, .85);
    animation: orbit-float 8s ease-in-out infinite;
    pointer-events: none;
}

.campus-orbit--one {
    top: 22%;
    right: 18%;
}

.campus-orbit--two {
    right: 32%;
    bottom: 22%;
    width: 8px;
    height: 8px;
    animation-delay: -3s;
}

.campus-panel__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 100vh;
    padding: clamp(32px, 5.3vh, 64px) clamp(32px, 5.4vw, 88px) clamp(28px, 4.6vh, 54px);
}

.college-brand {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
    max-width: 900px;
}

.college-brand__logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(76px, 8.2vw, 112px);
    height: clamp(76px, 8.2vw, 112px);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 28, 52, .24);
    object-fit: contain;
}

.college-brand__copy {
    min-width: 0;
}

.college-brand__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: rgba(225, 247, 255, .86);
    font-size: clamp(10px, .85vw, 13px);
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.college-brand__name {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3.05vw, 47px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
    text-shadow: 0 3px 22px rgba(1, 33, 54, .25);
}

.college-brand__city {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #bcefff;
    font-size: clamp(11px, .96vw, 14px);
    font-weight: 900;
    letter-spacing: .43em;
}

.college-brand__city span {
    display: block;
    width: 22px;
    height: 1px;
    background: rgba(188, 239, 255, .78);
}

.campus-message {
    width: min(720px, 100%);
    margin-block: auto;
    padding-block: clamp(24px, 5vh, 64px);
    animation: message-arrive .85s cubic-bezier(.2, .75, .25, 1) both;
}

.campus-message__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: clamp(16px, 2vh, 25px);
    color: #d3f4ff;
    font-size: clamp(10px, .91vw, 13px);
    font-weight: 850;
    letter-spacing: .19em;
}

.status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #70e6cd;
    box-shadow: 0 0 0 5px rgba(112, 230, 205, .14), 0 0 18px rgba(112, 230, 205, .75);
}

.campus-message h2 {
    max-width: 13ch;
    margin: 0;
    color: #fff;
    font-size: clamp(39px, 5vw, 76px);
    font-weight: 850;
    letter-spacing: -.06em;
    line-height: .99;
    text-wrap: balance;
    text-shadow: 0 5px 32px rgba(0, 29, 48, .28);
}

.campus-message h2 span {
    color: #a8eaff;
}

.campus-message p {
    max-width: 48ch;
    margin: clamp(18px, 2.6vh, 28px) 0 0;
    color: rgba(244, 251, 255, .9);
    font-size: clamp(15px, 1.28vw, 19px);
    font-weight: 450;
    line-height: 1.65;
}

.campus-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: clamp(22px, 3vh, 33px);
}

.campus-pill-row span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(236, 250, 255, .11);
    color: #f4fbff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    backdrop-filter: blur(8px);
}

.campus-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.iqac-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: min(440px, 100%);
    min-height: 86px;
    overflow: hidden;
    padding: 14px 19px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    background: linear-gradient(110deg, rgba(13, 94, 132, .72), rgba(5, 53, 82, .48));
    box-shadow: 0 20px 48px rgba(0, 30, 50, .16);
    backdrop-filter: blur(15px);
    animation: badge-float 6.5s ease-in-out infinite;
}

.iqac-badge__symbol {
    position: relative;
    display: grid;
    width: 49px;
    height: 49px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(114, 220, 250, .12);
}

.iqac-badge__symbol svg {
    width: 23px;
    height: 23px;
    fill: #c3f3ff;
    filter: drop-shadow(0 0 9px rgba(137, 229, 255, .74));
}

.iqac-badge__orbit {
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(177, 237, 255, .82);
    border-right-color: transparent;
    border-radius: 50%;
    animation: orbit-spin 7s linear infinite;
}

.iqac-badge__orbit::before {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9deeff;
    box-shadow: 0 0 10px #9deeff;
    content: "";
}

.iqac-badge__copy {
    display: grid;
    gap: 3px;
}

.iqac-badge__label {
    color: #9ce8ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.iqac-badge__copy strong {
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.iqac-badge__detail {
    color: rgba(238, 250, 255, .8);
    font-size: 11px;
    line-height: 1.4;
}

.iqac-badge__shine {
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -36%;
    width: 24%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(211, 247, 255, .2), transparent);
    animation: badge-shine 8s ease-in-out infinite;
    pointer-events: none;
}

.campus-bottom__meta {
    display: grid;
    gap: 5px;
    padding-bottom: 5px;
    color: rgba(235, 249, 255, .78);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-align: right;
}

/* Sign-in panel */
.login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: clamp(28px, 5vh, 58px) clamp(24px, 5vw, 76px) 26px;
    overflow: hidden;
}

.login-panel__decor {
    position: absolute;
    z-index: 0;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(22, 164, 216, .16);
    border-radius: 50%;
    pointer-events: none;
}

.login-panel__decor::before,
.login-panel__decor::after {
    position: absolute;
    border: 1px solid rgba(22, 164, 216, .1);
    border-radius: 50%;
    content: "";
}

.login-panel__decor::before { inset: 18px; }
.login-panel__decor::after { inset: 39px; }

.login-panel__decor--top {
    top: -128px;
    right: -106px;
}

.login-panel__decor--bottom {
    bottom: -156px;
    left: -126px;
    width: 280px;
    height: 280px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    padding: clamp(28px, 3.2vw, 46px);
    border: 1px solid rgba(213, 231, 240, .9);
    border-radius: 30px;
    background: rgba(255, 255, 255, .91);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(18px);
    animation: card-arrive .7s cubic-bezier(.2, .75, .25, 1) both;
}

.login-card__logo {
    display: none;
    width: 76px;
    height: 76px;
    margin: 0 auto 19px;
    padding: 4px;
    border: 1px solid #e1edf3;
    border-radius: 21px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 8px 22px rgba(24, 76, 105, .09);
}

.login-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--login-sky-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.login-card__eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--login-sky);
    box-shadow: 0 0 0 4px rgba(22, 164, 216, .1);
}

.login-card h2 {
    margin: 14px 0 7px;
    color: #12364e;
    font-size: clamp(30px, 3vw, 39px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.login-card__intro {
    margin: 0 0 30px;
    color: var(--login-muted);
    font-size: 15px;
    line-height: 1.55;
}

.form-message {
    margin: 0 0 19px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message--success {
    border-color: #c4ead8;
    background: #effaf4;
    color: #17623f;
}

.form-message--error {
    border-color: #f3cccc;
    background: #fff3f3;
    color: #992c37;
}

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

.form-field label {
    display: block;
    margin-bottom: 9px;
    color: #29475b;
    font-size: 13px;
    font-weight: 800;
}

.form-field__control {
    position: relative;
}

.form-field__control > svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #7f9aaa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    pointer-events: none;
}

.form-field input {
    display: block;
    width: 100%;
    height: 57px;
    padding: 0 16px 0 48px;
    border: 1px solid #d5e3eb;
    border-radius: 14px;
    outline: none;
    background: #f9fcfe;
    color: var(--login-ink);
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field input::placeholder {
    color: #9aadb8;
}

.form-field input:focus {
    border-color: #4bbbe4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 164, 216, .13);
}

#password {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    min-width: 47px;
    padding: 7px 5px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--login-sky-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.password-toggle:hover {
    background: #eaf8fd;
}

.password-toggle:focus-visible,
.forgot-link:focus-visible,
.login-button:focus-visible {
    outline: 3px solid rgba(22, 164, 216, .45);
    outline-offset: 3px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -3px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #617a89;
    cursor: pointer;
    font-size: 13px;
}

.remember-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--login-sky-dark);
}

.forgot-link {
    color: var(--login-sky-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 59px;
    margin-top: 1px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(105deg, #20b7e7, #0789bd 70%, #0878a7);
    box-shadow: 0 13px 25px rgba(8, 137, 189, .23);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .015em;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 29px rgba(8, 137, 189, .29);
    filter: saturate(1.08);
}

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

.login-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .18s ease;
}

.login-button:hover svg {
    transform: translateX(3px);
}

.login-card__divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 25px 0 12px;
    color: #8ca1ad;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .13em;
    white-space: nowrap;
}

.login-card__divider span:first-child,
.login-card__divider span:last-child {
    height: 1px;
    flex: 1 1 auto;
    background: #e4edf2;
}

.login-card__note {
    margin: 0;
    color: #7b909d;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.login-panel__footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 470px);
    margin-top: auto;
    padding-top: 22px;
    color: #8196a2;
    font-size: 10px;
    line-height: 1.45;
}

.login-panel__secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.login-panel__secure span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28af83;
    box-shadow: 0 0 0 3px rgba(40, 175, 131, .11);
}

@keyframes campus-drift {
    from { transform: scale(1.035) translate3d(-.35%, 0, 0); }
    to { transform: scale(1.09) translate3d(.5%, -0.5%, 0); }
}

@keyframes orbit-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -13px, 0); }
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes badge-shine {
    0%, 68%, 100% { left: -36%; }
    82% { left: 118%; }
}

@keyframes message-arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-arrive {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
    }

    .campus-panel__content {
        padding-inline: clamp(26px, 4vw, 52px);
    }

    .campus-bottom__meta {
        display: none;
    }

    .college-brand__name {
        font-size: clamp(25px, 3.3vw, 37px);
    }
}

@media (max-width: 820px) {
    .login-page {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .campus-panel,
    .campus-panel__content {
        min-height: 570px;
    }

    .campus-panel__content {
        padding: 30px clamp(24px, 6vw, 58px) 27px;
    }

    .college-brand__logo {
        width: 82px;
        height: 82px;
    }

    .college-brand__name {
        font-size: clamp(25px, 5vw, 38px);
    }

    .campus-message {
        padding-block: 25px;
    }

    .campus-message h2 {
        max-width: none;
        font-size: clamp(38px, 6vw, 52px);
    }

    .login-panel {
        min-height: 660px;
        padding: 48px 24px 24px;
    }

    .login-card {
        width: min(100%, 520px);
        padding: clamp(30px, 6vw, 46px);
    }

    .login-panel__footer {
        width: min(100%, 520px);
    }
}

@media (max-width: 520px) {
    .campus-panel,
    .campus-panel__content {
        min-height: 525px;
    }

    .campus-panel__content {
        gap: 18px;
        padding: 22px 22px 20px;
    }

    .college-brand {
        align-items: flex-start;
        gap: 14px;
    }

    .college-brand__logo {
        width: 68px;
        height: 68px;
        padding: 3px;
        border-radius: 19px;
    }

    .college-brand__eyebrow {
        margin: 2px 0 6px;
        font-size: 9px;
        letter-spacing: .16em;
    }

    .college-brand__name {
        font-size: clamp(22px, 6.3vw, 31px);
        line-height: 1.02;
    }

    .college-brand__city {
        gap: 7px;
        margin-top: 8px;
        font-size: 10px;
        letter-spacing: .36em;
    }

    .college-brand__city span {
        width: 13px;
    }

    .campus-message {
        padding-block: 13px;
    }

    .campus-message__eyebrow {
        gap: 9px;
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .campus-message h2 {
        max-width: none;
        font-size: clamp(35px, 9.2vw, 46px);
    }

    .campus-message p {
        max-width: 39ch;
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.5;
    }

    .campus-pill-row {
        gap: 6px;
        margin-top: 16px;
    }

    .campus-pill-row span {
        padding: 7px 9px;
        font-size: 8px;
        letter-spacing: .08em;
    }

    .iqac-badge {
        gap: 11px;
        min-height: 74px;
        padding: 11px 13px;
        border-radius: 18px;
    }

    .iqac-badge__symbol {
        width: 42px;
        height: 42px;
    }

    .iqac-badge__copy strong {
        font-size: 15px;
    }

    .iqac-badge__detail {
        font-size: 10px;
    }

    .login-panel {
        min-height: 630px;
        padding: 38px 17px 22px;
    }

    .login-card {
        padding: 27px 22px;
        border-radius: 24px;
    }

    .login-card__logo {
        display: block;
    }

    .login-card__eyebrow {
        justify-content: center;
        font-size: 9px;
    }

    .login-card h2,
    .login-card__intro {
        text-align: center;
    }

    .login-card h2 {
        margin-top: 11px;
        font-size: 32px;
    }

    .login-card__intro {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .login-card__divider {
        font-size: 7px;
        letter-spacing: .09em;
    }

    .login-panel__footer {
        justify-content: center;
        padding-top: 17px;
        font-size: 9px;
    }

    .login-panel__secure {
        display: none;
    }
}

@media (max-width: 360px) {
    .campus-panel,
    .campus-panel__content {
        min-height: 555px;
    }

    .college-brand__name {
        font-size: 21px;
    }

    .campus-message h2 {
        font-size: 34px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .campus-panel__content {
        padding-block: 27px;
        gap: 18px;
    }

    .campus-message {
        padding-block: 14px;
    }

    .campus-message h2 {
        font-size: clamp(38px, 4.4vw, 61px);
    }

    .campus-message p {
        margin-top: 16px;
    }

    .campus-pill-row {
        margin-top: 16px;
    }

    .login-panel {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .login-card {
        padding-block: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
