/* ==========================================================================
   Anan International School — public booking pages (home, login, forms)
   Palette drawn from the school logo: navy ink, brand orange, sky blue.
   ========================================================================== */

:root {
    --ink: #16233b;
    --ink-2: #2b3a55;
    --muted: #5d6b82;
    --subtle: #8a96a8;
    --paper: #faf7f2;
    --paper-2: #f3eee5;
    --card: #ffffff;
    --line: #e7e0d4;
    --line-strong: #d6cdbd;
    --brand: #f5a544;
    --brand-deep: #c96f0c;
    --brand-soft: #fff3e2;
    --sky: #0b8fd8;
    --sky-soft: #e6f4fc;
    --success: #1f8a5b;
    --success-soft: #e7f6ee;
    --danger: #c2410c;
    --danger-soft: #fdeee6;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(22, 35, 59, .06);
    --shadow: 0 1px 2px rgba(22, 35, 59, .05), 0 12px 32px -12px rgba(22, 35, 59, .18);
    --ring: 0 0 0 4px rgba(245, 165, 68, .28);
    --font-ui: "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: var(--font-ui);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background:
        radial-gradient(1100px 480px at 100% -10%, rgba(245, 165, 68, .16), transparent 60%),
        radial-gradient(900px 420px at -10% 0%, rgba(11, 143, 216, .08), transparent 55%),
        var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header / footer ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(250, 247, 242, .86);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 68px;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}
.brand-link img { height: 42px; width: auto; border-radius: 8px; }
.brand-link .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding-left: .85rem;
    border-left: 1px solid var(--line-strong);
}
.brand-link .brand-text strong { font-size: .95rem; font-weight: 700; }
.brand-link .brand-text span { font-size: .78rem; color: var(--muted); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .2s, box-shadow .2s;
}
.back-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.back-link svg { width: 16px; height: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 880px; }

main { flex: 1 0 auto; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}
.site-footer a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.site-footer .heart { color: #e11d48; }

/* ---------- Page hero ---------- */
.page-hero { padding: 2.75rem 0 1.75rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}
.page-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: .6rem 0 .6rem;
}
.page-lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1.02rem; }
.hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

/* ---------- Form card & sections ---------- */
.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}
.form-section { padding: 1.75rem 2rem; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.section-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.35rem;
}
.section-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 800;
    font-size: .88rem;
}
.section-head h2 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.section-head p { margin: .15rem 0 0; font-size: .88rem; color: var(--muted); }

.form-actions {
    padding: 1.35rem 2rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.form-actions .note { margin: 0; font-size: .85rem; color: var(--muted); }

.grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .span-2 { grid-column: span 2; }
    .span-all { grid-column: 1 / -1; }
}

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; min-width: 0; }
.form-label {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: .4rem;
}
.req { color: var(--danger); margin-left: 2px; }
.hint { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: .1rem; }
.hint-warn { color: var(--brand-deep); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 46px;
    padding: .7rem .9rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
    -webkit-appearance: none;
}
.form-select {
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 18px;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--subtle); }
.form-input:hover, .form-select:hover { border-color: #c4b9a5; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}
.form-input[readonly] { background: var(--paper); cursor: pointer; }
.form-input.is-invalid, .form-select.is-invalid { border-color: var(--danger); }

.input-icon { position: relative; }
.input-icon .form-input { padding-right: 2.6rem; }
.input-icon svg {
    position: absolute;
    right: .85rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.error-message {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .4rem 0 0;
    font-size: .82rem;
    font-weight: 500;
    color: var(--danger);
}

/* Slot picker trigger */
.slot-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 46px;
    padding: .55rem .6rem .55rem .9rem;
    font: inherit;
    text-align: left;
    color: var(--ink);
    background: var(--paper);
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
}
.slot-trigger:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.slot-trigger .placeholder { color: var(--subtle); }
.slot-trigger .chip {
    padding: .3rem .7rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
}
.slot-trigger.has-value { border-style: solid; background: var(--brand-soft); border-color: #f1c78f; }
.slot-trigger.has-value .value { font-weight: 700; }

/* Rating (segmented 1–5) */
.rating-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rating-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rating-item {
    padding: .85rem .95rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}
.rating-item .rating-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .55rem; }
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.rating-scale label { position: relative; }
.rating-scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rating-scale span {
    display: grid;
    place-items: center;
    height: 36px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    transition: all .15s;
    cursor: pointer;
}
.rating-scale label:hover span { border-color: var(--line-strong); color: var(--ink); }
.rating-scale input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rating-scale input:focus-visible + span { box-shadow: var(--ring); }
.rating-legend { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .72rem; color: var(--subtle); }

/* Choice cards (visitor type, home) */
.choice-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    font: inherit;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: #f1c78f; box-shadow: var(--shadow); }
.choice-card:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--brand); }
.choice-card .ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.choice-card .ico svg { width: 24px; height: 24px; }
.choice-card.tone-sky .ico { background: var(--sky-soft); color: var(--sky); }
.choice-card.tone-ink .ico { background: #eceff5; color: var(--ink); }
.choice-card h3 { margin: 0; font-size: 1.12rem; font-weight: 700; }
.choice-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.choice-card .go {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
}
.choice-card .go svg { width: 16px; height: 16px; transition: transform .2s; }
.choice-card:hover .go svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .75rem 1.5rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .15s, color .15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }
.btn-primary, .submit-btn {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 8px 20px -10px rgba(22, 35, 59, .6);
}
.btn-primary:hover:not(:disabled), .submit-btn:hover:not(:disabled) { background: #0e182b; transform: translateY(-1px); }
.btn-ghost { color: var(--ink-2); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-accent { color: var(--ink); background: var(--brand); }
.btn-accent:hover { background: #f0982b; }
.btn-block { width: 100%; }

.submit-btn { min-width: 240px; }
.submit-btn:disabled { cursor: progress; opacity: .85; }
.submit-btn .spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.submit-btn:disabled .spinner { display: block; }
.submit-btn:disabled .btn-content { visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-size: .9rem;
    border: 1px solid;
    margin-bottom: 1rem;
}
.alert-danger { color: #9a3412; background: var(--danger-soft); border-color: #f7c9b1; }
.alert-success { color: #166042; background: var(--success-soft); border-color: #b5e3cb; }
.alert-info, .alert-primary { color: #075985; background: var(--sky-soft); border-color: #b6def5; }
.alert-warning { color: #8a4b06; background: var(--brand-soft); border-color: #f5d3a3; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 40, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(15, 23, 40, .45);
    animation: pop .22s ease-out;
}
.modal-content.wide { max-width: 860px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem .5rem;
}
.modal-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.modal-head p { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
.modal-body { padding: .75rem 1.5rem 1.5rem; }
.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.icon-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* Slot grid */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot-group-label {
    margin: .9rem 0 .5rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--subtle);
}
.slot-group-label:first-child { margin-top: 0; }
.slot-btn {
    position: relative;
    min-height: 44px;
    padding: .5rem;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.slot-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.slot-btn.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot-btn:disabled {
    cursor: not-allowed;
    color: var(--subtle);
    background: repeating-linear-gradient(-45deg, #f6f3ee, #f6f3ee 6px, #efeae1 6px, #efeae1 12px);
    border-color: var(--line);
    text-decoration: line-through;
}
.slot-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: .3rem .55rem;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    z-index: 5;
}
.slot-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.slot-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .35rem; vertical-align: -1px; border: 1px solid var(--line-strong); }
.slot-legend .l-busy { background: repeating-linear-gradient(-45deg, #f6f3ee, #f6f3ee 3px, #e2dbcf 3px, #e2dbcf 6px); }
.slot-status { font-size: .85rem; color: var(--muted); margin: 0 0 .75rem; }

/* Success modal */
.success-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
}
.success-mark svg { width: 32px; height: 32px; }
.text-center { text-align: center; }

/* Journey steps */
.journey-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .journey-grid { grid-template-columns: repeat(2, 1fr); } }
.journey-step {
    display: flex;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.journey-step::before {
    counter-increment: step;
    content: counter(step);
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: .85rem;
    color: var(--brand-deep);
    background: var(--brand-soft);
}
.journey-step-title { margin: 0; font-size: .95rem; font-weight: 700; }
.journey-step-description { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }

/* Journey pill in hero */
.journey-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem .6rem .6rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
}
.journey-pill:hover { box-shadow: var(--shadow); border-color: #f1c78f; }
.journey-pill .dot {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
}
.journey-pill .dot svg { width: 16px; height: 16px; }

/* ---------- Flatpickr skin ---------- */
.flatpickr-calendar {
    font-family: var(--font-ui) !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 50px -18px rgba(15, 23, 40, .35) !important;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--ink) !important; }
.flatpickr-current-month { font-size: 1rem !important; font-weight: 700; }
.flatpickr-weekday { color: var(--muted) !important; font-weight: 700 !important; }
.flatpickr-day { border-radius: 10px !important; color: var(--ink); font-weight: 500; }
.flatpickr-day:hover { background: var(--brand-soft) !important; border-color: var(--brand-soft) !important; }
.flatpickr-day.today { border-color: var(--brand) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: #fff !important;
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #c9c2b5 !important; background: transparent !important; }
.flatpickr-day.booked-day { color: var(--danger) !important; text-decoration: line-through; }

/* ---------- Home ---------- */
.home-hero { padding: 3.5rem 0 1.5rem; text-align: center; }
.home-hero .page-lead { margin: 0 auto; }
.home-logo { width: 220px; margin: 0 auto 1.4rem; }
.home-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin: 2.5rem 0 3rem;
    padding: 1.25rem;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
}
@media (min-width: 760px) { .home-steps { grid-template-columns: repeat(3, 1fr); } }
.home-step { display: flex; gap: .8rem; align-items: flex-start; }
.home-step b {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: .82rem;
    color: #fff;
    background: var(--ink);
}
.home-step h4 { margin: 0; font-size: .92rem; }
.home-step p { margin: .1rem 0 0; font-size: .84rem; color: var(--muted); }

/* ---------- Login ---------- */
.auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 960px) { .auth-shell { grid-template-columns: 1.05fr 1fr; } }
.auth-aside {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #e8ecf4;
    background:
        radial-gradient(600px 380px at 110% 110%, rgba(245, 165, 68, .35), transparent 60%),
        radial-gradient(500px 320px at -10% -10%, rgba(11, 143, 216, .30), transparent 60%),
        var(--ink);
    overflow: hidden;
}
@media (min-width: 960px) { .auth-aside { display: flex; } }
.auth-aside .logo-tile { display: inline-block; padding: .6rem .8rem; background: #fff; border-radius: 14px; }
.auth-aside .logo-tile img { height: 56px; width: auto; }
.auth-aside h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 .8rem;
    color: #fff;
}
.auth-aside p { margin: 0; max-width: 42ch; color: #b9c3d6; }
.auth-aside ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.auth-aside li { display: flex; gap: .6rem; align-items: center; color: #d5dcea; font-size: .92rem; }
.auth-aside li svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.auth-aside .foot { font-size: .8rem; color: #8d99b2; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .mobile-logo { width: 150px; margin: 0 auto 1.5rem; }
@media (min-width: 960px) { .auth-card .mobile-logo { display: none; } }
.auth-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; margin: 0 0 .3rem; }
.auth-card .sub { margin: 0 0 1.75rem; color: var(--muted); }
.auth-card .field + .field { margin-top: 1.1rem; }
.pw-toggle {
    position: absolute;
    right: .45rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .55rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--paper-2); }

@media (max-width: 719px) {
    .form-section, .form-actions { padding-left: 1.15rem; padding-right: 1.15rem; }
    .submit-btn { width: 100%; }
    .brand-link .brand-text { display: none; }
    .page-hero { padding-top: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
