:root {
    --bg-top: #ffffff;
    --bg-bottom: #f1f7fc;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --border-soft: rgba(23, 58, 94, 0.16);
    --brand-700: #173A5E;
    --brand-600: #254f7b;
    --navy-700: #102A43;
    --ink-800: #2d4d6d;
    --ink-700: #627D98;
    --success-600: #2F855A;
    --danger-600: #C53030;
    --shadow-lg: 0 30px 80px rgba(16, 42, 67, 0.18);
    --shadow-md: 0 18px 36px rgba(16, 42, 67, 0.12);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
}

/* Compact auth polish */
.auth-shell {
    min-height: calc(100vh - 116px);
    padding: 14px 0 22px;
}

.auth-card {
    padding: 22px 20px;
    gap: 14px;
    border-radius: 24px;
}

.auth-card-header h2 {
    font-size: 1.5rem;
}

.auth-card-header p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-form {
    gap: 12px;
}

.field label {
    font-size: 0.84rem;
}

.input-shell {
    min-height: 46px;
    border-radius: 14px;
}

.auth-submit,
.secondary-action {
    min-height: 44px;
    font-size: 0.9rem;
}

.helper-note {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
}

.install-callout {
    padding: 14px;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .auth-shell {
        min-height: auto;
        padding-top: 8px;
    }

    .auth-card {
        padding: 18px 14px;
        gap: 12px;
        border-radius: 20px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Inter", "Prompt", sans-serif;
    color: var(--navy-700);
    background:
        radial-gradient(circle at top left, rgba(214, 168, 79, 0.12), rgba(214, 168, 79, 0) 22%),
        radial-gradient(circle at bottom right, rgba(23, 58, 94, 0.14), rgba(23, 58, 94, 0) 30%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(23, 58, 94, 0.2), rgba(23, 58, 94, 0));
}

body::after {
    bottom: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-shell,
.auth-footer {
    position: relative;
    z-index: 1;
}

.auth-shell {
    width: min(100% - 24px, 1200px);
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    display: grid;
    align-items: center;
    padding: 20px 0 28px;
}

.auth-shell--centered {
    width: min(100% - 24px, 560px);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
    gap: 24px;
    align-items: stretch;
}

.auth-hero {
    order: 1;
}

.auth-card {
    order: 2;
}

.auth-hero,
.auth-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.auth-hero {
    padding: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(245, 250, 253, 0.76)),
        radial-gradient(circle at top right, rgba(23, 58, 94, 0.15), rgba(23, 58, 94, 0));
    display: grid;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(214, 168, 79, 0.16);
}

.auth-hero::before {
    width: 240px;
    height: 240px;
    right: -60px;
    top: -40px;
}

.auth-hero::after {
    width: 160px;
    height: 160px;
    left: -30px;
    bottom: -30px;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.hero-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hero-brand-copy {
    display: grid;
    gap: 4px;
}

.hero-brand-copy strong {
    font-size: 1.15rem;
}

.hero-brand-copy span {
    color: var(--ink-700);
    font-size: 0.9rem;
}

.hero-copy {
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: rgba(23, 58, 94, 0.1);
    color: var(--brand-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.98;
}

.hero-copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-800);
}

.hero-points {
    display: grid;
    gap: 12px;
}

.hero-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
}

.hero-point-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(214, 168, 79, 0.2);
    color: var(--brand-700);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-point strong {
    display: block;
    margin-bottom: 4px;
}

.hero-point p {
    color: var(--ink-700);
    line-height: 1.5;
    font-size: 0.94rem;
}

.hero-visual {
    min-height: 220px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgba(23, 58, 94, 0.14), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
}

.hero-road,
.hero-road::before {
    position: absolute;
    left: 8%;
    right: 8%;
    border-radius: 999px;
}

.hero-road {
    bottom: 36px;
    height: 22px;
    background: rgba(24, 56, 87, 0.12);
}

.hero-road::before {
    content: "";
    top: 9px;
    height: 4px;
    background-image: linear-gradient(90deg, rgba(25, 58, 95, 0.6) 40%, transparent 40%);
    background-size: 26px 4px;
}

.hero-bus {
    position: absolute;
    left: 18%;
    bottom: 56px;
    width: 170px;
    height: 82px;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(135deg, #ffffff, #eaf5ff 68%);
    border: 1px solid rgba(109, 159, 201, 0.26);
    box-shadow: var(--shadow-md);
}

.hero-bus::before,
.hero-bus::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #3f5b7a;
    bottom: -14px;
    width: 28px;
    height: 28px;
}

.hero-bus::before {
    left: 22px;
}

.hero-bus::after {
    right: 22px;
}

.hero-bus-window {
    position: absolute;
    inset: 12px 14px auto 14px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(128, 194, 238, 0.9), rgba(216, 239, 255, 0.9));
}

.hero-bus-door {
    position: absolute;
    right: 20px;
    bottom: 16px;
    width: 30px;
    height: 28px;
    border-radius: 12px;
    background: rgba(108, 168, 223, 0.18);
}

.hero-route-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-700);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.hero-route-pin--a {
    top: 26px;
    left: 16%;
}

.hero-route-pin--b {
    top: 70px;
    right: 20%;
}

.hero-route-path {
    position: absolute;
    top: 54px;
    left: 24%;
    right: 26%;
    height: 120px;
    border: 3px dashed rgba(109, 168, 223, 0.45);
    border-left: none;
    border-bottom: none;
    border-radius: 0 72px 0 0;
}

.auth-card {
    padding: 28px 24px;
    background: var(--surface);
    display: grid;
    gap: 18px;
    align-content: start;
}

.auth-card--modern {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92)),
        radial-gradient(circle at top right, rgba(47, 111, 237, 0.12), rgba(47, 111, 237, 0));
}

.auth-card--modern::before {
    content: "";
    position: absolute;
    inset: -90px -50px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.14), rgba(47, 111, 237, 0));
    pointer-events: none;
}

.auth-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-toolbar-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-card-header {
    display: grid;
    gap: 8px;
}

.auth-card-header--tight {
    gap: 4px;
}

.auth-card-header h2 {
    font-size: 1.8rem;
}

.auth-card-header p {
    color: var(--ink-700);
    line-height: 1.6;
}

.role-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(221, 236, 248, 0.76);
}

.role-switch--subtle {
    padding: 5px;
    gap: 5px;
    background: rgba(226, 238, 252, 0.82);
    border: 1px solid rgba(47, 111, 237, 0.08);
}

.role-switch a {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-700);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.role-switch a:hover {
    transform: translateY(-1px);
    color: var(--brand-700);
}

.role-switch a.is-active {
    background: white;
    color: var(--navy-700);
    box-shadow: 0 8px 18px rgba(88, 123, 159, 0.14);
}

.role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.role-icon svg {
    width: 16px;
    height: 16px;
}

.role-switch a span + span {
    margin-left: 6px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-800);
}

.input-shell {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid var(--border-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-shell:focus-within {
    border-color: rgba(100, 156, 207, 0.4);
    box-shadow: 0 0 0 4px rgba(108, 168, 223, 0.15);
    transform: translateY(-1px);
}

.input-icon {
    color: var(--brand-700);
    font-size: 1rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.input-shell input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--navy-700);
    min-width: 0;
}

.input-shell--password {
    grid-template-columns: 20px minmax(0, 1fr) 34px;
}

.password-toggle {
    border: none;
    background: transparent;
    color: var(--ink-700);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
    background: rgba(47, 111, 237, 0.08);
    color: var(--brand-700);
    transform: translateY(-1px);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.error {
    color: var(--danger-600);
    font-size: 0.86rem;
}

.auth-submit,
.secondary-action {
    min-height: 50px;
    border: none;
    border-radius: var(--radius-pill);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.auth-submit {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.auth-submit:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.auth-submit--dynamic {
    background: linear-gradient(135deg, #2F6FED, #4B86F4);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-800);
    border: 1px solid rgba(116, 160, 198, 0.22);
}

.secondary-action--compact {
    min-height: 42px;
    font-size: 0.9rem;
}

.helper-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(108, 168, 223, 0.1);
    color: var(--ink-700);
    line-height: 1.6;
    font-size: 0.92rem;
}

.helper-note--support {
    justify-content: center;
    text-align: center;
}

.helper-note-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.helper-note-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-800);
    border: 1px solid rgba(47, 111, 237, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.helper-note-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    color: #2F6FED;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2F6FED;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link--muted {
    color: var(--ink-700);
}

.hero-brand--compact img {
    width: 52px;
    height: 52px;
}

.auth-illustration {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(47, 111, 237, 0.08), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(47, 111, 237, 0.1);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-illustration:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(47, 111, 237, 0.08);
}

.auth-illustration-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2F6FED;
    background: rgba(47, 111, 237, 0.12);
}

.auth-illustration-badge svg {
    width: 28px;
    height: 28px;
}

.auth-illustration-copy {
    display: grid;
    gap: 4px;
}

.auth-illustration-copy strong {
    font-size: 0.98rem;
    color: var(--navy-700);
}

.auth-illustration-copy p {
    font-size: 0.9rem;
    color: var(--ink-700);
    line-height: 1.55;
}

.auth-illustration--admin .auth-illustration-badge {
    color: #315ea8;
    background: rgba(49, 94, 168, 0.12);
}

.auth-illustration--staff .auth-illustration-badge {
    color: #156f7f;
    background: rgba(21, 111, 127, 0.12);
}

.auth-illustration--parent .auth-illustration-badge {
    color: #2F6FED;
    background: rgba(47, 111, 237, 0.12);
}

.install-callout {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(47, 111, 237, 0.12), rgba(255, 255, 255, 0.98)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 252, 0.92));
    border: 1px solid rgba(47, 111, 237, 0.14);
    box-shadow: 0 16px 32px rgba(47, 111, 237, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.install-callout:hover,
.install-callout.is-ready {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(47, 111, 237, 0.12);
    border-color: rgba(47, 111, 237, 0.24);
}

.install-callout.is-hint {
    animation: installPulse 0.6s ease 2;
}

.install-callout-copy {
    display: grid;
    gap: 4px;
}

.install-callout-copy strong {
    font-size: 1rem;
    color: var(--navy-700);
}

.install-callout-copy p {
    font-size: 0.92rem;
    color: var(--ink-700);
    line-height: 1.55;
}

.install-btn {
    min-height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2F6FED, #5A8CFF);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(47, 111, 237, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(47, 111, 237, 0.26);
    filter: saturate(1.05);
}

.install-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.install-btn-icon svg {
    width: 18px;
    height: 18px;
}

.install-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    display: grid;
    place-items: center;
    padding: 18px;
    z-index: 30;
}

.install-modal[hidden] {
    display: none;
}

.install-modal-card {
    width: min(100%, 360px);
    background: #fff;
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 12px;
    text-align: center;
}

.install-modal-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2F6FED;
    background: rgba(47, 111, 237, 0.12);
}

.install-modal-badge svg {
    width: 28px;
    height: 28px;
}

.install-modal-card strong {
    font-size: 1rem;
    color: var(--navy-700);
}

.install-modal-card p {
    font-size: 0.94rem;
    color: var(--ink-700);
    line-height: 1.55;
}

.install-modal-close {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.1);
    color: #2F6FED;
    font-weight: 800;
    cursor: pointer;
}

@keyframes installPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.auth-footer {
    width: min(100% - 24px, 1200px);
    margin: 0 auto 16px;
    padding-bottom: 16px;
}

.auth-footer-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(26, 57, 90, 0.96), rgba(78, 134, 197, 0.9));
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.auth-footer-card strong {
    display: block;
    margin-bottom: 4px;
}

.auth-footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-footer-links a {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .auth-shell {
        width: min(100% - 24px, 760px);
        min-height: auto;
        padding-top: 16px;
    }

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

    .auth-card {
        order: 1;
    }

    .auth-hero {
        order: 2;
        min-height: 0;
        padding: 22px 22px 20px;
        gap: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
    }

    .hero-copy p {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .hero-points {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        min-height: 160px;
    }

    .auth-footer-card {
        padding: 16px 18px;
    }
}

@media (max-width: 640px) {
    .auth-shell--centered {
        width: min(100% - 18px, 560px);
    }

    .auth-card--modern {
        padding: 20px 16px;
        gap: 16px;
        border-radius: 24px;
    }

    .auth-toolbar {
        align-items: flex-start;
    }

    .role-switch a {
        min-height: 40px;
        font-size: 0.82rem;
    }

    .role-switch a span + span {
        margin-left: 4px;
    }

    .auth-card-header h2 {
        font-size: 1.55rem;
    }

    .auth-illustration {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 14px;
    }

    .auth-illustration-badge {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .install-callout {
        padding: 16px;
    }

    .install-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-shell {
        width: calc(100% - 16px);
        padding: 10px 0 14px;
        min-height: auto;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: 26px;
    }

    .auth-card {
        gap: 14px;
    }

    .auth-card-header h2 {
        font-size: 1.5rem;
    }

    .auth-card-header p,
    .helper-note {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .role-switch a,
    .auth-submit,
    .secondary-action {
        min-height: 48px;
    }

    .secondary-action--compact {
        min-height: 36px;
        padding: 0;
        border: none;
        background: transparent;
        color: #2F6FED;
        justify-content: flex-start;
        width: fit-content;
        box-shadow: none;
    }

    .secondary-action--compact:hover {
        transform: none;
        text-decoration: underline;
    }

    .helper-note {
        padding: 12px 14px;
    }

    .helper-note-links {
        gap: 6px;
    }

    .helper-note-link {
        min-height: 24px;
        padding: 3px 10px;
        font-size: 0.76rem;
    }

    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .install-callout {
        padding: 14px;
        gap: 10px;
    }

    .install-btn {
        min-height: 46px;
        width: 100%;
    }

    .auth-hero {
        display: none;
    }

    .auth-footer {
        width: calc(100% - 16px);
        margin-bottom: 10px;
    }

    .auth-footer-card {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-footer-card p {
        font-size: 0.88rem;
    }

    .auth-footer-links a {
        padding: 8px 12px;
        font-size: 0.88rem;
    }
}

/* Staff operational login theme */
body.auth-staff {
    background:
        radial-gradient(circle at top left, rgba(110, 180, 120, 0.16), rgba(110, 180, 120, 0) 24%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0) 28%),
        linear-gradient(180deg, #f7fff8 0%, #eef8ef 100%);
}

body.auth-staff::before,
body.auth-staff::after {
    display: none;
}

body.auth-staff .auth-card--modern {
    background: linear-gradient(180deg, #ffffff 0%, #f5fbf5 100%);
    border: 1px solid rgba(134, 198, 143, 0.3);
    box-shadow: 0 16px 36px rgba(46, 125, 50, 0.08);
}

body.auth-staff .hero-kicker {
    background: #def7e2;
    color: #166534;
}

body.auth-staff .auth-card-header h2,
body.auth-staff .hero-brand-copy strong {
    color: #1f3d2d;
}

body.auth-staff .hero-brand-copy span,
body.auth-staff .auth-card-header p,
body.auth-staff .helper-note span,
body.auth-staff .helper-note-link,
body.auth-staff .auth-link--muted {
    color: #5f7d66;
}

body.auth-staff .field label,
body.auth-staff .auth-link {
    color: #1f3d2d;
}

body.auth-staff .input-shell {
    background: #ffffff;
    border-color: rgba(134, 198, 143, 0.34);
}

body.auth-staff .input-shell input {
    color: #1f3d2d;
}

body.auth-staff .input-shell:focus-within {
    border-color: #7bbf87;
    box-shadow: 0 0 0 3px rgba(123, 191, 135, 0.18);
}

body.auth-staff .auth-submit {
    background: linear-gradient(135deg, #22a55a, #16803f);
}

/* Parent login theme */
body.auth-parent {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0) 24%),
        radial-gradient(circle at bottom right, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0) 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

body.auth-parent::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0));
}

body.auth-parent::after {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0));
}

body.auth-parent .auth-card--modern {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

body.auth-parent .auth-card--modern::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0));
}

body.auth-parent .hero-kicker {
    background: #dbeafe;
    color: #1d4ed8;
}

body.auth-parent .hero-brand-copy strong,
body.auth-parent .auth-card-header h2 {
    color: #102a43;
}

body.auth-parent .hero-brand-copy span,
body.auth-parent .auth-card-header p,
body.auth-parent .helper-note span,
body.auth-parent .helper-note-link,
body.auth-parent .auth-link--muted {
    color: #627d98;
}

body.auth-parent .field label,
body.auth-parent .auth-link {
    color: #102a43;
}

body.auth-parent .input-shell {
    background: #ffffff;
    border-color: rgba(147, 197, 253, 0.34);
}

body.auth-parent .input-shell input {
    color: #102a43;
}

body.auth-parent .input-shell:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.auth-parent .auth-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
}

body.auth-parent .auth-submit:hover {
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

/* Admin login theme */
body.auth-admin {
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0) 24%),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, 0.14), rgba(127, 29, 29, 0) 28%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 52%, #e8edf3 100%);
    color: #102a43;
}

body.auth-admin::before,
body.auth-admin::after {
    display: none;
}

body.auth-admin .auth-card--modern {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.auth-admin .auth-card--modern::before {
    background: radial-gradient(circle, rgba(127, 29, 29, 0.14), rgba(127, 29, 29, 0));
}

body.auth-admin .hero-kicker {
    background: #f2e8e8;
    color: #8b1f1f;
}

body.auth-admin .hero-brand-copy strong,
body.auth-admin .auth-card-header h2,
body.auth-admin .field label,
body.auth-admin .helper-note,
body.auth-admin .auth-link {
    color: #102a43;
}

body.auth-admin .hero-brand-copy span,
body.auth-admin .auth-card-header p,
body.auth-admin .helper-note span,
body.auth-admin .helper-note-link,
body.auth-admin .auth-link--muted {
    color: #627d98;
}

body.auth-admin .input-shell {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.45);
}

body.auth-admin .input-shell input {
    color: #102a43;
}

body.auth-admin .input-shell:focus-within {
    border-color: #8b1f1f;
    box-shadow: 0 0 0 3px rgba(139, 31, 31, 0.14);
}

body.auth-admin .auth-submit {
    background: linear-gradient(135deg, #7f1d1d, #9f2a2a);
    color: #ffffff;
    font-weight: 800;
}
