/* Star Student – kundportal: light premium dashboard
   Loaded after css/style.css on login.html and portal.html only.
   Authentication, booking storage and public booking styles are untouched. */

.portal-shell {
    --portal-canvas: #f5f6f8;
    --portal-white: #fff;
    --portal-ink: #202833;
    --portal-muted: #617080;
    --portal-line: #e2e7ee;
    --portal-blue: #5579a9;
    --portal-blue-dark: #3e608d;
    --portal-blue-soft: #edf2f8;
    font-family: "Inter", Arial, sans-serif;
    color: var(--portal-ink);
    background: var(--portal-canvas);
    min-height: 100vh;
}
.portal-shell.portal-menu-open { overflow: hidden; }
.portal-shell a:focus-visible,
.portal-shell button:focus-visible,
.portal-shell input:focus-visible,
.portal-shell summary:focus-visible {
    outline: 3px solid #7399c5;
    outline-offset: 3px;
}

/* The same navigation customers recognize from the main site. */
.portal-shell .site-header {
    position: relative;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    width: 100%;
    padding: 11px 27px;
    background: #fff;
    border-bottom: 1px solid #e9ecf0;
}
.portal-shell .header-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: #111;
}
.portal-shell .header-logo .logo-star { font-size: 34px; }
.portal-shell .header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1vw, 18px);
    margin-left: auto;
}
.portal-shell .header-nav a {
    color: #202329;
    font-size: clamp(11px, .79vw, 13px);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}
.portal-shell .header-nav a:hover,
.portal-shell .header-nav a[aria-current="page"] { color: var(--portal-blue-dark); }
.portal-shell .header-nav a[aria-current="page"]::after {
    width: 100%;
    background: var(--portal-blue);
}
.portal-shell .header-book-btn {
    flex-shrink: 0;
    padding: 13px 15px;
    border-radius: 10px;
    color: #fff;
    background: #2454ff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 7px 17px rgba(36,84,255,.13);
}
.portal-shell .header-book-btn:hover { background: #1f47d2; }
.portal-shell .site-header .menu-toggle,
.portal-shell .site-header .mobile-header-nav { display: none; }

/* Login: unobtrusive introduction + compact white customer sign-in card. */
.portal-shell.portal-login-page .auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 80px);
    margin: 0;
    padding: clamp(60px, 7vw, 108px) clamp(22px, 5vw, 75px);
    background: #f5f6f8;
}
.portal-shell .portal-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 430px);
    align-items: center;
    gap: clamp(55px, 8vw, 135px);
    width: min(1130px, 100%);
    margin: 0 auto;
}
.portal-shell .portal-intro {
    padding: 0;
    max-width: 610px;
}
.portal-shell .portal-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce6f1;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--portal-blue-soft);
    color: var(--portal-blue-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.portal-shell .portal-intro h1 {
    margin: 27px 0 18px;
    max-width: 620px;
    color: var(--portal-ink);
    font-size: clamp(40px, 4vw, 59px);
    font-weight: 850;
    line-height: 1.13;
    letter-spacing: -2.2px;
}
.portal-shell .portal-intro h1 span { color: var(--portal-blue-dark); }
.portal-shell .portal-intro > p {
    max-width: 500px;
    color: var(--portal-muted);
    font-size: 16px;
    line-height: 1.85;
}
.portal-shell .portal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
}
.portal-shell .portal-feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #435363;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.portal-shell .portal-feature-symbol {
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e6edf6;
    color: var(--portal-blue-dark);
    font-size: 13px;
    font-weight: 850;
}
.portal-shell .auth-card {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 430px;
    padding: clamp(30px, 3vw, 42px);
    border: 1px solid var(--portal-line);
    border-radius: 19px;
    background: #fff;
    color: var(--portal-ink);
    text-align: left;
    box-shadow: 0 20px 52px rgba(40,53,75,.065);
}
.portal-shell .portal-card-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #687d98;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.1px;
}
.portal-shell .portal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #edf2f8;
    color: var(--portal-blue-dark);
    font-size: 22px;
}
.portal-shell .auth-card h2 {
    margin: 24px 0 13px;
    color: var(--portal-ink);
    font-size: clamp(26px, 2.5vw, 32px);
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: -.8px;
}
.portal-shell .auth-card > p:not(.portal-login-note):not(.auth-message) {
    color: #657385;
    font-size: 14px;
    line-height: 1.75;
}
.portal-shell .auth-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 27px;
}
.portal-shell .auth-form label {
    color: #364657;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}
.portal-shell .auth-form input {
    width: 100%;
    min-height: 53px;
    border: 1.5px solid #d6dfe9;
    border-radius: 10px;
    padding: 15px 16px;
    color: var(--portal-ink);
    background: #fff;
    font: inherit;
    font-size: 16px;
    transition: border-color .2s,box-shadow .2s;
}
.portal-shell .auth-form input::placeholder { color: #8b98a7; }
.portal-shell .auth-form input:focus {
    outline: none;
    border-color: #7599c3;
    box-shadow: 0 0 0 4px rgba(86,121,169,.09);
}
.portal-shell .auth-form button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 7px;
    padding: 15px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--portal-hero-gradient);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}
.portal-shell .auth-form button:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.portal-shell .auth-form button:disabled { opacity: .55; cursor: wait; }
.portal-shell .auth-form button span { font-size: 19px; line-height: 1; }
.portal-shell .portal-login-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #e9edf2;
    color: #718093;
    font-size: 12px;
    line-height: 1.65;
}
.portal-shell .portal-login-note span {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 100%;
    color: var(--portal-blue-dark);
    background: #e8eef7;
    font-size: 11px;
}
.portal-shell .auth-message {
    color: #385f89;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.portal-shell .auth-message:empty { display: none; }

/* Booking overview: small greeting and tidy white booking cards. */
.portal-shell .portal-page {
    min-height: calc(100svh - 80px);
    margin: 0;
    padding: 44px 24px 90px;
    background: #f5f6f8;
}
.portal-shell .portal-container { width: min(1080px, 100%); margin: 0 auto; }
.portal-shell .portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 38px;
    padding: 12px 0 31px;
    border: none;
    border-bottom: 1px solid #dfe4eb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.portal-shell .portal-header .portal-eyebrow {
    color: var(--portal-blue-dark);
    background: #ebf1f7;
    border-color: #dae5ef;
}
.portal-shell .portal-header h1 {
    margin: 15px 0 8px;
    color: var(--portal-ink);
    font-size: clamp(29px, 3.2vw, 39px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -1.05px;
}
.portal-shell .portal-header p {
    max-width: 580px;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.65;
}
.portal-shell .portal-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e0e9;
    border-radius: 10px;
    padding: 13px 18px;
    background: #fff;
    color: #42536a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(35,48,68,.025);
}
.portal-shell .portal-logout-btn:hover { background: #eef2f7; }
.portal-shell .portal-logout-btn:disabled { opacity: .6; cursor: wait; }
.portal-shell .portal-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 17px;
}
.portal-shell .portal-section-top h2 {
    color: #253244;
    font-size: clamp(20px, 2.6vw, 23px);
    font-weight: 850;
    letter-spacing: -.45px;
}
.portal-shell .portal-count {
    padding: 8px 12px;
    border: 1px solid #dce6f0;
    border-radius: 999px;
    background: #eaf1f8;
    color: var(--portal-blue-dark);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.portal-shell .portal-bookings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.portal-shell .portal-booking-card,
.portal-shell .portal-empty-card {
    display: block;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--portal-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 27px rgba(30,45,70,.045);
    overflow: hidden;
}
.portal-shell .portal-booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 25px 19px;
    border-bottom: 1px solid #eef1f5;
}
.portal-shell .portal-booking-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}
.portal-shell .portal-booking-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #edf2f9;
    font-size: 22px;
}
.portal-shell .portal-booking-cap {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.portal-shell .portal-booking-icon.is-pride { background: #fff0f7; }
.portal-shell .portal-booking-head.is-pride { border-top: 3px solid #dfa5c3; }
.portal-shell .portal-booking-card h3 {
    margin: 1px 0 5px;
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.25px;
}
.portal-shell .portal-order {
    color: #778596;
    font-size: 12px;
    font-weight: 650;
}
.portal-shell .booking-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    color: #80580b;
    background: #fff1d0;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    white-space: normal;
}
.portal-shell .booking-status[data-tone="processing"] { background: #e8eff8; color: #375f91; }
.portal-shell .booking-status[data-tone="historical"] { background: #e9edf2; color: #4f5d6d; }
.portal-shell .booking-status[data-tone="confirmed"] { background: #e4f5eb; color: #246540; }
.portal-shell .booking-status[data-tone="cancelled"] { background: #fdeaea; color: #993d45; }
.portal-shell .portal-booking-body { padding: 21px 25px 24px; }
.portal-shell .portal-booking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px 25px;
}
.portal-shell .portal-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.portal-shell .portal-detail-label {
    color: #718092;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .28px;
}
.portal-shell .portal-detail-value {
    color: #263649;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.portal-shell .portal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
}
.portal-shell .portal-price-row span { color: #6a798a; font-size: 13px; font-weight: 700; }
.portal-shell .portal-price-row strong {
    color: var(--portal-blue-dark);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.35px;
}
.portal-shell .portal-booking-more {
    margin-top: 17px;
    border-top: 1px solid #edf0f5;
}
.portal-shell .portal-booking-more summary {
    padding: 15px 0 0;
    color: var(--portal-blue-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.portal-shell .portal-booking-more summary:hover { color: #284c78; }
.portal-shell .portal-booking-more pre {
    margin-top: 15px;
    padding: 16px;
    background: #f6f8fb;
    color: #4b5c70;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.8;
}
.portal-shell .portal-empty-card { padding: 32px; }
.portal-shell .portal-empty-card h2 { margin-bottom: 10px; color: var(--portal-ink); font-size: 21px; }
.portal-shell .portal-empty-card p { color: #6d7c8e; line-height: 1.7; }
.portal-shell .portal-empty-card .btn-primary {
    display: inline-flex;
    margin-top: 20px;
    color: #fff;
    background: var(--portal-blue);
}
.portal-shell .portal-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 19px;
    margin-top: 29px;
    padding: 21px 25px;
    border: 1px solid #dfe6ee;
    border-radius: 15px;
    background: #eef2f7;
}
.portal-shell .portal-support strong { color: #27364a; font-size: 14px; }
.portal-shell .portal-support p { color: #6d7c8e; font-size: 13px; margin-top: 5px; }
.portal-shell .portal-support a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e2ef;
    border-radius: 10px;
    padding: 11px 17px;
    background: #fff;
    color: var(--portal-blue-dark);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}
.portal-shell .portal-support a:hover { background: #f9fbfe; }

/* Below laptop width: keep every menu item accessible in a scrollable list. */
@media (max-width: 1360px) {
    .portal-shell .site-header {
        min-height: 72px;
        padding: 10px 18px;
        justify-content: space-between;
    }
    .portal-shell .site-header .desktop-header-nav { display: none !important; }
    .portal-shell .site-header .header-book-btn { display: none; }
    .portal-shell .site-header .menu-toggle {
        position: relative;
        z-index: 3002;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 47px;
        height: 47px;
        margin-left: auto;
        border: 1px solid #e1e7ee;
        border-radius: 11px;
        background: #f2f5f8;
        color: #34495f;
        font-size: 24px;
        cursor: pointer;
    }
    .portal-shell .site-header.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #202833;
    }
    .portal-shell .site-header.menu-open .header-logo { position: relative; z-index: 3002; color: #fff; }
    .portal-shell .site-header.menu-open .menu-toggle {
        background: #364351;
        border-color: #4d6076;
        color: #fff;
    }
    .portal-shell .site-header .mobile-header-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 3001;
        gap: 9px;
        width: 100%;
        height: calc(100dvh - 72px);
        padding: 25px 18px 35px;
        overflow-y: auto;
        background: #202833;
    }
    .portal-shell .site-header.menu-open .mobile-header-nav { display: flex; }
    .portal-shell .mobile-header-nav::before {
        display: block;
        content: "Utforska Star Student";
        margin: 0 5px 12px;
        color: #fff;
        font-size: 26px;
        font-weight: 850;
    }
    .portal-shell .mobile-header-nav a {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 14px;
        min-height: 69px;
        width: 100%;
        padding: 12px 18px;
        border: 1px solid rgba(255,255,255,.08);
        border-left: 3px solid #6f90b9;
        border-radius: 11px;
        color: #fff;
        background: #2c3744;
        text-decoration: none;
    }
    .portal-shell .mobile-header-nav a:hover { background: #364659; }
    .portal-shell .mobile-header-nav a[aria-current="page"] {
        border-left-color: #bad0eb;
        background: #3b4d62;
    }
    .portal-shell .mobile-header-nav a.portal-mobile-book { border-left-color: #ffdc8b; }
    .portal-shell .mobile-header-nav .mobile-nav-icon {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        padding: 8px;
        border-radius: 9px;
        background: rgba(255,255,255,.06);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .portal-shell .mobile-header-nav .mobile-nav-copy {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    .portal-shell .mobile-header-nav .mobile-nav-copy span {
        color: #fff;
        font-size: 15px;
        font-weight: 850;
    }
    .portal-shell .mobile-header-nav .mobile-nav-copy small {
        color: #bac8d9;
        font-size: 12px;
    }
}
@media (max-width: 900px) {
    .portal-shell.portal-login-page .auth-page { padding: 64px 25px 75px; }
    .portal-shell .portal-login-layout {
        grid-template-columns: 1fr;
        gap: 33px;
        max-width: 540px;
    }
    .portal-shell .portal-intro h1 { font-size: clamp(38px, 6vw, 50px); }
    .portal-shell .portal-feature-list { margin-top: 23px; gap: 12px; }
    .portal-shell .auth-card { justify-self: stretch; max-width: none; }
}
@media (max-width: 700px) {
    .portal-shell.portal-login-page .auth-page {
        min-height: calc(100svh - 72px);
        align-items: flex-start;
        padding: 37px 16px 64px;
    }
    .portal-shell .portal-intro h1 {
        margin-top: 21px;
        font-size: clamp(35px, 8vw, 43px);
        letter-spacing: -1.5px;
    }
    .portal-shell .portal-intro > p { font-size: 14px; }
    .portal-shell .portal-feature-list { gap: 10px; }
    .portal-shell .portal-feature-item { font-size: 13px; }
    .portal-shell .auth-card { padding: 27px 22px; }
    .portal-shell .portal-page { padding: 23px 15px 60px; }
    .portal-shell .portal-header {
        margin-bottom: 27px;
        padding: 7px 0 23px;
        align-items: stretch;
    }
    .portal-shell .portal-header h1 { font-size: 31px; }
    .portal-shell .portal-logout-btn { width: 100%; }
    .portal-shell .portal-booking-head,
    .portal-shell .portal-booking-body { padding: 19px; }
    .portal-shell .portal-booking-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
    .portal-shell .portal-price-row strong { font-size: 20px; }
    .portal-shell .portal-support { padding: 20px; }
    .portal-shell .portal-support a { width: 100%; }
}
@media (max-width: 375px) {
    .portal-shell .portal-booking-grid { grid-template-columns: 1fr; }
    .portal-shell .portal-booking-heading { gap: 10px; }
    .portal-shell .portal-order { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-shell * { transition: none !important; scroll-behavior: auto !important; }
}


/* ─────────────────────────────────────────────────────────────
   Full-width portal hero — white/light booking content beneath.
   Shared blue brand gradient, without card edges or rounded corners.
   ───────────────────────────────────────────────────────────── */
.portal-shell {
    --portal-hero-gradient: linear-gradient(116deg, #132f61 0%, #1b4a8a 53%, #3178c9 100%);
    --portal-content-width: 1080px;
}
.portal-shell .portal-page {
    padding: 0 0 90px;
    background: var(--portal-canvas);
}
.portal-shell .portal-hero,
.portal-shell .portal-login-hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--portal-hero-gradient);
    color: #fff;
    box-shadow: none;
}
.portal-shell .portal-hero {
    padding: 52px 24px 55px;
}
.portal-shell .portal-hero .portal-container,
.portal-shell .portal-login-hero-inner {
    max-width: var(--portal-content-width);
    width: 100%;
    margin: 0 auto;
}
.portal-shell .portal-hero .portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.portal-shell .portal-hero .portal-eyebrow,
.portal-shell .portal-login-hero .portal-eyebrow {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 100px;
    background: rgba(255,255,255,.10);
    color: #edf4ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}
.portal-shell .portal-hero .portal-header h1 {
    margin: 18px 0 10px;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -1.3px;
}
.portal-shell .portal-hero .portal-header p {
    max-width: 580px;
    color: #e9f1fc;
    font-size: 14px;
    line-height: 1.7;
}
.portal-shell .portal-hero .portal-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 800;
    box-shadow: none;
}
.portal-shell .portal-hero .portal-logout-btn:hover {
    background: rgba(255,255,255,.21);
}
.portal-shell .portal-main-content {
    width: min(var(--portal-content-width), 100%);
    padding-top: 37px;
}

/* Login: a blue full-width introduction, with the white sign-in
   card gently overlapping the transition to the pale content area. */
.portal-shell.portal-login-page .auth-page {
    display: block;
    min-height: calc(100svh - 80px);
    margin: 0;
    padding: 0;
    background: #f5f6f8;
}
.portal-shell .portal-login-hero {
    padding: 51px 24px 125px;
}
.portal-shell .portal-login-hero .portal-intro {
    width: min(750px, 100%);
    max-width: none;
    padding: 0;
    margin: 0;
}
.portal-shell .portal-login-hero .portal-intro h1 {
    margin: 21px 0 13px;
    max-width: 760px;
    color: #fff;
    font-size: clamp(38px, 4.4vw, 59px);
    letter-spacing: -2px;
    line-height: 1.13;
}
.portal-shell .portal-login-hero .portal-intro h1 span {
    color: #c9ddfb;
}
.portal-shell .portal-login-hero .portal-intro > p {
    max-width: 630px;
    color: #e4eefb;
    font-size: 15px;
    line-height: 1.75;
}
.portal-shell .portal-login-content {
    position: relative;
    display: flow-root;
    width: 100%;
    padding: 0 24px 83px;
    background: #f5f6f8;
}
.portal-shell .portal-login-content .portal-login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(350px,430px);
    align-items: start;
    gap: clamp(40px, 7vw, 100px);
    width: min(var(--portal-content-width), 100%);
    max-width: var(--portal-content-width);
    margin: -73px auto 0;
}
.portal-shell .portal-login-content .portal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 103px 0 0;
}
.portal-shell .portal-login-content .portal-feature-item {
    font-size: 14px;
    color: #455469;
}
.portal-shell .portal-login-content .auth-card {
    max-width: none;
    justify-self: stretch;
    /* Move only the sign-in card upward; keep the benefits list in place. */
    margin: -105px 0 0;
    border: 1px solid #e0e6ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(24,43,74,.11);
}

@media (max-width: 900px) {
    .portal-shell .portal-hero { padding: 44px 22px 47px; }
    .portal-shell .portal-login-hero { padding: 42px 22px 116px; }
    .portal-shell .portal-login-content { padding: 0 22px 70px; }
    .portal-shell .portal-login-content .portal-login-layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
        max-width: 570px;
        margin-top: -76px;
    }
    .portal-shell .portal-login-content .auth-card {
        order: -1;
        width: 100%;
        margin-top: 0;
    }
    .portal-shell .portal-login-content .portal-feature-list {
        order: 1;
        margin: 0;
        width: 100%;
        gap: 13px;
    }
}
@media (max-width: 700px) {
    .portal-shell .portal-page { padding: 0 0 65px; }
    .portal-shell .portal-hero {
        padding: 32px 16px 36px;
    }
    .portal-shell .portal-hero .portal-header {
        align-items: stretch;
        gap: 23px;
        padding: 0;
        margin: 0;
    }
    .portal-shell .portal-hero .portal-header h1 {
        margin-top: 16px;
        font-size: 33px;
    }
    .portal-shell .portal-hero .portal-logout-btn {
        width: auto;
        align-self: flex-start;
    }
    .portal-shell .portal-main-content {
        padding: 27px 16px 0;
    }
    .portal-shell .portal-login-hero {
        padding: 34px 16px 112px;
    }
    .portal-shell .portal-login-hero .portal-intro h1 {
        font-size: clamp(33px, 8vw, 45px);
        letter-spacing: -1.4px;
    }
    .portal-shell .portal-login-hero .portal-intro > p {
        font-size: 14px;
    }
    .portal-shell .portal-login-content { padding: 0 16px 58px; }
    .portal-shell .portal-login-content .portal-login-layout {
        margin-top: -78px;
    }
}

/* A subtle celebration of the Star Student brand:
   warm stars and slow motion — no external images, no JavaScript. */
.portal-shell .portal-login-hero {
    isolation: isolate;
    overflow: hidden;
}
.portal-shell .portal-login-hero-inner {
    position: relative;
    z-index: 2;
}
.portal-shell .portal-celebration {
    position: absolute;
    z-index: 1;
    top: 9px;
    right: max(6%, calc((100% - 1150px) / 2));
    width: 290px;
    height: 270px;
    pointer-events: none;
    user-select: none;
}
.portal-shell .portal-celebration-halo {
    position: absolute;
    top: -25px;
    right: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 214, 169, .19) 0%,
        rgba(255, 178, 203, .09) 34%,
        rgba(255, 255, 255, 0) 72%);
    filter: blur(2px);
}
.portal-shell .portal-celebration-star {
    position: absolute;
    display: inline-block;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 12px 28px rgba(10, 31, 61, .14);
    animation: portal-star-drift 8s ease-in-out infinite alternate;
}
.portal-shell .portal-celebration-star-main {
    top: 20px;
    right: 40px;
    color: rgba(255, 231, 187, .85);
    font-size: 160px;
    transform: rotate(-12deg);
    animation-duration: 9s;
}
.portal-shell .portal-celebration-star-rose {
    top: 35px;
    left: 12px;
    color: #ffa5ca;
    font-size: 34px;
    animation-delay: -3s;
    animation-duration: 7s;
}
.portal-shell .portal-celebration-star-gold {
    top: 179px;
    right: 5px;
    color: #ffd58b;
    font-size: 29px;
    animation-delay: -5s;
}
.portal-shell .portal-celebration-star-mint {
    top: 198px;
    left: 42px;
    color: #a9eadf;
    font-size: 43px;
    animation-delay: -2s;
    animation-duration: 10s;
}
.portal-shell .portal-celebration-dot {
    position: absolute;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .045);
}
.portal-shell .portal-celebration-dot-one {
    width: 8px;
    height: 8px;
    top: 95px;
    left: 76px;
    background: #ffd48d;
}
.portal-shell .portal-celebration-dot-two {
    width: 6px;
    height: 6px;
    top: 223px;
    right: 86px;
    background: #f3b4d6;
}
@keyframes portal-star-drift {
    from { translate: 0 0; }
    to { translate: 5px -13px; }
}
/* Only a hairline of colour on the card; the UI itself stays neutral. */
.portal-shell .portal-login-content .auth-card {
    position: relative;
    overflow: hidden;
}
.portal-shell .portal-login-content .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #f5a3c7 0%, #f6cd84 45%, #81b8ee 100%);
    pointer-events: none;
}
.portal-shell .portal-feature-item:nth-child(1) .portal-feature-symbol {
    background: #fce9f1;
    color: #a94d7a;
}
.portal-shell .portal-feature-item:nth-child(2) .portal-feature-symbol {
    background: #fff0d8;
    color: #9d6927;
}
.portal-shell .portal-feature-item:nth-child(3) .portal-feature-symbol {
    background: #e5f3f2;
    color: #347a75;
}
/* The booking hero picks up a hint of warmth while remaining full-width. */
.portal-shell .portal-hero {
    isolation: isolate;
    overflow: hidden;
}
.portal-shell .portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 330px 230px at 89% 5%,
            rgba(253, 188, 204, .17), transparent 76%),
        radial-gradient(ellipse 280px 240px at 75% 100%,
            rgba(255, 217, 139, .09), transparent 78%);
}
.portal-shell .portal-hero > .portal-container {
    position: relative;
    z-index: 1;
}
@media (max-width: 1200px) {
    .portal-shell .portal-celebration { opacity: .46; right: 0; }
}
@media (max-width: 900px) {
    .portal-shell .portal-celebration { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-shell .portal-celebration-star {
        animation: none;
        translate: 0 0;
    }
}

/* Customer bookings hero: same celebratory stars as login, adapted to the
   shallower full-width banner. Decorative only and safely behind controls. */
.portal-shell .portal-hero > .portal-container {
    position: relative;
    z-index: 2;
}
.portal-shell .portal-celebration-bookings {
    top: 0;
    right: clamp(12px, 2.5vw, 45px);
    width: min(38vw, 485px);
    height: 100%;
    min-height: 222px;
    opacity: 1;
}
.portal-shell .portal-celebration-bookings .portal-celebration-halo {
    top: -35px;
    right: 0;
    width: 320px;
    height: 300px;
    opacity: .7;
}
.portal-shell .portal-celebration-bookings .portal-celebration-star-main {
    top: 17px;
    right: 5px;
    font-size: clamp(130px, 12vw, 185px);
    color: #ffe6af;
    transform: rotate(-12deg);
}
.portal-shell .portal-celebration-bookings .portal-celebration-star-rose {
    top: 25px;
    left: 13%;
    color: #ffa2ce;
    font-size: 33px;
}
.portal-shell .portal-celebration-bookings .portal-celebration-star-gold {
    top: 150px;
    right: 41%;
    color: #ffdc83;
    font-size: 27px;
}
.portal-shell .portal-celebration-bookings .portal-celebration-star-mint {
    top: 83px;
    left: 34%;
    color: #afd8fa;
    font-size: 35px;
}
.portal-shell .portal-celebration-bookings .portal-celebration-bookings-sparkle {
    top: 168px;
    right: 0;
    color: #ffa2ce;
    font-size: 28px;
    animation-delay: -4s;
}
.portal-shell .portal-celebration-bookings .portal-celebration-dot-one {
    top: 84px;
    left: 7%;
}
.portal-shell .portal-celebration-bookings .portal-celebration-dot-two {
    top: 188px;
    right: 31%;
}
/* On narrow laptops the artwork takes less space, keeping the logout
   button and customer greeting visually prominent. */
@media (min-width: 901px) and (max-width: 1200px) {
    .portal-shell .portal-celebration-bookings {
        opacity: .6;
        right: -20px;
    }
}


/* Single-method email OTP for desktop, mobile and approved Star Student staff. */
.portal-shell #loginForm[hidden],
.portal-shell #loginCodeStep[hidden] {
    display: none !important;
}
.portal-shell .portal-otp-step {
    margin-top: 21px;
}
.portal-shell .portal-otp-sent {
    margin: 0;
    padding: 13px 14px;
    border-radius: 10px;
    background: #edf3fa;
    color: #365779;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.portal-shell .portal-otp-step .auth-form {
    margin-top: 20px;
}
.portal-shell .portal-otp-step #loginCode {
    text-align: center;
    font-size: 26px;
    letter-spacing: .4em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding-left: 25px;
}
.portal-shell .portal-otp-help {
    margin: -1px 0 4px;
    color: #718093;
    font-size: 12px;
    line-height: 1.65;
}
.portal-shell .portal-otp-actions {
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.portal-shell .portal-otp-actions button {
    border: 0;
    padding: 6px 0;
    background: transparent;
    color: #406a9a;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.portal-shell .portal-otp-actions button:hover:not(:disabled) { color: #203f66; }
.portal-shell .portal-otp-actions button:disabled {
    color: #8b99ab;
    cursor: not-allowed;
    text-decoration: none;
}
