/* Purpose: Provides the complete local, responsive, and accessible visual design for every page. */


/* =========================================================
   TOOLTIP STYLES
   ========================================================= */

.site-tooltip {
    position: fixed;
    z-index: 9999;
    padding: 0.5rem 0.75rem;
    background-color: var(--navy-950);
    color: var(--surface);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.site-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   SHARED DESIGN TOKENS
   ========================================================= */

:root {
    --navy-950: #0b153f;
    --navy-900: #111f57;
    --navy-800: #172663;
    --navy-700: #24377e;
    --navy-600: #3651a0;
    --navy-500: #4e6cc1;
    --red-600: #e31d2f;
    --red-700: #bd1424;
    --gold-400: #f4c45a;
    --gold-300: #f8d47c;
    --gold-200: #ffe6a7;
    --ink-900: #162039;
    --ink-700: #46516a;
    --ink-500: #6f7890;
    --line: #dce1eb;
    --surface: #ffffff;
    --canvas: #f2f4f9;
    --success: #17663a;
    --success-bg: #eaf7ef;
    --danger: #a51d2d;
    --danger-bg: #fff0f2;
    --focus: #ffbf47;
    --shadow: 0 24px 60px rgba(11, 21, 63, 0.16);
    /*
     * Local intl-tel-input flag sprites.
     * Keep these paths because the flags are now working.
     */
    --iti-path-flags-1x: url("/Content/Vendor/intl-tel-input/img/flags.webp");
    --iti-path-flags-2x: url("/Content/Vendor/intl-tel-input/img/flags@2x.webp");
}


* {
    box-sizing: border-box;
}


/* =========================================================
   SCREEN READER HELPERS
   ========================================================= */

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}


/* =========================================================
   DOCUMENT
   ========================================================= */

html {
    min-height: 100%;
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-900);
    background: var(--canvas);
}


.site-page,
.site-form {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}


.site-form,
.site-layout {
    min-width: 0;
}


.site-form {
    flex: 1 0 auto;
}


.site-layout {
    flex: 1 0 auto;
}


.standard-layout,
.standard-layout__content {
    width: 100%;
}


button,
input,
select {
    font: inherit;
}


a {
    color: var(--navy-700);
    font-weight: 650;
    text-underline-offset: 0.2em;
}


    a:hover {
        color: var(--red-700);
    }


:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--navy-950);
    border-radius: 0.5rem;
    transform: translateY(-180%);
}


    .skip-link:focus {
        transform: translateY(0);
    }


/* =========================================================
   PUBLIC AUTHENTICATION LAYOUT
   ========================================================= */

.auth-shell {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(21rem, 0.88fr) minmax(31rem, 1.12fr);
    align-items: stretch;
}


/* =========================================================
   STANDARD UEW BRAND PANEL
   Login / Forgot Password / Reset Password etc.
   ========================================================= */

.brand-panel {
    position: sticky;
    top: 0;
    display: flex;
    overflow: hidden;
    min-height: 0;
    padding: clamp(1.5rem, 4vw, 4rem);
    color: #fff;
    background: radial-gradient( circle at 85% 12%, rgba(244, 196, 90, 0.2), transparent 24rem ), linear-gradient( 145deg, var(--navy-950), var(--navy-700) );
    flex-direction: column;
    justify-content: space-between;
}


    .brand-panel::after {
        position: absolute;
        right: -9rem;
        bottom: 10rem;
        width: 22rem;
        height: 22rem;
        content: "";
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 50%;
        box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025), 0 0 0 6rem rgba(255, 255, 255, 0.02);
    }


.brand-header,
.brand-copy,
.campus-figure {
    position: relative;
    z-index: 1;
}


.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.brand-logo {
    width: clamp(4rem, 7vw, 5.5rem);
    height: clamp(4rem, 7vw, 5.5rem);
    border: 4px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}


.brand-eyebrow,
.brand-name,
.brand-kicker,
.campus-figure figcaption,
.eyebrow {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.brand-eyebrow {
    color: var(--gold-400);
    font-size: 0.75rem;
    font-weight: 800;
}


.brand-name {
    max-width: 22rem;
    margin-top: 0.3rem;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 750;
    line-height: 1.35;
}


.brand-copy {
    max-width: 34rem;
    padding: 3rem 0;
}


.brand-kicker {
    color: var(--gold-400);
    font-size: 0.8rem;
    font-weight: 800;
}


.brand-copy h2 {
    max-width: 12ch;
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 0.98;
}


.brand-copy p:last-child {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}


/* =========================================================
   STANDARD CAMPUS IMAGE
   ========================================================= */

.campus-figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}


.campus-image {
    display: block;
    width: 100%;
    height: clamp(7rem, 13vw, 10rem);
    object-fit: cover;
}


.campus-figure figcaption {
    padding: 0.65rem 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 750;
}


/* =========================================================
   STUDENT REGISTRATION PANEL
   Used only when Site.Master adds brand-panel--register.
   ========================================================= */

.brand-panel--register {
    position: relative;
    top: auto;
    min-height: 100%;
    padding: clamp(1.5rem, 3.5vw, 3.25rem);
    gap: clamp(1.35rem, 2vw, 2.1rem);
    justify-content: flex-start;
    isolation: isolate;
    background: radial-gradient( circle at 8% 10%, rgba(244, 196, 90, 0.16), transparent 19rem ), radial-gradient( circle at 92% 68%, rgba(91, 123, 209, 0.28), transparent 24rem ), linear-gradient( 160deg, #071333 0%, var(--navy-950) 27%, var(--navy-900) 60%, var(--navy-800) 100% );
}


    /*
 * Decorative luminous orb.
 */
    .brand-panel--register::before {
        position: absolute;
        z-index: 0;
        top: -8rem;
        right: -7rem;
        width: 24rem;
        height: 24rem;
        content: "";
        border-radius: 50%;
        background: radial-gradient( circle, rgba(244, 196, 90, 0.14), rgba(244, 196, 90, 0.025) 44%, transparent 70% );
        pointer-events: none;
    }


    /*
 * Decorative concentric circles near lower-right area.
 */
    .brand-panel--register::after {
        position: absolute;
        z-index: 0;
        right: -9rem;
        bottom: 6rem;
        width: 27rem;
        height: 27rem;
        content: "";
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 50%;
        box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.025), 0 0 0 7rem rgba(255, 255, 255, 0.02), 0 0 0 10.5rem rgba(255, 255, 255, 0.014);
        pointer-events: none;
    }


    .brand-panel--register > * {
        position: relative;
        z-index: 1;
    }


/* =========================================================
   REGISTER BRAND HEADER
   ========================================================= */

.register-brand-header {
    display: flex;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: center;
}


    .register-brand-header .brand-logo {
        width: clamp(4.3rem, 7vw, 5.6rem);
        height: clamp(4.3rem, 7vw, 5.6rem);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), 0 0 0 5px rgba(255, 255, 255, 0.06);
    }


.register-brand-header__text {
    min-width: 0;
}


/* =========================================================
   REGISTER HERO
   ========================================================= */

.register-brand-hero {
    max-width: 37rem;
    padding: clamp(0.3rem, 1.5vw, 1rem) 0 0;
}


.register-brand-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 0.9rem;
    padding: 0.42rem 0.72rem;
    color: var(--gold-300);
    border: 1px solid rgba(244, 196, 90, 0.28);
    border-radius: 999px;
    background: rgba(244, 196, 90, 0.08);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.register-brand-hero h2 {
    max-width: 13ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp( 2.2rem, 5vw, 4.25rem );
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.035em;
}


.register-brand-hero > p:not(.register-brand-hero__eyebrow) {
    max-width: 34rem;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.65;
}


.register-brand-hero__supporting {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.92rem !important;
}


/* =========================================================
   REGISTER JOURNEY CARD
   ========================================================= */

.register-journey {
    overflow: hidden;
    padding: clamp(1.1rem, 2vw, 1.4rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.15rem;
    background: linear-gradient( 140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055) );
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}


.register-journey__heading {
    display: flex;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    align-items: center;
    gap: 0.8rem;
}


.register-journey__heading-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    color: var(--navy-950);
    border-radius: 0.75rem;
    background: var(--gold-400);
    box-shadow: 0 8px 20px rgba(244, 196, 90, 0.16);
    font-size: 1rem;
    font-weight: 900;
    place-items: center;
    flex: 0 0 2.65rem;
}


.register-journey__eyebrow {
    margin: 0;
    color: var(--gold-300);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.register-journey h3 {
    margin: 0.2rem 0 0;
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 780;
}


.register-journey__steps {
    display: grid;
    margin-top: 1rem;
    gap: 0.68rem;
}


.register-step {
    display: grid;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.78rem;
    background: rgba( 4, 12, 45, 0.24 );
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}


    .register-step:hover {
        border-color: rgba(244, 196, 90, 0.26);
        background: rgba(255, 255, 255, 0.09);
        transform: translateX(2px);
    }


.register-step__number {
    display: grid;
    width: 2rem;
    height: 2rem;
    color: var(--navy-950);
    border-radius: 50%;
    background: var(--gold-400);
    font-size: 0.76rem;
    font-weight: 900;
    place-items: center;
}


.register-step strong,
.register-step span {
    display: block;
}


.register-step strong {
    color: #ffffff;
    font-size: 0.86rem;
}


.register-step div span {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.75rem;
    line-height: 1.4;
}


/* =========================================================
   STUDENT LEARNING BENEFITS
   ========================================================= */

.register-benefits {
    padding: clamp(1.1rem, 2vw, 1.4rem);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 1.15rem;
    background: linear-gradient( 145deg, rgba(15, 34, 90, 0.78), rgba(9, 21, 62, 0.64) );
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.15);
}


.register-benefits__heading {
    margin-bottom: 1rem;
}


.register-benefits__eyebrow {
    margin: 0;
    color: var(--gold-300);
    font-size: 0.66rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.register-benefits h3 {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 780;
}


.register-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}


.register-benefit {
    display: flex;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.07);
    align-items: flex-start;
    gap: 0.72rem;
}


.register-benefit__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--gold-300);
    border: 1px solid rgba(244, 196, 90, 0.24);
    border-radius: 0.7rem;
    background: rgba(244, 196, 90, 0.08);
    place-items: center;
    flex: 0 0 2.35rem;
}


    .register-benefit__icon svg {
        width: 1.2rem;
        height: 1.2rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.register-benefit strong,
.register-benefit span {
    display: block;
}


.register-benefit strong {
    color: #ffffff;
    font-size: 0.82rem;
}


.register-benefit div span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    line-height: 1.45;
}


/* =========================================================
   BEFORE YOU REGISTER
   ========================================================= */

.register-reminder {
    display: grid;
    padding: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--navy-950);
    border: 1px solid rgba(244, 196, 90, 0.5);
    border-radius: 1rem;
    background: linear-gradient( 135deg, rgba(255, 238, 190, 0.98), rgba(244, 196, 90, 0.92) );
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.9rem;
}


.register-reminder__icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    color: #ffffff;
    border-radius: 0.78rem;
    background: var(--navy-900);
    place-items: center;
}


    .register-reminder__icon svg {
        width: 1.4rem;
        height: 1.4rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.register-reminder h3 {
    margin: 0.12rem 0 0.65rem;
    color: var(--navy-950);
    font-size: 1rem;
    font-weight: 820;
}


.register-reminder ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


.register-reminder li {
    position: relative;
    padding: 0.28rem 0 0.28rem 1.35rem;
    color: rgba(11, 21, 63, 0.82);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
}


    .register-reminder li::before {
        position: absolute;
        top: 0.27rem;
        left: 0;
        content: "✓";
        color: var(--success);
        font-weight: 900;
    }


/* =========================================================
   REGISTER CAMPUS CARD
   ========================================================= */

.register-campus-figure {
    margin-top: auto;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba( 255, 255, 255, 0.07 );
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}


.register-campus-image {
    height: clamp(11rem, 19vw, 16rem) !important;
    object-fit: cover !important;
}


.register-campus-caption {
    display: flex;
    padding: 0.8rem 1rem !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-transform: none !important;
}


    .register-campus-caption span,
    .register-campus-caption strong {
        display: block;
    }


    .register-campus-caption span {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.67rem;
    }


    .register-campus-caption strong {
        color: var(--gold-300);
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }


/* =========================================================
   REGISTER PAGE LAYOUT
   ========================================================= */

.register-page .auth-shell {
    align-items: stretch;
}


.register-page .brand-panel--register {
    align-self: stretch;
}


.register-page .form-panel {
    min-height: 100%;
    justify-content: flex-start;
    background: radial-gradient( circle at 85% 12%, rgba(36, 55, 126, 0.06), transparent 24rem ), linear-gradient( 135deg, #f7f9fd, #edf1f8 );
}


.register-page .form-card {
    width: min(100%, 51rem);
    border: 1px solid rgba(203, 211, 228, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 58px rgba(11, 21, 63, 0.12);
}


/*
 * Slightly cleaner Registration title.
 */
.register-page .auth-heading {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}


    .register-page .auth-heading .eyebrow {
        color: var(--navy-700);
    }


    .register-page .auth-heading h1 {
        letter-spacing: -0.025em;
    }


/* =========================================================
   FORM PANEL
   ========================================================= */

.form-panel {
    display: flex;
    min-width: 0;
    padding: clamp( 1.25rem, 5vw, 5rem );
    background: linear-gradient( rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82) ), linear-gradient( 130deg, #f5f7fb, #e9edf6 );
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.form-card {
    width: min(100%, 43rem);
    padding: clamp( 1.5rem, 4vw, 3.25rem );
    border: 1px solid rgba(220, 225, 235, 0.82);
    border-radius: 1.25rem;
    background: rgba( 255, 255, 255, 0.96 );
    box-shadow: var(--shadow);
}


.form-card--wide {
    width: min(100%, 51rem);
}


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.mobile-brand {
    display: none;
    margin-bottom: 2rem;
    color: var(--navy-900);
    font-weight: 800;
    align-items: center;
    gap: 0.75rem;
}


.mobile-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
}


.mobile-brand--single-logo {
    display: flex;
    margin-bottom: 2rem;
    color: var(--navy-900);
    font-weight: 800;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}


    .mobile-brand--single-logo .mobile-logo {
        width: clamp(4.5rem, 12vw, 5.75rem);
        height: clamp(4.5rem, 12vw, 5.75rem);
        border: 3px solid #fff;
        box-shadow: 0 8px 22px rgba(17, 31, 87, 0.18);
    }


/* =========================================================
   AUTH HEADINGS
   ========================================================= */

.auth-heading {
    margin-bottom: 2rem;
}


.eyebrow {
    color: var(--red-600);
    font-size: 0.72rem;
    font-weight: 850;
}


.auth-heading h1 {
    margin: 0.45rem 0 0.65rem;
    color: var(--navy-950);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.1;
}


.auth-heading p:last-child {
    max-width: 40rem;
    margin: 0;
    color: var(--ink-700);
    line-height: 1.6;
}


/* =========================================================
   FIELD GRID
   ========================================================= */

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
}


.field {
    min-width: 0;
}


.field--full {
    grid-column: 1 / -1;
}


.field-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--ink-900);
    font-size: 0.9rem;
    font-weight: 720;
}


.optional {
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 500;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input,
.select {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.72rem 0.9rem;
    color: var(--ink-900);
    border: 1px solid #b8c0d2;
    border-radius: 0.65rem;
    background: var(--surface);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}


    .input:hover,
    .select:hover {
        border-color: #7f89a0;
    }


    .input:focus,
    .select:focus {
        border-color: var(--navy-700);
        outline: 0;
        box-shadow: 0 0 0 4px rgba(36, 55, 126, 0.14);
    }


    /*
 * Read-only calculated Age should still look intentional.
 */
    .input[readonly] {
        color: var(--ink-700);
        background: #f4f6fa;
    }


/* =========================================================
   FILE INPUT
   ========================================================= */

.file-input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 3.15rem;
    padding: 0.65rem 0.75rem;
    color: var(--ink-700);
    border: 1px dashed #9ca6ba;
    border-radius: 0.65rem;
    background: #f8f9fc;
    overflow: hidden;
}


    .file-input::file-selector-button {
        padding: 0.55rem 0.75rem;
        margin-right: 0.75rem;
        color: #fff;
        border: 0;
        border-radius: 0.45rem;
        background: var(--navy-700);
        font-weight: 700;
        cursor: pointer;
    }


    .file-input:hover {
        border-color: var(--navy-700);
    }


/* =========================================================
   PROFILE PICTURE PREVIEW
   ========================================================= */

.profile-upload-error[hidden],
.profile-upload-preview[hidden],
.password-strength[hidden] {
    display: none !important;
}


.profile-upload-preview {
    display: flex;
    margin-top: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #f8f9fc;
    align-items: center;
    gap: 0.85rem;
}


.profile-upload-preview__image {
    width: 11.25rem;
    height: 7.5rem;
    border: 3px solid #fff;
    border-radius: 0.5625rem;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(11, 21, 63, 0.16);
    flex: 0 0 auto;
}


.profile-upload-preview__details {
    min-width: 0;
    margin: 0;
    color: var(--ink-500);
    font-size: 0.8rem;
    line-height: 1.45;
}


    .profile-upload-preview__details span {
        display: block;
    }


        .profile-upload-preview__details span:first-child {
            overflow-wrap: anywhere;
            color: var(--ink-900);
            font-weight: 750;
        }


/* =========================================================
   INTERNATIONAL TELEPHONE INPUT
   KEEP WORKING FLAG PATHS
   ========================================================= */

.iti {
    display: block;
    width: 100%;
    --iti-path-flags-1x: url("/Content/Vendor/intl-tel-input/img/flags.webp");
    --iti-path-flags-2x: url("/Content/Vendor/intl-tel-input/img/flags@2x.webp");
    --iti-border-color: #b8c0d2;
    --iti-country-selector-bg: #fff;
    --iti-hover-color: rgba(36, 55, 126, 0.08);
    --iti-icon-color: var(--navy-700);
}


    .iti .international-phone-input {
        width: 100%;
    }


    .iti:focus-within .international-phone-input {
        border-color: var(--navy-700);
        outline: 0;
        box-shadow: 0 0 0 4px rgba(36, 55, 126, 0.14);
    }


/*
 * Do not set a custom background-image here.
 * The intl-tel-input library controls the sprite position.
 */
.iti__flag {
    display: block;
    visibility: visible;
    opacity: 1;
}


.iti__selected-country {
    background: transparent;
}


.iti__selected-country-primary {
    min-width: 3.7rem;
    border-right: 1px solid #d4d9e4;
    border-radius: 0.65rem 0 0 0.65rem;
}


    .iti__selected-country-primary .iti__flag {
        display: block;
        visibility: visible;
        opacity: 1;
    }


.iti__selected-dial-code {
    color: var(--ink-900);
    font-weight: 680;
}


.iti__country-selector {
    color: var(--ink-900);
    border-color: #aeb7ca;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(11, 21, 63, 0.2);
}


.iti--inline-country-selector .iti__country-selector {
    width: min(24rem, calc(100vw - 2rem));
}


.iti__search-input {
    min-height: 2.85rem;
    color: var(--ink-900);
    border: 0;
    font: inherit;
}


    .iti__search-input:focus {
        outline: 3px solid var(--focus);
        outline-offset: -3px;
    }


.iti__country {
    min-height: 2.65rem;
    font-size: 0.88rem;
}


.iti__country-name {
    margin-right: 0.75rem;
}


.iti__dial-code {
    color: var(--ink-500);
}


.international-phone-input[aria-invalid="true"] {
    border-color: var(--danger);
}


/* =========================================================
   PASSWORD CONTROLS
   ========================================================= */

.password-wrap {
    position: relative;
}


    .password-wrap .input {
        padding-right: 3.75rem;
    }


.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    color: var(--navy-700);
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
}


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


.password-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}


.password-icon--hide,
.password-toggle[aria-pressed="true"] .password-icon--show {
    display: none;
}


.password-toggle[aria-pressed="true"] .password-icon--hide {
    display: block;
}


/* =========================================================
   HELP TEXT / PASSWORD STRENGTH
   ========================================================= */

.field-hint {
    margin: 0.45rem 0 0;
    color: var(--ink-500);
    font-size: 0.78rem;
    line-height: 1.45;
}


.password-strength {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.4;
}


.password-strength--neutral {
    color: var(--ink-500);
}


.password-strength--weak {
    color: var(--danger);
}


.password-strength--strong {
    color: var(--success);
}


/* =========================================================
   VALIDATION
   ========================================================= */

.field-error {
    display: block;
    margin-top: 0.4rem;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 650;
}


.validation-summary,
.status-message,
.development-panel {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
}


.validation-summary,
.status-message--error {
    color: var(--danger);
    border: 1px solid #f2bac3;
    background: var(--danger-bg);
}


    .validation-summary ul {
        margin: 0.4rem 0 0;
        padding-left: 1.2rem;
    }


.status-message--success {
    color: var(--success);
    border: 1px solid #b8dfc7;
    background: var(--success-bg);
}


.development-panel {
    color: #644800;
    border: 1px solid #e7c96f;
    background: #fff9df;
}


    .development-panel strong {
        display: block;
        margin-bottom: 0.25rem;
    }


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;
    margin-top: 1.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.button {
    position: relative;
    display: inline-flex;
    min-height: 3.15rem;
    padding: 0.8rem 1.35rem;
    color: #fff;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient( 135deg, var(--navy-700), var(--navy-950) );
    box-shadow: 0 9px 18px rgba(17, 31, 87, 0.2);
    font-weight: 750;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 140ms ease, box-shadow 140ms ease;
}


    .button:hover {
        color: #fff;
        box-shadow: 0 12px 22px rgba(17, 31, 87, 0.28);
        transform: translateY(-1px);
    }


    .button[aria-busy="true"] {
        padding-left: 3rem;
        cursor: wait;
    }


        .button[aria-busy="true"]::before {
            position: absolute;
            left: 1.15rem;
            width: 1rem;
            height: 1rem;
            content: "";
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 700ms linear infinite;
        }


.button--block {
    width: 100%;
}


/*
 * Student Registration CTA receives slightly stronger emphasis.
 */
.register-page .form-actions .button {
    min-width: 13rem;
    background: linear-gradient( 135deg, var(--navy-700), var(--navy-950) );
    box-shadow: 0 12px 25px rgba(17, 31, 87, 0.23);
}


/* =========================================================
   AUTH LINKS
   ========================================================= */

.auth-links {
    display: flex;
    margin-top: 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    color: var(--ink-700);
    font-size: 0.9rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.auth-links--center {
    justify-content: center;
}


.auth-footer {
    margin: 1.5rem 0 0;
    color: var(--ink-500);
    font-size: 0.76rem;
    text-align: center;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    min-height: 100vh;
    background: linear-gradient( 135deg, #f4f6fb, #e8edf7 );
}


.dashboard-header {
    display: flex;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    color: #fff;
    background: var(--navy-950);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.dashboard-header-actions,
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.dashboard-actions {
    margin-top: 1.5rem;
}


.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}


    .dashboard-brand img {
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 50%;
        object-fit: cover;
    }


    .dashboard-brand strong,
    .dashboard-brand span {
        display: block;
    }


    .dashboard-brand span {
        margin-top: 0.15rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.78rem;
    }


.logout-link {
    padding: 0.6rem 0.85rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    text-decoration: none;
}


    .logout-link:hover {
        color: var(--navy-950);
        background: #fff;
    }


.dashboard-main {
    width: min(68rem, calc(100% - 2rem));
    margin: clamp(2rem, 7vw, 6rem) auto;
}


.dashboard-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: var(--shadow);
}


.role-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    color: var(--navy-800);
    border-radius: 999px;
    background: #e8ecfa;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.dashboard-card h1 {
    margin: 1rem 0 0.7rem;
    color: var(--navy-950);
    font-size: clamp(1.8rem, 5vw, 3rem);
}


.dashboard-card p {
    max-width: 48rem;
    color: var(--ink-700);
    line-height: 1.65;
}


.redirect-status {
    width: min(32rem, calc(100% - 2rem));
    margin: clamp(2rem, 8vh, 5rem) auto;
    padding: 1.5rem;
    color: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}


/* =========================================================
   FOOTER
   ========================================================= */

.department-footer {
    flex: 0 0 auto;
    padding: 0.85rem 1rem 1rem;
    color: #fff;
    border-top: 1px solid var(--navy-700);
    background: var(--navy-950);
    text-align: center;
}


.department-footer__inner {
    width: min(48rem, 100%);
    margin: 0 auto;
}


.department-footer__logo {
    display: block;
    width: auto;
    max-width: 70px;
    height: auto;
    max-height: 70px;
    margin: 0 auto 0.45rem;
}


.department-footer__name,
.department-footer__university {
    margin: 0;
}


.department-footer__name {
    font-size: clamp(0.88rem, 2vw, 1rem);
    font-weight: 750;
    line-height: 1.35;
}


.department-footer__university {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.35;
}


/* =========================================================
   SESSION TIMEOUT
   ========================================================= */

.session-timeout-warning[hidden] {
    display: none !important;
}


.session-timeout-warning {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    padding: 1rem;
    background: rgba(11, 21, 63, 0.72);
    place-items: center;
}


.session-timeout-warning__card {
    width: min(28rem, 100%);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}


.session-timeout-warning__text {
    margin: 0 0 1rem;
    color: var(--navy-950);
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.5;
}


/* =========================================================
   ACCOUNT METADATA
   ========================================================= */

.account-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
}


    .account-metadata > div {
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 0.75rem;
        background: #f8f9fd;
    }


    .account-metadata dt {
        color: var(--ink-700);
        font-size: 0.8rem;
        font-weight: 700;
    }


    .account-metadata dd {
        margin: 0.35rem 0 0;
        color: var(--navy-950);
        font-weight: 700;
    }


/* =========================================================
   SPLASH PAGE
   ========================================================= */

.splash-page {
    background: radial-gradient( circle at top, rgba(244, 196, 90, 0.2), transparent 34rem ), linear-gradient( 145deg, var(--navy-950), var(--navy-700) );
}


.splash-screen {
    display: grid;
    min-height: min(72vh, 46rem);
    padding: clamp(1.25rem, 5vw, 4rem);
    place-items: center;
}


.splash-card {
    width: min(34rem, 100%);
    padding: clamp(1.6rem, 5vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    text-align: center;
}


.splash-card__uew-logo {
    display: block;
    width: clamp(6.25rem, 24vw, 8.5rem);
    height: auto;
    margin: 0 auto 1rem;
}


.splash-card__institution {
    margin: 0;
    color: var(--navy-700);
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.splash-card h1 {
    margin: 0.55rem 0 0;
    color: var(--navy-950);
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.05;
}


.splash-card__message {
    margin: 1.1rem 0 0;
    color: var(--ink-700);
    font-size: 1.05rem;
}


.splash-loader {
    display: flex;
    min-height: 1.1rem;
    margin: 1.25rem 0;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}


    .splash-loader span {
        width: 0.72rem;
        height: 0.72rem;
        border-radius: 50%;
        background: var(--red-600);
        animation: splash-pulse 1.15s ease-in-out infinite;
    }


        .splash-loader span:nth-child(2) {
            animation-delay: 0.16s;
        }


        .splash-loader span:nth-child(3) {
            animation-delay: 0.32s;
        }


@keyframes splash-pulse {
    0%, 80%, 100% {
        opacity: 0.32;
        transform: scale(0.76);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}


.splash-card__hint {
    margin: 0 0 1.1rem;
    color: var(--ink-500);
    font-size: 0.83rem;
}


.splash-card__continue {
    display: inline-flex;
    text-decoration: none;
}


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


/* =========================================================
   RESPONSIVE PUBLIC AUTH PAGES
   ========================================================= */

@media (max-width: 1100px) {

    .register-benefits__grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 960px) {

    .auth-shell {
        grid-template-columns: minmax(18rem, 0.78fr) minmax(27rem, 1.22fr);
    }


    .brand-copy h2 {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }


    .register-brand-hero h2 {
        font-size: clamp(2rem, 5vw, 3.15rem);
    }


    .brand-panel--register {
        padding: 1.6rem;
    }
}


@media (max-width: 760px) {

    .auth-shell {
        display: flex;
        flex-direction: column;
    }


    .auth-page:not(.register-page) .brand-panel {
        display: none;
    }


    /*
     * Student Registration keeps a compact version
     * of the design on phones/tablets.
     */
    .register-page .brand-panel--register {
        display: flex;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 1.5rem 1rem;
        align-self: stretch;
    }


    .register-brand-hero {
        max-width: none;
    }


        .register-brand-hero h2 {
            max-width: 15ch;
        }


    .register-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .register-campus-figure {
        margin-top: 0;
    }


    .register-campus-image {
        height: clamp(10rem, 38vw, 15rem) !important;
    }


    .form-panel {
        min-height: 0;
        padding: 1rem;
        flex: 1 0 auto;
    }


    .form-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }


    .mobile-brand {
        display: flex;
    }


    .register-page .mobile-brand {
        display: none;
    }
}


@media (max-width: 600px) {

    .register-benefits__grid {
        grid-template-columns: 1fr;
    }


    .register-reminder {
        grid-template-columns: 1fr;
    }


    .register-reminder__icon {
        width: 2.6rem;
        height: 2.6rem;
    }


    .register-campus-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}


@media (max-width: 540px) {

    .field-grid {
        grid-template-columns: 1fr;
    }


    .field--full {
        grid-column: auto;
    }


    .profile-upload-preview {
        align-items: stretch;
        flex-direction: column;
    }


    .profile-upload-preview__image {
        width: min(100%, 11.25rem);
        height: auto;
        aspect-ratio: 3 / 2;
    }


    .form-actions,
    .auth-links,
    .dashboard-header,
    .dashboard-header-actions {
        align-items: stretch;
        flex-direction: column;
    }


        .form-actions .button {
            width: 100%;
        }


    .register-page .form-actions .button {
        width: 100%;
        min-width: 0;
    }


    .auth-links {
        text-align: center;
    }


    .dashboard-header {
        align-items: flex-start;
    }


    .department-footer {
        padding: 0.75rem 0.8rem 0.85rem;
    }


    .department-footer__logo {
        max-width: 66px;
        max-height: 66px;
    }


    .account-metadata {
        grid-template-columns: 1fr;
    }


    .register-brand-header {
        align-items: flex-start;
    }


        .register-brand-header .brand-logo {
            width: 4rem;
            height: 4rem;
        }


    .register-brand-hero h2 {
        font-size: 2.25rem;
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }


    .register-step {
        transition: none !important;
    }
}


/* =========================================================
   AUTHENTICATED PORTAL
   ========================================================= */

.authenticated-portal .standard-layout {
    display: flex;
    min-height: 0;
    flex: 1 0 auto;
    flex-direction: column;
}


.authenticated-shell {
    min-width: 0;
    color: var(--ink-900);
    background: #f5f3ee;
    flex: 1 0 auto;
}


/* =========================================================
   PORTAL TOP BAR
   ========================================================= */

.portal-topbar {
    position: sticky;
    z-index: 70;
    top: 0;
    display: grid;
    min-height: 4.5rem;
    padding: 0.65rem clamp(0.75rem, 2vw, 1.5rem);
    color: #fff;
    background: var(--navy-950);
    box-shadow: 0 6px 22px rgba(11, 21, 63, 0.2);
    grid-template-columns: 2.75rem minmax(13rem, auto) minmax(8rem, 1fr) minmax(12rem, auto);
    align-items: center;
    gap: 0.75rem 1rem;
}


.portal-menu-button {
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0.65rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    align-content: center;
    gap: 0.25rem;
}


    .portal-menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }


    .portal-menu-button:hover {
        background: rgba(255, 255, 255, 0.16);
    }


.portal-topbar__brand {
    display: flex;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    align-items: center;
    gap: 0.7rem;
}


    .portal-topbar__brand:hover {
        color: #fff;
    }


    .portal-topbar__brand img {
        width: 2.8rem;
        height: 2.8rem;
        border: 2px solid rgba(255, 255, 255, 0.88);
        border-radius: 50%;
        object-fit: cover;
        flex: 0 0 2.8rem;
    }


    .portal-topbar__brand span,
    .portal-topbar__brand strong,
    .portal-topbar__brand small,
    .portal-topbar__page span,
    .portal-topbar__page strong,
    .portal-user-menu__text strong,
    .portal-user-menu__text small {
        display: block;
    }


    .portal-topbar__brand strong {
        line-height: 1.15;
    }


    .portal-topbar__brand small,
    .portal-topbar__page span,
    .portal-user-menu__text small {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.72rem;
        font-weight: 600;
    }


.portal-topbar__page {
    min-width: 0;
    padding-left: clamp(0rem, 2vw, 1.25rem);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}


    .portal-topbar__page strong {
        overflow: hidden;
        margin-top: 0.12rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   WELCOME AUDIO
   ========================================================= */

.portal-welcome-audio {
    display: flex;
    min-width: 0;
    justify-self: end;
    align-items: center;
    gap: 0.45rem;
}


.portal-welcome-audio__play {
    color: var(--navy-950);
    border-color: var(--gold-400);
    background: var(--gold-400);
}


    .portal-welcome-audio__play:hover:not(:disabled) {
        color: var(--navy-950);
        background: #ffe1a1;
    }


/* =========================================================
   USER MENU
   ========================================================= */

.portal-user-menu {
    position: relative;
    min-width: 0;
}


.master-profile-avatar {
    width: 3rem;
    height: 3rem;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(11, 21, 63, 0.16);
    flex: 0 0 3rem;
}


.portal-user-menu__trigger {
    display: flex;
    max-width: min(19rem, 32vw);
    min-height: 3.2rem;
    padding: 0.22rem 0.45rem 0.22rem 0.25rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    align-items: center;
    gap: 0.55rem;
}


    .portal-user-menu__trigger:hover,
    .portal-user-menu--open .portal-user-menu__trigger {
        background: rgba(255, 255, 255, 0.16);
    }


.portal-user-menu__text {
    overflow: hidden;
    min-width: 0;
    text-align: left;
}


    .portal-user-menu__text strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


.portal-user-menu__chevron {
    margin-left: 0.15rem;
    color: rgba(255, 255, 255, 0.75);
}


.portal-user-menu__dropdown[hidden] {
    display: none !important;
}


.portal-user-menu__dropdown {
    position: absolute;
    z-index: 90;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    overflow: hidden;
    width: min(15rem, calc(100vw - 1.5rem));
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(11, 21, 63, 0.24);
}


    .portal-user-menu__dropdown a {
        padding: 0.75rem 0.9rem;
        color: var(--navy-900);
        text-decoration: none;
    }


        .portal-user-menu__dropdown a + a {
            border-top: 1px solid var(--line);
        }


        .portal-user-menu__dropdown a:hover {
            color: var(--navy-950);
            background: #f2efe8;
        }


.portal-user-menu__audio {
    display: flex;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid var(--line);
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}


.welcome-audio-button {
    min-height: 2.1rem;
    padding: 0.35rem 0.62rem;
    color: var(--navy-800);
    border: 1px solid var(--navy-700);
    border-radius: 0.55rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}


    .welcome-audio-button:hover:not(:disabled) {
        color: #fff;
        background: var(--navy-700);
    }


    .welcome-audio-button:disabled {
        cursor: not-allowed;
        opacity: 0.48;
    }


.portal-user-menu__audio-status {
    flex: 1 1 100%;
    margin: 0.1rem 0 0;
    color: var(--ink-700);
    font-size: 0.75rem;
    line-height: 1.35;
}


/* =========================================================
   PORTAL WORKSPACE
   ========================================================= */

.portal-workspace {
    display: grid;
    min-height: calc(100vh - 4.5rem);
    grid-template-columns: 17rem minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
}


.portal-sidebar {
    position: sticky;
    top: 4.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    width: 17rem;
    height: calc(100vh - 4.5rem);
    padding: 1rem 0.8rem 1.5rem;
    color: #fff;
    background: linear-gradient( 180deg, var(--navy-900), var(--navy-950) );
    transition: opacity 160ms ease, visibility 160ms ease;
}


.portal-sidebar__branding {
    display: grid;
    padding: 0.55rem 0.45rem 1rem;
    grid-template-columns: 3.1rem 1px 3.1rem;
    align-items: center;
    gap: 0.65rem;
}


.portal-sidebar__uew,
.portal-sidebar__ict {
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0.12rem;
    border-radius: 0.55rem;
    background: #fff;
    object-fit: contain;
}


.portal-sidebar__uew {
    border-radius: 50%;
}


.portal-sidebar__divider {
    width: 1px;
    height: 2.6rem;
    background: rgba(255, 255, 255, 0.25);
}


.portal-sidebar__label {
    margin: 0.3rem 0.55rem 0.65rem;
    color: var(--gold-400);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.portal-sidebar__navigation {
    display: grid;
    gap: 0.25rem;
}


/* Student menu destinations are compact cards in the LEFT sidebar. */
.portal-sidebar__navigation .portal-sidebar__student-card {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    min-height: 3.45rem;
    padding: 0.58rem 0.62rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 0.78rem;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.94);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.portal-sidebar__navigation .portal-sidebar__student-card:hover,
.portal-sidebar__navigation .portal-sidebar__student-card:focus {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.25);
    color: #fff;
    transform: translateX(2px);
    outline: none;
}
.portal-sidebar__card-icon {
    display: grid;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .65rem;
    background: rgba(255,255,255,.12);
    font-size: 1.15rem;
}
.portal-sidebar__card-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .12rem; }
.portal-sidebar__card-copy strong { color: inherit; font-size: .88rem; font-weight: 800; line-height: 1.2; }
.portal-sidebar__card-copy small { color: rgba(226,232,240,.72); font-size: .69rem; line-height: 1.25; }
.portal-sidebar__navigation .portal-sidebar__student-card.portal-sidebar__link--active {
    color: #101b45;
    background: #fbbf24;
    border-color: #fde68a;
    box-shadow: inset 4px 0 0 #fff;
}
.portal-sidebar__student-card.portal-sidebar__link--active .portal-sidebar__card-copy small { color: rgba(16,27,69,.78); }
.portal-sidebar__student-card.portal-sidebar__lab-link { border-color: rgba(251,191,36,.55); background: rgba(251,191,36,.14); }
.portal-sidebar__student-card.portal-sidebar__lab-link .portal-sidebar__card-icon { background: rgba(251,191,36,.22); }
.portal-sidebar__notification-slot { margin-left: auto; }


.portal-sidebar__link {
    display: block;
    padding: 0.72rem 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.62rem;
    text-decoration: none;
}


    .portal-sidebar__link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }


.portal-sidebar__link--active {
    color: var(--navy-950);
    background: var(--gold-400);
    box-shadow: inset 4px 0 0 #fff;
}


    .portal-sidebar__link--active:hover {
        color: var(--navy-950);
        background: var(--gold-400);
    }


.authenticated-shell--sidebar-collapsed .portal-workspace {
    grid-template-columns: 0 minmax(0, 1fr);
}


.authenticated-shell--sidebar-collapsed .portal-sidebar {
    visibility: hidden;
    width: 0;
    padding-right: 0;
    padding-left: 0;
    opacity: 0;
}


.portal-sidebar-backdrop[hidden] {
    display: none !important;
}


/* =========================================================
   PORTAL CONTENT
   ========================================================= */

.portal-content {
    min-width: 0;
    padding: 1rem clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}


.portal-breadcrumb {
    display: flex;
    margin: 0 auto 0.85rem;
    max-width: 76rem;
    color: var(--ink-500);
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.8rem;
}


    .portal-breadcrumb a {
        text-decoration: none;
    }


.authenticated-portal .portal-content > .dashboard-header {
    display: none;
}


.authenticated-portal .dashboard-main,
.portal-page {
    width: min(76rem, 100%);
    margin: 0 auto;
}


.authenticated-portal .dashboard-main {
    display: grid;
    gap: 1rem;
}


.portal-page {
    display: grid;
    gap: 1rem;
}


.portal-card {
    overflow: hidden;
    padding: clamp(1.1rem, 2.5vw, 1.8rem);
    border: 1px solid #ded9ce;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11, 21, 63, 0.09);
}


.portal-card--message {
    max-width: 48rem;
    margin: clamp(2rem, 8vh, 6rem) auto;
}


.portal-heading h1 {
    margin: 0.3rem 0 0.45rem;
    color: var(--navy-950);
    font-size: clamp(1.55rem, 4vw, 2.35rem);
}


.portal-heading p:last-child {
    max-width: 54rem;
    margin: 0;
    color: var(--ink-700);
    line-height: 1.6;
}


.portal-status {
    margin: 0.9rem 0;
    color: var(--ink-700);
    font-size: 0.85rem;
}


.portal-status--error {
    padding: 0.7rem 0.8rem;
    color: var(--danger);
    border-radius: 0.55rem;
    background: var(--danger-bg);
}


.portal-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}


.portal-grid {
    width: 100%;
    min-width: 42rem;
    border-spacing: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.84rem;
}


.portal-grid--profile {
    min-width: 0;
    table-layout: fixed;
}


    .portal-grid--profile th,
    .portal-grid--profile td {
        overflow-wrap: anywhere;
        white-space: normal;
    }


.portal-grid th,
.portal-grid td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}


.portal-grid th {
    color: #fff;
    background: var(--navy-800);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}


.portal-grid tr:last-child td {
    border-bottom: 0;
}


.portal-grid tr:nth-child(even) td {
    background: #faf9f6;
}


.password-change-card {
    max-width: 52rem;
}


/* =========================================================
   RESPONSIVE AUTHENTICATED PORTAL
   ========================================================= */

@media (max-width: 900px) {

    .portal-topbar {
        grid-template-columns: 2.75rem minmax(9rem, 1fr) auto;
    }


    .portal-topbar__page {
        display: none;
    }


    .portal-workspace,
    .authenticated-shell--sidebar-collapsed .portal-workspace {
        display: block;
    }


    .portal-sidebar,
    .authenticated-shell--sidebar-collapsed .portal-sidebar {
        position: fixed;
        z-index: 85;
        top: 4.5rem;
        bottom: 0;
        left: 0;
        visibility: visible;
        width: min(18rem, 86vw);
        height: auto;
        padding: 1rem 0.8rem 1.5rem;
        opacity: 1;
        transform: translateX(-105%);
        transition: transform 200ms ease;
    }


    .authenticated-shell--sidebar-open .portal-sidebar {
        transform: translateX(0);
    }


    .portal-sidebar-backdrop {
        position: fixed;
        z-index: 80;
        inset: 4.5rem 0 0;
        border: 0;
        background: rgba(11, 21, 63, 0.55);
        cursor: pointer;
    }


    .portal-content {
        padding: 1rem clamp(0.8rem, 3vw, 1.5rem) 2.5rem;
    }
}


@media (max-width: 580px) {

    .portal-topbar {
        min-height: 4.25rem;
        padding: 0.55rem 0.65rem;
        grid-template-columns: 2.65rem minmax(0, 1fr) auto;
        gap: 0.55rem;
    }


    .portal-topbar__brand img {
        width: 2.55rem;
        height: 2.55rem;
        flex-basis: 2.55rem;
    }


    .portal-topbar__brand small,
    .portal-user-menu__text,
    .portal-user-menu__chevron {
        display: none;
    }


    .portal-user-menu__trigger {
        min-height: 3rem;
        padding: 0.14rem;
        border-radius: 50%;
    }


    .master-profile-avatar {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }


    .portal-user-menu__dropdown {
        position: fixed;
        top: 4.6rem;
        right: 0.65rem;
    }


    .portal-welcome-audio {
        gap: 0.25rem;
    }


    .portal-welcome-audio__play {
        max-width: min(10rem, 42vw);
        white-space: normal;
    }


    .portal-card,
    .dashboard-card {
        padding: 1rem;
        border-radius: 0.8rem;
    }
}


@media (prefers-reduced-motion: reduce) {

    .portal-workspace,
    .portal-sidebar {
        transition: none !important;
    }
}


/* =========================================================
   POST LOGIN LOADER
   UEW BLUE DESIGN
   ========================================================= */

.post-login-loader[hidden] {
    display: none !important;
}


.post-login-loader {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    overflow-y: auto;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 2rem);
    background: radial-gradient( circle at 18% 18%, rgba(244, 196, 90, 0.14), transparent 31rem ), linear-gradient( 135deg, rgba(11, 21, 63, 0.98), rgba(23, 38, 99, 0.97) );
    place-items: center;
    animation: post-login-loader-appear 240ms ease-out both;
}


.post-login-loader__card {
    width: min(31rem, 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.35rem;
    background: linear-gradient( 145deg, var(--navy-800), var(--navy-900) );
    box-shadow: 0 28px 75px rgba(4, 11, 40, 0.44);
    text-align: center;
}


.post-login-loader__symbol {
    width: 6.1rem;
    height: 6.1rem;
    margin: 0 auto 1.2rem;
    padding: 0;
    border-radius: 50%;
    color: #ffffff;
    background: transparent;
}


.blue-radial-loader {
    position: relative;
    display: flex;
    width: 6.1rem;
    height: 6.1rem;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    justify-content: center;
    align-items: center;
    animation: blue-radial-spin 6s linear infinite;
}


    .blue-radial-loader .center-point {
        position: relative;
        z-index: 2;
        width: 14%;
        height: 14%;
        background: var(--navy-800);
        border-radius: 50%;
        animation: blue-radial-pulse 1.5s infinite ease-in-out;
    }


    .blue-radial-loader .ray {
        position: absolute;
        top: 10%;
        left: 47%;
        width: 6%;
        height: 25%;
        background: var(--navy-800);
        border-radius: 4px;
        transform-origin: 50% 160%;
    }


        .blue-radial-loader .ray:nth-child(even) {
            top: 15%;
            height: 20%;
            background: #367bb1;
            transform-origin: 50% 175%;
        }


    .blue-radial-loader .ray-1 {
        transform: rotate(0deg);
    }


    .blue-radial-loader .ray-2 {
        transform: rotate(30deg);
    }


    .blue-radial-loader .ray-3 {
        transform: rotate(60deg);
    }


    .blue-radial-loader .ray-4 {
        transform: rotate(90deg);
    }


    .blue-radial-loader .ray-5 {
        transform: rotate(120deg);
    }


    .blue-radial-loader .ray-6 {
        transform: rotate(150deg);
    }


    .blue-radial-loader .ray-7 {
        transform: rotate(180deg);
    }


    .blue-radial-loader .ray-8 {
        transform: rotate(210deg);
    }


    .blue-radial-loader .ray-9 {
        transform: rotate(240deg);
    }


    .blue-radial-loader .ray-10 {
        transform: rotate(270deg);
    }


    .blue-radial-loader .ray-11 {
        transform: rotate(300deg);
    }


    .blue-radial-loader .ray-12 {
        transform: rotate(330deg);
    }


@keyframes blue-radial-pulse {

    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }


    50% {
        transform: scale(1.4);
        opacity: 0.8;
    }
}


@keyframes blue-radial-spin {

    0% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(360deg);
    }
}


.post-login-loader__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--gold-400);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.post-login-loader h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}


.post-login-loader__status {
    min-height: 1.6rem;
    margin: 0.9rem 0 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.5;
}


.post-login-loader__dots {
    display: flex;
    min-height: 1rem;
    margin: 0 auto 1.45rem;
    justify-content: center;
    gap: 0.5rem;
}


    .post-login-loader__dots span {
        width: 0.64rem;
        height: 0.64rem;
        border-radius: 50%;
        background: var(--gold-400);
        box-shadow: 0 0 0.65rem rgba(244, 196, 90, 0.22);
        animation: post-login-dot 1.1s ease-in-out infinite;
    }


        .post-login-loader__dots span:nth-child(2) {
            animation-delay: 0.14s;
        }


        .post-login-loader__dots span:nth-child(3) {
            animation-delay: 0.28s;
        }


.post-login-loader__skip {
    min-height: 2.9rem;
    padding: 0.65rem 1.2rem;
    color: var(--navy-800);
    border: 2px solid var(--gold-400);
    border-radius: 0.72rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-weight: 800;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}


    .post-login-loader__skip:hover {
        color: var(--navy-950);
        border-color: #ffe09a;
        background: var(--gold-400);
        box-shadow: 0 13px 28px rgba(0, 0, 0, 0.24);
        transform: translateY(-1px);
    }


    .post-login-loader__skip:focus-visible {
        outline: 3px solid var(--gold-400);
        outline-offset: 4px;
    }


.post-login-loader--closing {
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}


@keyframes post-login-loader-appear {

    from {
        opacity: 0;
    }


    to {
        opacity: 1;
    }
}


@keyframes post-login-symbol-pulse {

    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0.6rem rgba(255, 255, 255, 0.10);
    }


    50% {
        transform: scale(1.045);
        box-shadow: 0 0 0 0.88rem rgba(255, 255, 255, 0.04);
    }
}


@keyframes post-login-dot {

    0%, 80%, 100% {
        opacity: 0.32;
        transform: translateY(0);
    }


    40% {
        opacity: 1;
        transform: translateY(-0.3rem);
    }
}


@media (prefers-reduced-motion: reduce) {

    .post-login-loader,
    .post-login-loader__symbol,
    .blue-radial-loader,
    .blue-radial-loader .center-point,
    .post-login-loader__dots span {
        animation: none !important;
    }


    .post-login-loader--closing {
        transition: none !important;
    }


    .post-login-loader__skip {
        transition: none !important;
    }
}


/* =========================================================
   ACCOUNT PROFILE TABLE
   ========================================================= */

.portal-profile-table-wrap {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(11, 21, 63, 0.06);
}


.portal-profile-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    table-layout: fixed;
}


    .portal-profile-table thead {
        display: table-header-group !important;
    }


    .portal-profile-table tbody {
        display: table-row-group !important;
    }


    .portal-profile-table tr {
        display: table-row !important;
    }


    .portal-profile-table th,
    .portal-profile-table td {
        display: table-cell !important;
        padding: 15px 18px !important;
        border-bottom: 1px solid #dce1eb !important;
        text-align: left !important;
        vertical-align: middle !important;
        line-height: 1.45;
    }


    .portal-profile-table thead th {
        color: #ffffff !important;
        background: var(--navy-800) !important;
        font-size: 0.84rem !important;
        font-weight: 750 !important;
        letter-spacing: 0.02em;
    }


        .portal-profile-table thead th:first-child {
            width: 35%;
            border-top-left-radius: 13px;
        }


        .portal-profile-table thead th:last-child {
            width: 65%;
            border-top-right-radius: 13px;
        }


    .portal-profile-table tbody th {
        width: 35% !important;
        color: var(--navy-950) !important;
        background: #f7f8fc !important;
        font-weight: 750 !important;
    }


    .portal-profile-table tbody td {
        width: 65% !important;
        color: var(--ink-900) !important;
        background: #ffffff !important;
        font-weight: 400 !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }


    .portal-profile-table tbody tr:nth-child(even) th {
        background: #f1f4fa !important;
    }


    .portal-profile-table tbody tr:nth-child(even) td {
        background: #fafbfe !important;
    }


    .portal-profile-table tbody tr:hover th,
    .portal-profile-table tbody tr:hover td {
        background: #eaf0fa !important;
    }


    .portal-profile-table tbody tr:last-child th,
    .portal-profile-table tbody tr:last-child td {
        border-bottom: 0 !important;
    }


    .portal-profile-table tbody tr:last-child th {
        border-bottom-left-radius: 13px;
    }


    .portal-profile-table tbody tr:last-child td {
        border-bottom-right-radius: 13px;
    }


.portal-grid--profile-source {
    width: 100%;
}


@media (max-width: 700px) {

    .portal-profile-table th,
    .portal-profile-table td {
        padding: 12px !important;
    }


    .portal-profile-table thead th:first-child,
    .portal-profile-table tbody th {
        width: 42% !important;
    }


    .portal-profile-table thead th:last-child,
    .portal-profile-table tbody td {
        width: 58% !important;
    }
}

/* Class dropdown options */
.register-page select#ClassName option {
    background-color: #ffffff;
    color: #111f57;
    font-weight: 600;
}

    /* Highlighted / selected class */
    .register-page select#ClassName option:checked {
        background-color: #111f57;
        color: #ffffff;
    }

/* Optional examination-integrity controls; they remain usable on narrow Android tablets. */
.quiz-security-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(20, 83, 45, 0.22);
    border-radius: 0.75rem;
    background: rgba(20, 83, 45, 0.045);
}

.quiz-security-bar .quiz-security-status {
    flex: 1 1 16rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.quiz-fullscreen-button {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .quiz-security-bar {
        align-items: stretch;
    }

    .quiz-fullscreen-button {
        width: 100%;
    }
}


.department-footer__owner { margin: .45rem 0 0; font-size: .9rem; }
.department-footer__contact { margin: .25rem 0 0; font-size: .88rem; }
.department-footer__contact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }


/* Student registration: course selection */
.course-choice-list {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color, #d8dee8);
    border-radius: 0.75rem;
    background: var(--surface-muted, #f8fafc);
}
.course-choice-list label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    cursor: pointer;
}
.course-choice-list input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--primary, #2563eb);
}
