/* PPDB V21.0.1 — Student / Applicant Portal
 * Mobile-first application-like UI.
 * Scope is intentionally isolated under .student-app.
 */
.student-app {
    --student-navy: #061b39;
    --student-navy-2: #0a315d;
    --student-blue: #087fc2;
    --student-blue-2: #18a4e6;
    --student-yellow: #ffc928;
    --student-text: #10233f;
    --student-muted: #687b92;
    --student-line: #dce8f2;
    --student-surface: #ffffff;
    --student-soft: #f3f8fc;
    position: relative;
    isolation: isolate;
    min-height: calc(100dvh - 76px);
    overflow: hidden;
    padding: 34px 0 54px;
    color: var(--student-text);
    background:
        radial-gradient(circle at 8% 2%, rgba(24, 164, 230, .16), transparent 25rem),
        radial-gradient(circle at 95% 15%, rgba(255, 201, 40, .11), transparent 20rem),
        linear-gradient(180deg, #f5f9fd 0%, #eef6fb 52%, #fff 100%);
}

.student-app * { box-sizing: border-box; }
.student-app svg {
    display: block;
    width: 1.35em;
    height: 1.35em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.student-app-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.student-app-glow-one {
    top: 4rem;
    left: -8rem;
    width: 26rem;
    height: 26rem;
    background: rgba(8, 127, 194, .08);
}
.student-app-glow-two {
    right: -9rem;
    bottom: 8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 201, 40, .08);
}
.student-app-shell {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}
.student-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--student-navy);
}
.student-app-brand > span:last-child {
    display: grid;
    line-height: 1.06;
}
.student-app-brand strong {
    font-size: .83rem;
    font-weight: 950;
    letter-spacing: .09em;
}
.student-app-brand small {
    margin-top: 4px;
    color: var(--student-muted);
    font-size: .66rem;
    font-weight: 750;
}
.student-app-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--student-blue-2), var(--student-navy));
    box-shadow: 0 12px 26px rgba(6, 62, 108, .19);
    font-weight: 950;
}
.student-app-intro {
    max-width: 690px;
    margin: 0 auto 24px;
    text-align: center;
}
.student-app-intro .student-app-brand { margin-bottom: 28px; }
.student-app-badge,
.student-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(8, 127, 194, .15);
    border-radius: 999px;
    padding: 7px 10px;
    color: #166894;
    background: rgba(255, 255, 255, .72);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.student-app-badge > span,
.student-secure-pill > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1aad68;
    box-shadow: 0 0 0 4px rgba(26, 173, 104, .12);
}
.student-app-intro h1 {
    margin: 17px 0 7px;
    color: var(--student-navy);
    font-size: clamp(2.15rem, 5vw, 3.45rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.student-app-intro p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--student-muted);
    font-size: .94rem;
}

.student-login-card {
    width: min(600px, 100%);
    margin-inline: auto;
    border: 1px solid rgba(160, 195, 220, .34);
    border-radius: 29px;
    padding: 27px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 80px rgba(16, 57, 91, .13);
    backdrop-filter: blur(18px);
}
.student-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}
.student-card-icon,
.student-help-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 15px;
    color: var(--student-blue);
    background: #eaf7ff;
}
.student-card-heading > div > span,
.student-section-title > span,
.student-qr-actions > div:first-child > span {
    color: var(--student-blue);
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .1em;
}
.student-card-heading h2 {
    margin: 3px 0 0;
    color: var(--student-navy);
    font-size: 1.45rem;
    letter-spacing: -.035em;
}
.student-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    border: 1px solid;
    border-radius: 16px;
    padding: 13px 14px;
    font-size: .78rem;
    font-weight: 700;
}
.student-alert svg { flex: 0 0 20px; margin-top: 1px; }
.student-alert-danger {
    border-color: #f0c7c2;
    color: #8a332b;
    background: #fff3f2;
}
.student-login-form {
    display: grid;
    gap: 16px;
}
.student-field {
    display: grid;
    gap: 7px;
}
.student-field > span:first-child {
    color: #354a62;
    font-size: .75rem;
    font-weight: 850;
}
.student-input-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    border: 1px solid #cadbe8;
    border-radius: 17px;
    padding: 0 13px;
    color: #6f8499;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.student-input-shell:focus-within {
    border-color: var(--student-blue);
    box-shadow: 0 0 0 4px rgba(8, 127, 194, .09);
}
.student-input-shell > svg {
    width: 21px;
    height: 21px;
}
.student-input-shell input {
    min-width: 0;
    width: 100%;
    height: 54px;
    border: 0;
    outline: 0;
    padding: 0 12px;
    color: var(--student-text);
    background: transparent;
    font-size: .93rem;
    font-weight: 650;
}
.student-input-shell input::placeholder { color: #9aabba; font-weight: 550; }
.student-password-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    padding: 0;
    color: #688097;
    background: #f2f7fb;
}
.student-password-toggle:hover { color: var(--student-blue); }
.student-password-toggle .student-eye-closed { display: none; }
.student-password-toggle.is-visible .student-eye-open { display: none; }
.student-password-toggle.is-visible .student-eye-closed { display: block; }

.student-primary-button,
.student-secondary-button,
.student-primary-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 900;
}
.student-primary-button,
.student-primary-link {
    color: #fff;
    background: linear-gradient(135deg, var(--student-navy), var(--student-blue));
    box-shadow: 0 14px 30px rgba(7, 77, 128, .20);
}
.student-primary-button > svg { width: 18px; }
.student-secondary-button {
    border: 1px solid var(--student-line);
    color: var(--student-navy);
    background: #fff;
}
.student-primary-button:hover,
.student-primary-link:hover { transform: translateY(-1px); }
.student-login-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    border-radius: 18px;
    padding: 14px;
    background: #f4f9fd;
}
.student-login-help .student-help-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
}
.student-login-help strong {
    display: block;
    color: #2d455d;
    font-size: .75rem;
}
.student-login-help p {
    margin: 3px 0 0;
    color: var(--student-muted);
    font-size: .68rem;
}
.student-login-help > a {
    border-radius: 11px;
    padding: 9px 11px;
    color: var(--student-blue);
    background: #fff;
    font-size: .69rem;
    font-weight: 900;
    white-space: nowrap;
}

.student-quick-section {
    margin: 32px auto 0;
}
.student-login-app .student-quick-section { width: min(820px, 100%); }
.student-section-title {
    margin-bottom: 14px;
    text-align: center;
}
.student-section-title h2 {
    margin: 4px 0 0;
    color: var(--student-navy);
    font-size: 1.2rem;
    letter-spacing: -.025em;
}
.student-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.student-quick-card {
    display: grid;
    min-width: 0;
    justify-items: start;
    border: 1px solid rgba(167, 198, 221, .35);
    border-radius: 20px;
    padding: 15px;
    color: var(--student-text);
    background: rgba(255, 255, 255, .83);
    box-shadow: 0 12px 32px rgba(18, 64, 99, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.student-quick-card:hover {
    border-color: rgba(8, 127, 194, .26);
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(18, 64, 99, .1);
}
.student-quick-card > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 13px;
    color: var(--student-blue);
    background: #eaf7ff;
}
.student-quick-card strong {
    margin-top: 11px;
    color: var(--student-navy);
    font-size: .77rem;
}
.student-quick-card small {
    margin-top: 2px;
    color: var(--student-muted);
    font-size: .64rem;
    line-height: 1.35;
}

.student-bottom-nav { display: none; }

/* Dashboard */
.student-dashboard-app {
    padding-top: 0;
    background: #f1f7fb;
}
.student-dashboard-app .student-app-shell {
    width: min(1040px, 100%);
}
.student-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 28px max(24px, calc((100% - 930px) / 2)) 110px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(35, 176, 232, .35), transparent 18rem),
        linear-gradient(135deg, #051a38 0%, #073f70 64%, #0786bc 100%);
}
.student-dashboard-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -170px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018);
}
.student-dashboard-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.student-app-brand-light { color: #fff; }
.student-app-brand-light small { color: rgba(255,255,255,.63); }
.student-app-brand-light .student-app-logo {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: none;
}
.student-secure-pill {
    border-color: rgba(255,255,255,.13);
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
}
.student-dashboard-copy {
    position: relative;
    z-index: 2;
    margin-top: 50px;
}
.student-dashboard-copy > span {
    color: #a9dff4;
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .13em;
}
.student-dashboard-copy h1 {
    margin: 7px 0 4px;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.student-dashboard-copy p {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: .8rem;
}
.student-current-status {
    position: relative;
    z-index: 2;
    display: grid;
    max-width: 560px;
    margin-top: 27px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 21px;
    padding: 16px 18px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(12px);
}
.student-current-status > span {
    color: #a9dff4;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.student-current-status strong {
    margin-top: 3px;
    font-size: 1.12rem;
}
.student-current-status small {
    margin-top: 3px;
    color: rgba(255,255,255,.63);
    font-size: .68rem;
}
.student-dashboard-content {
    position: relative;
    z-index: 3;
    width: min(930px, calc(100% - 30px));
    margin: -70px auto 0;
    padding-bottom: 48px;
}
.student-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.student-summary-grid article {
    display: grid;
    min-width: 0;
    border: 1px solid rgba(167, 198, 221, .34);
    border-radius: 21px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(14, 58, 93, .08);
}
.student-summary-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--student-blue);
    background: #eaf7ff;
}
.student-summary-grid small {
    margin-top: 16px;
    color: var(--student-muted);
    font-size: .62rem;
    font-weight: 750;
}
.student-summary-grid strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--student-navy);
    font-size: .81rem;
    line-height: 1.25;
}
.student-waiting-card,
.student-qr-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    border: 1px solid #f0d59a;
    border-radius: 21px;
    padding: 16px 18px;
    color: #745212;
    background: #fff8e9;
}
.student-waiting-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    color: #9d6b08;
    background: #ffedbd;
}
.student-waiting-card > div {
    display: grid;
}
.student-waiting-card span {
    font-size: .61rem;
    font-weight: 950;
    letter-spacing: .1em;
}
.student-waiting-card strong {
    margin-top: 2px;
    font-size: .83rem;
}
.student-waiting-card p {
    margin: 3px 0 0;
    font-size: .68rem;
}
.student-dashboard-quick {
    margin-top: 28px;
}
.student-dashboard-quick .student-section-title {
    text-align: left;
}
.student-qr-actions {
    justify-content: space-between;
    border-color: rgba(8, 127, 194, .17);
    color: var(--student-text);
    background: #edf8ff;
}
.student-qr-actions strong {
    display: block;
    margin-top: 3px;
    color: var(--student-navy);
    font-size: .91rem;
}
.student-qr-actions p {
    margin: 3px 0 0;
    color: var(--student-muted);
    font-size: .69rem;
}
.student-qr-buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}
.student-qr-buttons a {
    min-height: 44px;
    font-size: .72rem;
}
.student-logout-form {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}
.student-logout-form button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    padding: 0 15px;
    color: #7c3a35;
    background: #fff0ef;
    font-size: .72rem;
    font-weight: 850;
}
.student-logout-form button svg { width: 18px; }

@media (max-width: 760px) {
    body:has(.student-app) {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }
    body:has(.student-app) .site-footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
    .student-app {
        min-height: calc(100dvh - 62px);
        padding: 22px 0 30px;
    }
    .student-app-shell {
        width: min(100% - 22px, 620px);
    }
    .student-app-intro {
        margin-bottom: 18px;
    }
    .student-app-intro .student-app-brand {
        margin-bottom: 20px;
    }
    .student-app-intro h1 {
        margin-top: 13px;
        font-size: 2.22rem;
    }
    .student-app-intro p {
        max-width: 340px;
        font-size: .8rem;
    }
    .student-login-card {
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 22px 60px rgba(16, 57, 91, .12);
    }
    .student-card-heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }
    .student-card-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
    .student-card-heading h2 { font-size: 1.24rem; }
    .student-input-shell {
        min-height: 54px;
        border-radius: 16px;
    }
    .student-primary-button {
        min-height: 52px;
        border-radius: 15px;
    }
    .student-login-help {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .student-login-help > a {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
    .student-quick-section { margin-top: 24px; }
    .student-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .student-quick-card {
        min-height: 124px;
        border-radius: 18px;
    }
    .student-bottom-nav {
        position: fixed;
        right: max(10px, env(safe-area-inset-right));
        bottom: max(9px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        z-index: 11940;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 64px;
        border: 1px solid rgba(139, 181, 210, .26);
        border-radius: 21px;
        padding: 6px;
        background: rgba(255, 255, 255, .93);
        box-shadow: 0 18px 50px rgba(5, 42, 73, .19);
        backdrop-filter: blur(20px) saturate(150%);
    }
    .student-bottom-nav a {
        display: grid;
        min-width: 0;
        place-items: center;
        align-content: center;
        gap: 3px;
        border-radius: 15px;
        color: #6e8194;
        text-decoration: none;
        font-size: .57rem;
        font-weight: 850;
    }
    .student-bottom-nav a svg {
        width: 20px;
        height: 20px;
    }
    .student-bottom-nav a:hover,
    .student-bottom-nav a.is-active {
        color: var(--student-blue);
        background: #eaf7ff;
    }

    .student-dashboard-app {
        padding: 0;
    }
    .student-dashboard-app .student-app-shell {
        width: 100%;
    }
    .student-dashboard-hero {
        padding: 20px 18px 94px;
        border-radius: 0 0 30px 30px;
    }
    .student-dashboard-copy {
        margin-top: 36px;
    }
    .student-dashboard-copy h1 {
        font-size: 2.2rem;
    }
    .student-current-status {
        margin-top: 22px;
        border-radius: 18px;
    }
    .student-dashboard-content {
        width: calc(100% - 22px);
        margin-top: -58px;
        padding-bottom: 30px;
    }
    .student-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .student-summary-grid article {
        min-height: 136px;
        border-radius: 19px;
        padding: 14px;
    }
    .student-summary-grid small {
        margin-top: 12px;
    }
    .student-waiting-card {
        align-items: flex-start;
    }
    .student-dashboard-quick .student-section-title {
        text-align: left;
    }
    .student-qr-actions {
        display: grid;
    }
    .student-qr-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 390px) {
    .student-app-shell {
        width: calc(100% - 16px);
    }
    .student-login-card {
        padding: 17px;
        border-radius: 21px;
    }
    .student-quick-grid {
        gap: 8px;
    }
    .student-quick-card {
        padding: 13px;
    }
    .student-dashboard-content {
        width: calc(100% - 16px);
    }
    .student-dashboard-hero {
        padding-inline: 14px;
    }
    .student-dashboard-topline .student-app-brand small {
        display: none;
    }
}

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

@media (max-width: 760px) {
  .student-app.student-keyboard-open .student-bottom-nav { display: none; }
}
