/* Portal login landings — Khareej logo: off-white plate, navy, accent blue */
:root {
    --s-navy: #0a3a5c;
    --s-teal: #2185d0;
    --s-cyan: #2185d0;
    --s-sky: #7eb8e8;
    --s-ink: #0a3a5c;
    --s-muted: #5b738a;
    --s-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --s-text: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --page-pad: clamp(1rem, 3vw, 1.75rem);
    --section-max: min(1180px, 100%);
    --k-cyan: #5ec8ff;
}

html[dir="rtl"] {
    --s-display: 'Tajawal', 'Noto Sans Arabic', sans-serif;
    --s-text: 'Noto Sans Arabic', 'Tajawal', sans-serif;
}

.student-auth-body {
    margin: 0;
    min-height: 100dvh;
    color: var(--s-ink);
    background: #f7f9fc;
    font-family: var(--s-text);
    -webkit-font-smoothing: antialiased;
}

.student-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #f7f9fc;
}

.student-auth-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
    /* Same campus photo as the main landing, only slightly softer. */
    opacity: 0.86;
}

.student-auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(247, 249, 252, 0.12) 0%,
        rgba(247, 249, 252, 0.22) 32%,
        rgba(247, 249, 252, 0.72) 68%,
        #f7f9fc 100%
    );
}

.student-auth-bg::after {
    content: none;
    display: none;
}

.portal-hud-scan {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0 5px,
            rgba(33, 133, 208, 0.035) 5px 6px
        );
    animation: portalHudScan 8s linear infinite;
    opacity: 0.85;
}

.portal-hud-scene {
    position: absolute;
    inset: -6% -4%;
    width: 108%;
    height: 112%;
    opacity: 0.95;
}

.portal-hud-spin {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform;
}

.portal-hud-spin--slow { animation: portalHudSpin 48s linear infinite; }
.portal-hud-spin--mid { animation: portalHudSpin 26s linear infinite reverse; }
.portal-hud-spin--fast { animation: portalHudSpin 14s linear infinite; }
.portal-hud-spin--orbit { animation: portalHudSpin 36s linear infinite; }
.portal-hud-spin--badge { animation: portalHudSpin 10s linear infinite; }

.portal-hud-float {
    animation: portalHudFloat 7s ease-in-out infinite;
}
.portal-hud-float--2 { animation-duration: 9s; animation-delay: -2.5s; }
.portal-hud-float--3 { animation-duration: 11s; animation-delay: -5s; }

.portal-hud-bar {
    transform-box: fill-box;
    transform-origin: center bottom;
}

.portal-hud-bar--1 { animation: portalHudBar 1.8s ease-in-out infinite; }
.portal-hud-bar--2 { animation: portalHudBar 1.4s ease-in-out infinite 0.15s; }
.portal-hud-bar--3 { animation: portalHudBar 2.1s ease-in-out infinite 0.3s; }
.portal-hud-bar--4 { animation: portalHudBar 1.6s ease-in-out infinite 0.08s; }
.portal-hud-bar--5 { animation: portalHudBar 1.9s ease-in-out infinite 0.4s; }

.portal-hud-arrow {
    animation: portalHudArrow 2.8s ease-in-out infinite;
}

.portal-hud-line {
    fill: none;
    stroke: rgba(33, 133, 208, 0.35);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 10 16;
    animation: portalHudLine 18s linear infinite;
}

.portal-hud-line--2 {
    stroke: rgba(10, 58, 92, 0.28);
    animation-duration: 24s;
    animation-direction: reverse;
}

.portal-hud-line--3 {
    stroke: rgba(126, 184, 232, 0.4);
    animation-duration: 21s;
}

@keyframes portalHudSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes portalHudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes portalHudBar {
    0%, 100% { transform: scaleY(0.45); opacity: 0.4; }
    50% { transform: scaleY(1.25); opacity: 1; }
}

@keyframes portalHudArrow {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-18px); }
}

@keyframes portalHudScan {
    from { background-position: 0 0; }
    to { background-position: 0 140px; }
}

@keyframes portalHudLine {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -260; }
}

@keyframes portalHudGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 46px 46px, 46px 46px; }
}

@keyframes portalHudWash {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-4%, 3%) scale(1.08); opacity: 1; }
}

.student-auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.student-auth-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.4rem clamp(1rem, 3vw, 1.75rem);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(10, 58, 92, 0.08);
    backdrop-filter: blur(16px);
}

.student-auth-nav .brand-logo {
    display: block;
    height: auto;
    max-height: 2.6rem;
    max-width: min(220px, 42vw);
}

.student-auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.student-nav-link,
.student-nav-login {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--s-display);
}

.student-nav-link { color: var(--s-navy); }

.student-nav-login {
    padding: 0.45rem 1rem;
    border-radius: 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, #0a3a5c, #2185d0);
    box-shadow: 0 10px 22px rgba(10, 58, 92, 0.18);
}

.student-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 2.5rem;
    flex: 1;
}

.student-kicker {
    display: inline-flex;
    padding: 0.32rem 0.75rem;
    border-radius: 0.55rem;
    font-family: var(--s-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2185d0;
    background: rgba(33, 133, 208, 0.1);
    border: 1px solid rgba(33, 133, 208, 0.18);
}

.student-hero {
    display: grid;
    gap: 1.75rem;
    padding: 2rem 0 2.5rem;
    align-items: start;
}

.student-hero--photo {
    position: relative;
}

.student-hero--photo .student-hero-copy h1 {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(247, 249, 252, 0.7);
}

.student-hero--photo .student-hero-copy p {
    text-shadow: 0 1px 10px rgba(247, 249, 252, 0.8);
}

.student-hero-copy h1 {
    margin: 0.85rem 0 0.7rem;
    font-family: var(--s-display);
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--s-navy);
}

.student-title-lead,
.student-title-accent { display: block; }

.student-title-accent {
    color: #2185d0;
    font-weight: 600;
}

.student-hero-copy p,
.student-section-head p,
.student-card p,
.uni-value,
.student-register-note,
.student-mini-list,
.student-login-card p,
.student-gap p,
.student-split > div > p,
.student-readiness p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.student-hero-copy p,
.student-section-head p,
.student-card p {
    color: var(--s-muted);
    line-height: 1.65;
}

.student-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.student-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 0.75rem;
    font-family: var(--s-display);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-btn:hover { transform: translateY(-1px); }

.student-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0a3a5c, #2185d0);
    box-shadow: 0 12px 26px rgba(10, 58, 92, 0.2);
}

.student-btn-ghost {
    color: #0a3a5c;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 58, 92, 0.14);
}

.student-hero-cta .student-btn { width: auto; }

.student-login-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(10, 58, 92, 0.1);
    border-radius: 1.1rem;
    padding: 1.45rem 1.3rem 1.45rem;
    box-shadow: 0 20px 44px rgba(10, 58, 92, 0.1);
}

.student-login-card::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: linear-gradient(180deg, #2185d0, #0a3a5c);
}

html[dir="rtl"] .student-login-card::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.student-login-card-head h2 {
    margin: 0.45rem 0 1rem;
    font-family: var(--s-display);
    font-size: 1.05rem;
    color: var(--s-navy);
}

.student-register-note {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--s-muted);
}

.student-section { padding: 2.25rem 0; }
.student-section-alt { border-block: 1px solid rgba(10, 58, 92, 0.08); }

.student-section-head {
    max-width: 40rem;
    margin-bottom: 1.35rem;
}

.student-section-head h2,
.student-split h2,
.student-close h2 {
    margin: 0.6rem 0 0.45rem;
    font-family: var(--s-display);
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    color: var(--s-navy);
    letter-spacing: -0.02em;
}

.student-section-head h2::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.7rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #2185d0, #7eb8e8);
}

.student-grid {
    display: grid;
    gap: 0.9rem;
}

.student-grid-follow { margin-top: 0.9rem; }

.student-card {
    padding: 1.15rem 1.1rem;
    border-radius: 0.95rem;
    background: #ffffff;
    border: 1px solid rgba(10, 58, 92, 0.08);
    box-shadow: 0 12px 28px rgba(10, 58, 92, 0.06);
}

.student-card h3,
.student-gap h3 {
    margin: 0.35rem 0 0.4rem;
    font-family: var(--s-display);
    font-size: 1.02rem;
    color: var(--s-navy);
}

.student-card strong {
    color: #2185d0;
    font-family: var(--s-display);
}

.student-card-compact {
    font-family: var(--s-display);
    font-weight: 700;
    color: var(--s-navy);
    text-align: center;
}

.student-split {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.student-chip-list,
.student-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.student-mini-list {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: var(--s-muted);
}

.student-chip-list li {
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(33, 133, 208, 0.1);
    color: var(--s-navy);
    font-size: 0.8rem;
    font-weight: 600;
}

.student-readiness {
    padding: 1.35rem;
    border-radius: 1.1rem;
    text-align: center;
    background: linear-gradient(145deg, #2185d0 0%, #0a3a5c 100%);
    color: #fff;
    box-shadow: 0 20px 42px rgba(10, 58, 92, 0.22);
}

.student-close {
    margin: 1rem 0 2rem;
    padding: 1.85rem 1.35rem;
    border-radius: 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, #0a3a5c 0%, #2185d0 100%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(10, 58, 92, 0.2);
}

.student-readiness-label {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.student-readiness-ring strong {
    display: block;
    font-family: var(--s-display);
    font-size: 2.4rem;
    line-height: 1;
}

.student-readiness-ring span,
.student-readiness p {
    color: rgba(255, 255, 255, 0.82);
}

.student-readiness p {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.student-gap {
    margin-top: 1.35rem;
    padding: 1.15rem;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 26px rgba(10, 58, 92, 0.06);
}

.student-gap-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.7rem;
    font-family: var(--s-display);
    font-weight: 700;
    color: var(--s-navy);
}

.student-gap-row i { color: #2185d0; font-style: normal; }

html[dir="rtl"] .student-gap-row i { display: inline-block; transform: scaleX(-1); }

.student-close h2,
.student-close p { color: #fff; }
.student-close p { opacity: 0.85; }
.student-close .student-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.student-close .student-hero-cta { justify-content: center; }

.student-back {
    display: inline-block;
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.student-back--form {
    display: block;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(10, 58, 92, 0.1);
    color: #2185d0;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.student-back--form:hover {
    color: var(--s-navy);
}

.uni-value {
    margin: 0.75rem 0 0;
    max-width: 38rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--s-ink);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.uni-lifecycle {
    margin: 0 0 1.15rem;
    padding: 1rem 1.1rem;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 26px rgba(10, 58, 92, 0.06);
}

@media (min-width: 900px) {
    .student-hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
    .student-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .student-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .student-grid-2 { grid-template-columns: 1fr 1fr; }
    .student-grid-5 { grid-template-columns: repeat(5, 1fr); }
    .student-split { grid-template-columns: 1.2fr 0.8fr; }
}

@media (max-width: 899px) {
    .student-nav-link { display: none; }
    .student-hero-cta .student-btn,
    .student-close .student-btn { width: 100%; }
    .student-hero-cta,
    .student-close .student-hero-cta { flex-direction: column; }
    .student-grid-5 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .student-auth-bg::before,
    .student-auth-bg::after,
    .portal-hud-scan,
    .portal-hud-spin,
    .portal-hud-float,
    .portal-hud-bar,
    .portal-hud-arrow,
    .portal-hud-line {
        animation: none !important;
    }

    .portal-hud-scan { display: none; }
}

/* Shared site footer — matches the main landing */
.site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    background: linear-gradient(160deg, #062840 0%, #0a3a5c 45%, #004a80 100%);
    color: #eaf3ff;
    padding: 3.5rem var(--page-pad) 1.5rem;
}

.site-footer-inner {
    width: var(--section-max);
    margin-inline: auto;
}

.site-footer-grid {
    display: grid;
    gap: 2rem 1.5rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 720px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .site-footer-grid {
        grid-template-columns: 0.9fr 0.9fr 0.9fr 1.35fr;
        gap: 2rem;
    }
}

.footer-col h3 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-col a {
    color: rgba(234, 243, 255, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--k-cyan);
}

.footer-col--brand {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.footer-brand {
    display: inline-flex;
    width: fit-content;
}

.footer-logo {
    height: 2.4rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-col--brand p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(234, 243, 255, 0.78);
    max-width: 34ch;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social-btn:hover {
    background: rgba(0, 145, 255, 0.25);
    border-color: rgba(94, 200, 255, 0.55);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    color: rgba(234, 243, 255, 0.62);
}

.site-footer-bottom p {
    margin: 0;
}

@media (max-width: 719px) {
    .site-footer {
        padding: 2.5rem var(--page-pad) calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-col--brand {
        order: -1;
    }

    .footer-brand {
        margin-inline: auto;
    }

    .footer-col--brand p {
        text-align: center;
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }
}
