:root {
    --fce-navy: #102a43;
    --fce-navy-2: #163d5c;
    --fce-green: #16834b;
    --fce-green-dark: #0d6839;
    --fce-green-soft: #eaf7ef;
    --fce-gold: #d7a528;
    --fce-ink: #1f2937;
    --fce-muted: #627080;
    --fce-line: #dce4ea;
    --fce-surface: #ffffff;
    --fce-bg: #f5f8f7;
    --fce-danger: #b42318;
    --fce-radius: 14px;
    --fce-shadow: 0 8px 28px rgba(16, 42, 67, .08);
    --bs-primary: #16834b;
    --bs-primary-rgb: 22, 131, 75;
}

html { scroll-behavior: smooth; }
body {
    color: var(--fce-ink);
    background: var(--fce-bg);
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--fce-green-dark); }
a:hover { color: var(--fce-green); }

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 10000;
    padding: 10px 16px;
    color: #fff;
    background: var(--fce-navy);
    border-radius: 0 0 8px 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
    outline: 3px solid rgba(215, 165, 40, .65) !important;
    outline-offset: 2px;
}

.card,
.form-card,
.department-card,
.application-form {
    border: 1px solid var(--fce-line) !important;
    border-radius: var(--fce-radius) !important;
    box-shadow: var(--fce-shadow) !important;
}
.card-header {
    border-color: var(--fce-line);
    background: rgba(245, 248, 247, .75);
}
.card-title { color: var(--fce-navy); }

.btn {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 600;
}
.btn-sm { min-height: 34px; }
.btn-primary,
.bg-primary {
    border-color: var(--fce-green) !important;
    background-color: var(--fce-green) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--fce-green-dark) !important;
    background-color: var(--fce-green-dark) !important;
}
.btn-outline-primary { color: var(--fce-green); border-color: var(--fce-green); }
.btn-outline-primary:hover { color: #fff; background: var(--fce-green); }

.form-label { color: #344054; font-weight: 600; }
.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border-color: #cbd5df;
    border-radius: 9px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--fce-green);
    box-shadow: 0 0 0 4px rgba(22, 131, 75, .12);
}
.input-group > .input-group-text:first-child { border-radius: 9px 0 0 9px; }
.input-group > .form-control:last-child { border-radius: 0 9px 9px 0; }
.form-text { color: var(--fce-muted); }
.required::after { content: " *"; color: var(--fce-danger); }

.alert { border: 0; border-radius: 11px; }
.alert-success { color: #0b5d34; background: #e8f7ef; }
.alert-info { color: #164e63; background: #e9f6fa; }
.alert-warning { color: #7a4b00; background: #fff7df; }
.alert-danger { color: #8f1b13; background: #fff0ef; }

.table { --bs-table-bg: transparent; }
.table thead th {
    color: #425466;
    background: #f2f6f5;
    border-bottom-width: 1px;
    font-size: .74rem;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .85rem .75rem; border-color: #e3e9ed; }

.pc-sidebar { border-right: 1px solid var(--fce-line); background: #fff; }
.pc-sidebar .m-header {
    min-height: 76px;
    border-bottom: 1px solid var(--fce-line);
}
.pc-sidebar .pc-link { border-radius: 9px; }
.pc-sidebar .pc-item.active > .pc-link,
.pc-sidebar .pc-link:hover {
    color: var(--fce-green-dark);
    background: var(--fce-green-soft);
}
.pc-sidebar .pc-micon { color: var(--fce-green); }
.pc-header { border-bottom: 1px solid var(--fce-line); box-shadow: 0 2px 10px rgba(16, 42, 67, .04); }
.page-header-title h5 { color: var(--fce-navy); font-size: 1.35rem; font-weight: 700; }
.breadcrumb { color: var(--fce-muted); }

.portal-brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.portal-brand-lockup img { width: 45px; height: 45px; object-fit: contain; }
.portal-brand-copy { min-width: 0; line-height: 1.15; }
.portal-brand-name { display: block; overflow: hidden; color: var(--fce-navy); font-size: .9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.portal-brand-label { color: var(--fce-muted); font-size: .7rem; }

/* Applicant sign-in and account creation */
.auth-page { background: #eef4f1; }
.auth-page .auth-wrapper { min-height: 100vh; padding: 28px; }
.portal-auth-shell {
    display: grid;
    grid-template-columns: minmax(310px, .85fr) minmax(420px, 1.15fr);
    width: min(1080px, 100%);
    min-height: 650px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 42, 67, .16);
}
.portal-auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #102a43 0%, #125b43 75%, #16834b 100%);
}
.portal-auth-aside::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -95px;
    width: 300px;
    height: 300px;
    border: 55px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.portal-auth-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.portal-auth-logo img { width: 66px; height: 66px; padding: 5px; object-fit: contain; border-radius: 14px; background: #fff; }
.portal-auth-logo strong { display: block; max-width: 230px; font-size: 1rem; line-height: 1.35; }
.portal-auth-message { position: relative; z-index: 1; }
.portal-auth-message h1 { max-width: 420px; margin-bottom: 16px; color: #fff; font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1.08; }
.portal-auth-message p { max-width: 430px; color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.75; }
.portal-auth-points { position: relative; z-index: 1; display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.portal-auth-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); }
.portal-auth-points i { color: #f4c95d; font-size: 1.15rem; }
.portal-auth-main { display: flex; flex-direction: column; justify-content: center; padding: 44px clamp(28px, 6vw, 72px); }
.portal-auth-main .auth-content .card { max-width: 520px !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.portal-auth-main .card-body { padding: 0; }
.portal-auth-main .card-footer { margin-top: 20px; padding: 20px 0 0; border-top: 1px solid var(--fce-line); background: transparent; }
.portal-auth-main h4 { color: var(--fce-navy); font-size: 1.5rem; }
.portal-auth-main .portal-auth-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.portal-auth-main .portal-auth-top p { max-width: 420px; }
.portal-site-btn { border-radius: 100rem; padding: .4rem 1rem; white-space: nowrap; }
@media (max-width: 560px) {
    .portal-auth-main .portal-auth-top { flex-direction: column; align-items: flex-start; }
}
.portal-auth-footer { margin-top: 28px; color: var(--fce-muted); font-size: .78rem; }
.portal-auth-footer a { color: var(--fce-green-dark); }

/* Admissions journey */
.application-journey {
    --journey-progress: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--fce-line);
    border-radius: var(--fce-radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 42, 67, .05);
}
.application-journey::before,
.application-journey::after {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(8.333% + 18px);
    right: calc(8.333% + 18px);
    height: 3px;
    border-radius: 3px;
    background: #d9e3e7;
}
.application-journey::after { right: auto; width: var(--journey-progress); max-width: calc(83.333% - 36px); background: var(--fce-green); }
.journey-step { position: relative; z-index: 1; min-width: 0; text-align: center; }
.journey-dot {
    display: grid;
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    place-items: center;
    border: 3px solid #d9e3e7;
    border-radius: 50%;
    color: var(--fce-muted);
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
}
.journey-step.is-complete .journey-dot { border-color: var(--fce-green); color: #fff; background: var(--fce-green); }
.journey-step.is-current .journey-dot { border-color: var(--fce-green); color: var(--fce-green-dark); box-shadow: 0 0 0 5px var(--fce-green-soft); }
.journey-label { display: block; overflow: hidden; color: var(--fce-muted); font-size: .73rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.journey-step.is-current .journey-label,
.journey-step.is-complete .journey-label { color: var(--fce-navy); }
.journey-current-note { grid-column: 1 / -1; margin: 8px 0 0; color: var(--fce-muted); font-size: .78rem; text-align: center; }

.modern-header { background: linear-gradient(110deg, var(--fce-navy), var(--fce-green-dark)) !important; }
.content-wrapper { padding-top: 1rem !important; }
.application-container { max-width: 1040px; margin-inline: auto; }
.application-header { border-bottom: 1px solid var(--fce-line); }
.application-title { color: var(--fce-navy) !important; }
.progress.mb-3 { height: auto; overflow: visible; background: transparent; }

.status-banner { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding: 20px; border: 1px solid var(--fce-line); border-left: 5px solid var(--fce-green); border-radius: 12px; background: #fff; }
.status-banner h2 { margin: 0 0 4px; color: var(--fce-navy); font-size: 1.25rem; }
.status-banner p { margin: 0; color: var(--fce-muted); }

@media (max-width: 900px) {
    .portal-auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .portal-auth-aside { min-height: 270px; padding: 30px; }
    .portal-auth-message h1 { margin-top: 50px; font-size: 2rem; }
    .portal-auth-points { display: none; }
    .portal-auth-main { padding: 34px 28px; }
}

@media (max-width: 767px) {
    .auth-page .auth-wrapper { padding: 0; }
    .portal-auth-shell { border-radius: 0; }
    .portal-auth-aside { min-height: 220px; }
    .portal-auth-message p { display: none; }
    .application-journey { grid-template-columns: repeat(6, 88px); overflow-x: auto; padding-inline: 14px; scroll-snap-type: x proximity; }
    .application-journey::before,
    .application-journey::after { display: none; }
    .journey-step { scroll-snap-align: center; }
    .journey-current-note { display: none; }
    .page-header-title h5 { font-size: 1.1rem; }
    .table-responsive { border: 1px solid var(--fce-line); border-radius: 10px; }
}

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

/* ------------------------------------------------------------------
   Auth forms (student & admin login)
   ------------------------------------------------------------------ */
.auth-page .auth-input-group {
    border: 1px solid var(--fce-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-page .auth-input-group .input-group-text {
    border: 0;
    background: #fff;
    color: var(--fce-muted);
    font-size: 1rem;
}
.auth-page .auth-input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: .72rem .85rem;
    font-size: .95rem;
}
.auth-page .auth-input-group .form-control:focus {
    background: transparent;
}
.auth-page .auth-input-group:focus-within {
    border-color: var(--fce-green);
    box-shadow: 0 0 0 4px rgba(22, 131, 75, .12);
}
.auth-page .auth-input-group:has(.is-invalid) {
    border-color: var(--fce-danger);
}
.auth-page .auth-input-group .password-toggle {
    cursor: pointer;
    border-left: 1px solid var(--fce-line);
}
.auth-page .auth-input-group .password-toggle:hover {
    color: var(--fce-green-dark);
}
.auth-submit {
    border-radius: 12px;
    font-weight: 600;
    padding: .78rem 1rem;
}
.auth-page .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: auto;
}
.auth-page .form-check .form-check-input {
    margin: 0;
    width: 1.05em;
    height: 1.05em;
    border-radius: .3em;
}
.auth-page .auth-content .card h4 {
    margin-bottom: 4px;
}

.portal-mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--fce-green-soft);
    color: var(--fce-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Unified portal refresh
   These role-scoped overrides keep the existing Bootstrap/template
   components accessible while giving every authenticated surface one
   calm, modern visual system.
   ------------------------------------------------------------------ */
:root {
    --portal-ink: #102a43;
    --portal-ink-soft: #486176;
    --portal-green: #0f8a57;
    --portal-green-deep: #087344;
    --portal-mint: #e9f8f1;
    --portal-gold: #f4b942;
    --portal-canvas: #f4f7f8;
    --portal-border: #e1e8ed;
    --portal-card: rgba(255,255,255,.94);
    --portal-radius: 18px;
    --portal-shadow: 0 12px 34px rgba(16, 42, 67, .07);
    --portal-shadow-hover: 0 18px 42px rgba(16, 42, 67, .13);
}

body.portal-student,
body.portal-admin,
body.portal-flow {
    background:
        radial-gradient(circle at 100% 0, rgba(15, 138, 87, .06), transparent 30rem),
        var(--portal-canvas);
}

body.portal-student,
body.portal-admin { letter-spacing: -.01em; }

.portal-student .pc-sidebar,
.portal-admin .pc-sidebar {
    width: 264px;
    border: 0;
    background: #fff;
    box-shadow: 8px 0 30px rgba(16, 42, 67, .035);
}
.portal-student .pc-sidebar .navbar-wrapper,
.portal-admin .pc-sidebar .navbar-wrapper { padding: 14px 12px; }
.portal-student .pc-sidebar .m-header,
.portal-admin .pc-sidebar .m-header {
    min-height: 74px;
    margin: 0 4px 18px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #102a43, #116246);
}
.portal-student .pc-sidebar .m-header .portal-brand-lockup,
.portal-admin .pc-sidebar .m-header .portal-brand-lockup { padding: 0 13px !important; }
.portal-student .pc-sidebar .m-header img,
.portal-admin .pc-sidebar .m-header img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 11px;
    background: #fff;
    object-fit: contain;
}
.portal-student .portal-brand-name,
.portal-admin .portal-brand-name { color: #fff; font-size: .82rem; }
.portal-student .portal-brand-label,
.portal-admin .portal-brand-label { color: rgba(255,255,255,.66); }
.portal-student .pc-sidebar .pc-navbar,
.portal-admin .pc-sidebar .pc-navbar { padding: 0 5px; }
.portal-student .pc-sidebar .pc-item,
.portal-admin .pc-sidebar .pc-item { margin: 3px 0; }
.portal-student .pc-sidebar .pc-link,
.portal-admin .pc-sidebar .pc-link {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 12px;
    color: #64798a;
    font-size: .86rem;
    font-weight: 600;
}
.portal-student .pc-sidebar .pc-link:hover,
.portal-admin .pc-sidebar .pc-link:hover { color: var(--portal-green-deep); background: #f0f8f4; }
.portal-student .pc-sidebar .pc-item.active > .pc-link,
.portal-admin .pc-sidebar .pc-item.active > .pc-link {
    color: #fff;
    background: linear-gradient(100deg, var(--portal-green-deep), var(--portal-green));
    box-shadow: 0 8px 18px rgba(15, 138, 87, .22);
}
.portal-student .pc-sidebar .pc-item.active > .pc-link .pc-micon,
.portal-admin .pc-sidebar .pc-item.active > .pc-link .pc-micon { color: #fff; }
.portal-student .pc-sidebar .pc-micon,
.portal-admin .pc-sidebar .pc-micon { width: 30px; color: var(--portal-green); }
.portal-student .pc-sidebar .pc-submenu,
.portal-admin .pc-sidebar .pc-submenu { padding: 5px 0 5px 18px; }
.portal-student .pc-sidebar .pc-submenu .pc-link,
.portal-admin .pc-sidebar .pc-submenu .pc-link { min-height: 37px; padding: 8px 12px; font-size: .8rem; }
.portal-student .pc-sidebar .pc-submenu .pc-item.active > .pc-link,
.portal-admin .pc-sidebar .pc-submenu .pc-item.active > .pc-link { color: var(--portal-green-deep); background: var(--portal-mint); box-shadow: none; }

.portal-student .pc-header,
.portal-admin .pc-header {
    min-height: 74px;
    border: 0;
    background: rgba(255,255,255,.86);
    box-shadow: 0 1px 0 var(--portal-border), 0 8px 26px rgba(16, 42, 67, .035);
    backdrop-filter: blur(14px);
}
.portal-student .pc-head-link,
.portal-admin .pc-head-link { width: 42px; height: 42px; border-radius: 12px; color: var(--portal-ink-soft); }
.portal-student .pc-head-link:hover,
.portal-admin .pc-head-link:hover { color: var(--portal-green-deep); background: var(--portal-mint); }
.portal-student .pc-header .user-avtar,
.portal-admin .pc-header .user-avtar { border: 3px solid #fff; box-shadow: 0 0 0 1px var(--portal-border), 0 5px 12px rgba(16,42,67,.12); }
.portal-student .pc-container,
.portal-admin .pc-container { margin-left: 264px; }
.portal-student .pc-content,
.portal-admin .pc-content { max-width: 1500px; margin: 0 auto; padding: 28px 30px 44px; }
.portal-student .page-header,
.portal-admin .page-header { margin: 0 0 24px; padding: 2px 0 20px; border-bottom: 1px solid var(--portal-border); }
.portal-student .page-header-title h5,
.portal-admin .page-header-title h5 { margin-bottom: 4px; color: var(--portal-ink); font-size: 1.55rem; letter-spacing: -.03em; }
.portal-student .breadcrumb,
.portal-admin .breadcrumb { margin: 0; font-size: .78rem; }

.portal-student .card,
.portal-admin .card {
    overflow: hidden;
    border: 1px solid var(--portal-border) !important;
    border-radius: var(--portal-radius) !important;
    background: var(--portal-card);
    box-shadow: var(--portal-shadow) !important;
}
.portal-student .card:hover,
.portal-admin .card:hover { box-shadow: var(--portal-shadow-hover) !important; }
.portal-student .card-header,
.portal-admin .card-header { padding: 18px 20px; border-bottom: 1px solid #edf1f3; background: rgba(249,251,252,.82); }
.portal-student .card-body,
.portal-admin .card-body { padding: 20px; }
.portal-student .card-title,
.portal-admin .card-title { color: var(--portal-ink); font-weight: 700; letter-spacing: -.02em; }
.portal-student .table,
.portal-admin .table { margin-bottom: 0; }
.portal-student .table thead th,
.portal-admin .table thead th { padding: 13px 15px; color: #708393; background: #f7fafb; font-size: .68rem; letter-spacing: .08em; }
.portal-student .table tbody td,
.portal-admin .table tbody td { padding: 14px 15px; color: #30485a; vertical-align: middle; }
.portal-student .table tbody tr,
.portal-admin .table tbody tr { transition: background .16s ease; }
.portal-student .table tbody tr:hover,
.portal-admin .table tbody tr:hover { background: #f7fbf9; }
.portal-student .badge,
.portal-admin .badge { border-radius: 100px; padding: .45em .75em; font-weight: 700; }
.portal-student .btn,
.portal-admin .btn { min-height: 42px; padding: .65rem 1rem; border-radius: 11px; }
.portal-student .btn-sm,
.portal-admin .btn-sm { min-height: 34px; padding: .42rem .72rem; border-radius: 9px; }
.portal-student .btn-primary,
.portal-admin .btn-primary { background: linear-gradient(105deg, var(--portal-green-deep), var(--portal-green)) !important; box-shadow: 0 7px 14px rgba(15,138,87,.16); }
.portal-student .btn-primary:hover,
.portal-admin .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,138,87,.22); }
.portal-student .btn-outline-primary,
.portal-admin .btn-outline-primary { color: var(--portal-green-deep); border-color: #a8d8c1; background: #fff; }
.portal-student .btn-outline-primary:hover,
.portal-admin .btn-outline-primary:hover { color: #fff; border-color: var(--portal-green); background: var(--portal-green); }

.portal-student .form-label,
.portal-admin .form-label { margin-bottom: 7px; color: #30485a; font-size: .8rem; font-weight: 700; }
.portal-student .form-control,
.portal-student .form-select,
.portal-admin .form-control,
.portal-admin .form-select { min-height: 46px; border: 1px solid #d7e1e6; border-radius: 11px; color: var(--portal-ink); background-color: #fff; }
.portal-student textarea.form-control,
.portal-admin textarea.form-control { min-height: 104px; }
.portal-student .form-control:focus,
.portal-student .form-select:focus,
.portal-admin .form-control:focus,
.portal-admin .form-select:focus { border-color: var(--portal-green); box-shadow: 0 0 0 4px rgba(15,138,87,.12); }
.portal-student .input-group,
.portal-admin .input-group { border-radius: 11px; }
.portal-student .input-group-text,
.portal-admin .input-group-text { min-height: 46px; border-color: #d7e1e6; background: #f8fbfa; color: #78909e; }
.portal-student .alert,
.portal-admin .alert { padding: 14px 17px; border-radius: 13px; }

.portal-student .student-hero { position: relative; overflow: hidden; border: 0 !important; background: linear-gradient(120deg, #102a43 4%, #116246 100%) !important; box-shadow: 0 18px 40px rgba(16,42,67,.18) !important; }
.portal-student .student-hero::after { content: ''; position: absolute; right: -100px; top: -120px; width: 320px; height: 320px; border: 60px solid rgba(255,255,255,.07); border-radius: 50%; }
.portal-student .identity-item { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.portal-student .next-action { border: 1px solid #bce3cd !important; border-left: 5px solid var(--portal-green) !important; box-shadow: var(--portal-shadow) !important; }

.portal-flow .modern-header { position: sticky !important; top: 0 !important; background: linear-gradient(115deg, #102a43 0%, #0c6543 100%) !important; box-shadow: 0 10px 28px rgba(16,42,67,.16) !important; }
.portal-flow .modern-header::before { opacity: .35; }
.portal-flow .header-wrapper { min-height: 76px; padding: 13px 0; }
.portal-flow .header-logo { width: 48px; height: 48px; padding: 5px; border: 2px solid rgba(255,255,255,.26); border-radius: 13px; background: #fff; }
.portal-flow .institution-name { font-size: 1.02rem; letter-spacing: -.02em; }
.portal-flow .portal-subtitle { color: rgba(255,255,255,.65); font-size: .73rem; letter-spacing: .04em; text-transform: uppercase; }
.portal-flow .page-header { margin-top: 28px; padding-bottom: 2px; }
.portal-flow .page-pretitle { color: var(--portal-green-deep); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-flow .page-title { color: var(--portal-ink); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.04em; }
.portal-flow .content-wrapper { padding-top: 18px !important; }
.portal-flow .application-form,
.portal-flow .form-card,
.portal-flow .department-card { border-color: var(--portal-border) !important; border-radius: var(--portal-radius) !important; background: rgba(255,255,255,.96); box-shadow: var(--portal-shadow) !important; }
.portal-flow .form-card .card-header { padding: 22px 24px; border-bottom: 1px solid #edf1f3; background: linear-gradient(135deg, #fbfefd, #f3faf6); }
.portal-flow .form-card .card-title,
.portal-flow .section-header h3 { color: var(--portal-ink); font-weight: 800; letter-spacing: -.025em; }
.portal-flow .form-actions { padding: 20px 0 0; }
.portal-flow .application-journey { border: 1px solid var(--portal-border); box-shadow: var(--portal-shadow); }
.portal-flow .journey-step.is-complete .journey-dot { box-shadow: 0 5px 12px rgba(15,138,87,.2); }
.portal-flow footer.footer { margin-top: 22px; padding: 24px 0; border-top: 1px solid var(--portal-border); background: transparent; }

.auth-page { background: radial-gradient(circle at 5% 0, rgba(15,138,87,.14), transparent 28rem), #f2f7f5; }
.auth-page .portal-auth-shell { width: min(1160px, 100%); min-height: 690px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: 0 30px 90px rgba(16,42,67,.2); }
.auth-page .portal-auth-aside { padding: clamp(30px, 5vw, 60px); background: linear-gradient(145deg, #0b243b 0%, #0e5940 70%, #10915a 100%); }
.auth-page .portal-auth-aside::before { content: ''; position: absolute; left: -90px; top: 38%; width: 230px; height: 230px; border: 45px solid rgba(255,255,255,.05); border-radius: 50%; }
.auth-page .portal-auth-main { padding: clamp(32px, 6vw, 78px); background: rgba(255,255,255,.98); }
.auth-page .portal-auth-main .card { background: transparent; }
.auth-page .portal-auth-main h4 { font-size: 1.7rem; letter-spacing: -.04em; }
.auth-page .portal-auth-top .badge { padding: .55em .8em; border-radius: 100px; }
.auth-page .auth-submit { min-height: 50px; font-size: .92rem; }

@media (max-width: 1199px) {
    .portal-student .pc-content,
    .portal-admin .pc-content { padding-inline: 22px; }
}
@media (max-width: 991px) {
    .portal-student .pc-sidebar,
    .portal-admin .pc-sidebar { width: 264px; }
    .portal-student .pc-container,
    .portal-admin .pc-container { margin-left: 0; }
    .portal-student .pc-content,
    .portal-admin .pc-content { padding: 22px 16px 36px; }
}
@media (max-width: 575px) {
    .portal-student .pc-content,
    .portal-admin .pc-content { padding-inline: 12px; }
    .portal-student .page-header,
    .portal-admin .page-header { margin-bottom: 16px; padding-bottom: 14px; }
    .portal-student .card-body,
    .portal-admin .card-body { padding: 16px; }
    .portal-flow .header-wrapper { padding-inline: 4px; }
    .portal-flow .institution-name { max-width: 170px; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
    .portal-flow .user-details { display: none; }
    .auth-page .portal-auth-aside { min-height: 250px; padding: 26px; }
    .auth-page .portal-auth-main { padding: 28px 20px 34px; }
}

/* Applicant authentication redesign */
.auth-page-v2 {
    --auth-ink: #142b3d;
    --auth-muted: #718392;
    min-height: 100vh;
    color: var(--auth-ink);
    font-family: 'DM Sans', Poppins, sans-serif;
    background: #edf4f1;
}
.auth-v2 {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 52px);
    background:
        radial-gradient(circle at 8% 14%, rgba(15,138,87,.16), transparent 24rem),
        radial-gradient(circle at 93% 90%, rgba(244,185,66,.11), transparent 22rem);
}
.auth-v2-card {
    width: min(1100px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(20,43,61,.17);
}
.auth-v2-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px clamp(20px, 4vw, 44px);
    border-bottom: 1px solid #edf2f3;
    background: rgba(255,255,255,.92);
}
.auth-v2-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--auth-ink); }
.auth-v2-brand:hover { color: var(--portal-green-deep); }
.auth-v2-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #d9ece2; border-radius: 13px; background: #f4fbf7; }
.auth-v2-brand-mark img { width: 39px; height: 39px; object-fit: contain; }
.auth-v2-brand-copy { display: grid; gap: 2px; }
.auth-v2-brand-copy strong { font-family: Manrope, sans-serif; font-size: 1rem; letter-spacing: -.03em; }
.auth-v2-brand-copy small { color: var(--auth-muted); font-size: .7rem; font-weight: 600; letter-spacing: .03em; }
.auth-v2-site-link { display: inline-flex; align-items: center; gap: 8px; color: var(--portal-green-deep); font-size: .78rem; font-weight: 700; text-decoration: none; }
.auth-v2-site-link:hover { color: var(--portal-ink); }
.auth-v2-grid { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr); }
.auth-v2-intro { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 64px); color: #fff; background: linear-gradient(150deg, #0d2c42 0%, #10533e 66%, #0e9960 100%); }
.auth-v2-intro::before { content: ''; position: absolute; right: -105px; bottom: -135px; width: 320px; height: 320px; border: 58px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-v2-intro::after { content: ''; position: absolute; left: -100px; top: 36%; width: 230px; height: 230px; border: 40px solid rgba(255,255,255,.055); border-radius: 50%; }
.auth-v2-intro > * { position: relative; z-index: 1; }
.auth-v2-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 46px; color: #bdebd3; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-v2-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #f4b942; box-shadow: 0 0 0 5px rgba(244,185,66,.14); }
.auth-v2-intro h1 { max-width: 440px; margin: 0 0 16px; color: #fff; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.065em; }
.auth-v2-intro > p { max-width: 430px; margin: 0; color: rgba(255,255,255,.73); font-size: .95rem; line-height: 1.75; }
.auth-v2-process { display: grid; gap: 16px; margin-top: 42px; }
.auth-v2-process-item { display: flex; align-items: flex-start; gap: 13px; }
.auth-v2-process-item > span { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; color: #f4c95d; font-size: .67rem; font-weight: 800; }
.auth-v2-process-item strong { display: block; color: #fff; font-size: .84rem; }
.auth-v2-process-item small { display: block; margin-top: 3px; color: rgba(255,255,255,.57); font-size: .73rem; }
.auth-v2-trust { display: flex; align-items: flex-start; gap: 9px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); font-size: .72rem; line-height: 1.5; }
.auth-v2-trust i { color: #f4c95d; font-size: 1rem; }
.auth-v2-panel { padding: clamp(32px, 5vw, 62px) clamp(24px, 5vw, 70px) 30px; background: #fff; }
.auth-v2-panel-heading { margin-bottom: 27px; }
.auth-v2-eyebrow { display: block; margin-bottom: 8px; color: var(--portal-green); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-v2-panel-heading h2 { margin: 0 0 7px; color: var(--auth-ink); font-family: Manrope, sans-serif; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.055em; }
.auth-v2-panel-heading p { margin: 0; color: var(--auth-muted); font-size: .9rem; }
.auth-v2-content .card { max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.auth-v2-content .card-body { padding: 0 !important; }
.auth-v2-content .card-footer { margin-top: 22px; padding: 19px 0 0; border-top: 1px solid #e7edef; background: transparent; }
.auth-v2-content .form-group { margin-bottom: 19px !important; }
.auth-v2-content .form-label { color: var(--auth-ink); font-size: .76rem; }
.auth-v2-content .form-text { color: var(--auth-muted); font-size: .72rem; }
.auth-v2-content .form-control { min-height: 49px; border-color: #dce6e9; border-radius: 12px; font-size: .88rem; }
.auth-v2-content .input-group { overflow: hidden; border: 1px solid #dce6e9; border-radius: 12px; background: #fbfdfd; }
.auth-v2-content .input-group:focus-within { border-color: var(--portal-green); box-shadow: 0 0 0 4px rgba(15,138,87,.1); }
.auth-v2-content .input-group .form-control { border: 0; background: transparent; }
.auth-v2-content .input-group-text { min-height: 49px; border: 0; background: transparent; }
.auth-v2-content .auth-submit { width: auto; min-width: 175px; min-height: 49px; padding-inline: 20px; font-family: Manrope, sans-serif; }
.auth-v2-footer { margin-top: 34px; color: var(--auth-muted); font-size: .7rem; }
.auth-v2-footer-links { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.auth-v2-footer a { color: var(--portal-green-deep); font-weight: 700; text-decoration: none; }
.auth-v2-footer p { margin: 8px 0 0; line-height: 1.5; }
.auth-page-v2 .alert { font-size: .8rem; }
@media (max-width: 820px) {
    .auth-v2-grid { grid-template-columns: 1fr; }
    .auth-v2-intro { padding: 32px 28px; }
    .auth-v2-kicker { margin-bottom: 28px; }
    .auth-v2-process { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
    .auth-v2-process-item { display: block; }
    .auth-v2-process-item > span { margin-bottom: 8px; }
    .auth-v2-trust { margin-top: 26px; }
}
@media (max-width: 520px) {
    .auth-v2 { padding: 0; }
    .auth-v2-card { min-height: 100vh; border: 0; border-radius: 0; }
    .auth-v2-header { min-height: 72px; padding: 13px 18px; }
    .auth-v2-site-link span { display: none; }
    .auth-v2-intro { padding: 30px 22px; }
    .auth-v2-intro h1 { font-size: 2rem; }
    .auth-v2-intro > p { font-size: .84rem; }
    .auth-v2-process { display: grid; grid-template-columns: 1fr; gap: 11px; }
    .auth-v2-process-item { display: flex; }
    .auth-v2-process-item > span { margin: 0; }
    .auth-v2-trust { margin-top: 22px; }
    .auth-v2-panel { padding: 32px 22px 26px; }
    .auth-v2-content .auth-submit { width: 100%; }
}
