/* Public landing and authentication layouts for access selection and staff login. */
.entry-body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #f2f1f7 0%, #e9e8f0 48%, #f4f3f7 100%);
}

.entry-body::before,
.entry-body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.entry-body::before {
    width: min(46vw, 680px);
    aspect-ratio: 1;
    top: -24%;
    left: -10%;
    background: rgba(101, 87, 165, .2);
}

.entry-body::after {
    width: min(40vw, 590px);
    aspect-ratio: 1;
    right: -8%;
    bottom: -26%;
    background: rgba(126, 106, 197, .18);
}

.entry-page {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 36px;
    perspective: 1400px;
}

.entry-intro {
    max-width: 720px;
    margin-bottom: 36px;
}

/* Center the application identity across the whole page without realigning the service introduction. */
.entry-brand { margin-bottom: 24px; text-align: center; }
.entry-brand .application-logo-link,
.entry-brand .application-logo-link > .app-logo {
    width: 150px;
    height: 140px;
}
.login-card .back-home { margin-bottom: 20px; }

.entry-intro p,
.login-card > p {
    color: #657286;
    font-size: 17px;
}

.entry-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.entry-card {
    display: flex;
    min-height: 340px;
    padding: 50px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    color: #172033;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(50, 38, 94, .1),
        0 8px 16px rgba(63, 48, 116, .12),
        0 30px 60px rgba(63, 48, 116, .17);
    text-decoration: none;
    transform: rotateX(1.5deg);
    transform-origin: center;
    transition: transform .24s ease, box-shadow .24s ease;
}

.entry-card:hover {
    transform: translateY(-6px) rotateX(1.5deg);
    box-shadow:
        0 1px 1px rgba(50, 38, 94, .1),
        0 12px 22px rgba(63, 48, 116, .15),
        0 38px 72px rgba(63, 48, 116, .22);
}

.entry-card.primary {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: linear-gradient(145deg, #514684, #6557a5);
}

/* A single-line audience label stays readable in an oval badge, including on phones. */
.entry-audience {
    width: max-content;
    max-width: 100%;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-bottom: 12px;
    padding: 0 20px;
    border-radius: 999px;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    color: var(--brand-secondary);
    background: #e8f3ef;
    font-weight: 700;
}

.entry-card.primary .entry-audience {
    color: #fff;
    background: rgba(255,255,255,.16);
}

.entry-card small { color: #657286; }
.entry-card.primary small,
.entry-card.primary p { color: #d8edf6; }
.entry-card h2 { margin: 1px 0 15px; font-size: 25px; }
.entry-card p { margin: 0; color: #657286; }
.entry-card > strong { color: var(--brand-primary); }
.entry-card.primary > strong { color: #fff; }
.entry-footer { margin-top: 28px; color: #657286; text-align: center; font-size: 13px; }

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(36px, 6vh, 72px) clamp(24px, 3vw, 40px);
    background: linear-gradient(145deg, #f2f1f7 0%, #e9e8f0 48%, #f4f3f7 100%);
    perspective: 1400px;
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(86px);
}

.login-page::before {
    width: min(42vw, 620px);
    aspect-ratio: 1;
    top: -18%;
    left: -9%;
    background: rgba(101, 87, 165, .22);
}

.login-page::after {
    width: min(38vw, 560px);
    aspect-ratio: 1;
    right: -7%;
    bottom: -22%;
    background: rgba(126, 106, 197, .2);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, 100%);
    min-height: min(860px, calc(100dvh - clamp(72px, 12vh, 144px)));
    display: grid;
    grid-template-columns: minmax(420px, .98fr) minmax(520px, 1.02fr);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.54);
    border-top-color: rgba(255,255,255,.96);
    border-radius: 24px;
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        0 1px 1px rgba(50, 38, 94, .1),
        0 8px 16px rgba(63, 48, 116, .12),
        0 30px 60px rgba(63, 48, 116, .18);
    transform: rotateX(1.5deg);
    transform-origin: center;
}

.login-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) 64px;
    padding: clamp(28px, 4vw, 64px) clamp(28px, 7vw, 112px) 32px;
    border-radius: 23px 0 0 23px;
    background: #fff;
}

.login-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #142f47;
    text-decoration: none;
}

.login-brand-link img { width: 46px; height: 46px; object-fit: contain; }
.login-brand-link span { display: grid; line-height: 1.2; }
.login-brand-link strong { font-size: 18px; }
.login-brand-link small { margin-top: 3px; color: #697789; font-size: 11px; }
.login-brand-link:focus-visible { border-radius: 8px; outline: 3px solid rgba(101, 87, 165, .28); outline-offset: 4px; }

.login-form-container {
    width: min(390px, 100%);
    align-self: center;
    justify-self: center;
    padding: 52px 0;
}

.login-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.login-form-container h1 {
    margin-bottom: 10px;
    color: #142f47;
    font-size: clamp(32px, 3vw, 42px);
    letter-spacing: -.035em;
}

.login-form-container > p { margin: 0 0 34px; color: #697789; }
.login-form { gap: 20px; }
.login-form input { height: 50px; border-color: #cbd5df; border-radius: 10px; background: #fff; font-size: 14px; }
.login-form input::placeholder { color: #98a3b2; }
.login-form button { margin-top: 4px; background: #6557a5; box-shadow: 0 7px 18px rgba(79, 66, 145, .2); }
.login-form button:hover { background: #514684; }
.login-form-container .result { margin-top: 18px; }
.login-footer { align-self: end; color: #8a96a5; font-size: 12px; }

.login-carousel {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) 64px;
    overflow: hidden;
    padding: clamp(30px, 4vh, 56px) clamp(34px, 5vw, 72px);
    border-radius: 0 23px 23px 0;
    color: #fff;
    background:
        radial-gradient(circle at 84% 13%, rgba(108, 209, 175, .25), transparent 25%),
        radial-gradient(circle at 8% 90%, rgba(168, 143, 238, .35), transparent 30%),
        linear-gradient(150deg, #3d326f 0%, #5947a1 52%, #6654ad 100%);
}

.login-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.login-carousel-track { z-index: 1; display: grid; grid-row: 2; min-height: 0; }
.login-slide {
    grid-area: 1 / 1;
    display: grid;
    align-content: center;
    gap: clamp(26px, 4vh, 44px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(22px);
    transition: opacity .38s ease, transform .38s ease, visibility .38s;
    pointer-events: none;
}
.login-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.login-slide-visual { width: min(520px, 92%); min-height: 260px; display: grid; place-items: center; justify-self: center; }
.login-slide-copy { width: min(600px, 100%); justify-self: center; text-align: center; }
.login-slide-copy > span { color: #c8f0e2; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-slide-copy h2 { max-width: 590px; margin: 12px auto 12px; color: #fff; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.login-slide-copy p { max-width: 560px; margin: 0 auto; color: rgba(255,255,255,.76); font-size: 16px; }

.brand-visual { position: relative; }
.brand-mark {
    z-index: 2;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 46px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 28px 60px rgba(29, 21, 66, .28);
    transform: rotate(-2deg);
}
.brand-mark img { width: 148px; height: 148px; }
.brand-ring { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.brand-ring-one { width: 310px; height: 310px; }
.brand-ring-two { width: 420px; height: 420px; }

.preview-window {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 18px;
    color: #1c3349;
    background: rgba(255,255,255,.96);
    box-shadow: 0 26px 58px rgba(29, 21, 66, .25);
    transform: rotate(-1deg);
}
.preview-window header { display: flex; align-items: center; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid #e5eaf0; }
.preview-window header span { width: 8px; height: 8px; border-radius: 50%; background: #d7dce3; }
.preview-window header span:first-child { background: #6557a5; }
.preview-window header strong { margin-left: auto; font-size: 12px; }
.preview-days, .preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.preview-days { margin: 18px 0 8px; text-align: center; color: #738092; font-size: 10px; }
.preview-grid i { height: 34px; border-radius: 7px; background: #eef1f5; }
.preview-grid i.available { background: linear-gradient(135deg, #6557a5, #8271c4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.preview-legend { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #738092; font-size: 10px; }
.preview-legend span { width: 9px; height: 9px; border-radius: 3px; background: #6557a5; }

.classes-visual { position: relative; align-content: center; }
.class-card {
    width: min(390px, 88%);
    display: grid;
    gap: 5px;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 16px;
    color: #20374c;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 42px rgba(29, 21, 66, .2);
}
.class-card + .class-card { margin-top: -9px; }
.class-card:nth-child(1) { transform: translateX(-46px) rotate(-2deg); }
.class-card:nth-child(2) { z-index: 2; transform: translateX(28px); }
.class-card:nth-child(3) { transform: translateX(-16px) rotate(1.5deg); }
.class-card span { color: #6557a5; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.class-card strong { font-size: 18px; }
.class-card small { color: #718093; }
.class-card-primary { color: #fff; background: linear-gradient(135deg, #4e9d83, #3e816b); }
.class-card-primary span, .class-card-primary small { color: rgba(255,255,255,.78); }

.login-carousel-controls { z-index: 2; display: grid; grid-row: 3; grid-template-columns: 42px auto 42px; align-items: center; align-self: end; justify-content: center; gap: 22px; margin: 0; }
.carousel-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    min-height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}
.carousel-arrow:hover { background: rgba(255,255,255,.2); }
.carousel-arrow:focus-visible, .carousel-dots button:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 3px; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; min-height: 8px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.42); transition: width .2s, background .2s; }
.carousel-dots button.is-active { width: 24px; border-radius: 999px; background: #fff; }

@media (max-width: 720px) {
    .entry-page { padding-top: 40px; }
    .entry-options { grid-template-columns: 1fr; }
    .entry-card { min-height: 300px; transform: none; }
    .entry-card:hover { transform: translateY(-4px); }
}

@media (max-width: 980px) {
    .login-page { padding: 0; }
    .login-page::before, .login-page::after { display: none; }
    .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; transform: none; }
    .login-panel { min-height: 720px; grid-template-rows: auto 1fr auto; padding: 30px clamp(24px, 9vw, 76px); border-radius: 0; }
    .login-carousel { min-height: 680px; border-radius: 0; }
}

@media (max-width: 560px) {
    .login-panel { min-height: 100vh; padding: 24px; }
    .login-form-container { padding: 44px 0; }
    .login-brand-link small { display: none; }
    .login-carousel { min-height: 610px; padding: 40px 22px 30px; }
    .login-slide-visual { min-height: 240px; }
    .brand-mark { width: 172px; height: 172px; border-radius: 36px; }
    .brand-mark img { width: 118px; height: 118px; }
    .brand-ring-one { width: 238px; height: 238px; }
    .brand-ring-two { width: 310px; height: 310px; }
    .preview-window { padding: 18px; }
    .class-card { width: 94%; }
    .class-card:nth-child(1), .class-card:nth-child(2), .class-card:nth-child(3) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .entry-card, .login-slide, .carousel-dots button { transition: none; }
}
