/*
 * Auth Shell — customer-facing Splash / Welcome / Sign-up / Sign-in app shell.
 * Headerless + footerless, mobile-first (375px), safe-area aware.
 *
 * Color VALUES (--auth-primary, --auth-deep, --auth-ink, --auth-white) are
 * declared per-request in resources/views/bsslms/auth-shell.blade.php from
 * App\Support\Branding so every tenant (any white-label brand) gets its own
 * accent automatically. This file only defines structure/typography that
 * consumes those variables — never hard-code a brand color here.
 *
 * FIGMA PIXEL PASS (2026-07 figma-2026 set1/set2) — reworked to match the
 * Splash / Welcome / 4-step Create Account / Login screens: photo hero band
 * with floating numbered progress pill, icon-prefixed rounded inputs,
 * password eye-toggles, teal info callouts, account-type picker cards.
 *
 * RESPONSIVE CONTRACT: 375-430 mobile portrait is the reference; the same
 * card/hero system scales up through tablet portrait (768) and clamps at a
 * tablet-landscape "app frame" width (~640px) that stays centered with a
 * neutral fill on anything wider (desktop never stretches edge-to-edge).
 */

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

:root {
    --auth-app-max: 640px;
    --auth-frame-bg: #eef3f2;
}

.auth-shell-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--auth-white);
    color: var(--auth-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell-body.is-splash {
    /* Figma splash: full-bleed port photo under a deep-teal wash (55KB webp
       — Bahamas-mobile-data budget), teal as the paint-first fallback. */
    background:
        linear-gradient(rgba(10, 42, 40, 0.82), rgba(10, 42, 40, 0.82)),
        url('/lms-assets/img/bss/splash-bg.webp') center / cover no-repeat,
        var(--auth-deep);
    background-color: var(--auth-deep);
    overscroll-behavior-y: contain;
}

/* Desktop "app frame" — everything beyond tablet-landscape width gets a
   neutral fill instead of the card stretching edge to edge. */
@media (min-width: 900px) {
    .auth-shell-body:not(.is-splash) { background: var(--auth-frame-bg); }
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
}

.auth-shell.has-hero { padding-top: 0; justify-content: flex-start; }

@media (min-width: 900px) {
    .auth-shell:not(.is-splash-shell) { padding-top: max(40px, env(safe-area-inset-top, 0px)); padding-bottom: 40px; }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-white);
    border-radius: 20px;
    padding: 32px 24px;
}

.is-splash .auth-card {
    background: transparent;
    max-width: 480px;
    min-height: calc(100dvh - 56px);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--auth-white);
    cursor: pointer;
}

/* Screens with a hero photo/dark-banner band (login, wizard) — the card
   loses its own top padding/radius so the hero can bleed flush into it. */
.auth-card.has-hero { max-width: var(--auth-app-max); padding: 0 0 28px; overflow: hidden; border-radius: 22px; }
.auth-card.has-hero .auth-card__body { padding: 0 20px; }

@media (min-width: 640px) {
    .auth-shell:not(.is-splash-shell):not(.has-hero) { align-items: flex-start; padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 48px)); }
    .auth-card:not(.has-hero) {
        box-shadow: 0 1px 2px rgba(1, 1, 1, .04), 0 12px 32px rgba(1, 1, 1, .08);
        border: 1px solid rgba(1, 1, 1, .06);
        padding: 40px 36px;
    }
    .is-splash .auth-card { box-shadow: none; border: none; }
    .auth-card.has-hero {
        margin-top: 32px;
        box-shadow: 0 1px 2px rgba(1, 1, 1, .04), 0 20px 48px rgba(1, 1, 1, .1);
        border: 1px solid rgba(1, 1, 1, .06);
    }
    .auth-card.has-hero .auth-card__body { padding: 0 36px; }
}

@media (min-width: 900px) {
    .auth-card.has-hero { margin-top: 40px; margin-bottom: 40px; }
}

/* ---------------------------------------------------------------- */
/* Hero band (photo — login hero, wizard step 1)                     */
/* ---------------------------------------------------------------- */
.auth-hero {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: max(16px, env(safe-area-inset-top, 0px)) 20px 40px;
    color: var(--auth-white);
    overflow: hidden;
}
.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 34, 32, .35) 0%, rgba(6, 34, 32, .15) 45%, rgba(6, 34, 32, .82) 100%);
}
.auth-hero--tall { height: 260px; justify-content: center; padding-bottom: 24px; }
.auth-hero--compact { height: 172px; padding-bottom: 30px; }

.auth-hero__back {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--auth-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(1, 1, 1, .18);
    transition: transform .12s ease;
}
.auth-hero__back:active { transform: scale(.92); }
.auth-hero__back svg { width: 18px; height: 18px; }

.auth-hero__brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-hero__brand img { max-height: 40px; width: auto; display: block; }

/* Dark solid banner variant — wizard steps 2-4 (no photo once the guest is
   mid-flow, matching the Figma steps 2/3/4 header treatment). */
/* [hidden] must win over the component's own `display` below — same
   specificity, so source order alone would let .auth-hero-dark leak
   through when both hero variants are toggled via the `hidden` attribute. */
.auth-hero[hidden],
.auth-hero-dark[hidden] { display: none; }

.auth-hero-dark {
    position: relative;
    background: var(--auth-deep);
    padding: max(20px, env(safe-area-inset-top, 0px)) 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.auth-hero-dark__back {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--auth-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease;
}
.auth-hero-dark__back:hover { background: rgba(255, 255, 255, .2); }
.auth-hero-dark__back:active { transform: scale(.92); }
.auth-hero-dark__back svg { width: 18px; height: 18px; }
.auth-hero-dark img { max-height: 44px; width: auto; display: block; }

/* ---------------------------------------------------------------- */
/* Brand mark                                                        */
/* ---------------------------------------------------------------- */
.auth-header { display: flex; justify-content: center; margin-bottom: 28px; }

.brand-mark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: 2px; }
.brand-mark__logo { max-height: 48px; width: auto; display: block; }
.brand-mark--lg .brand-mark__logo { max-height: 64px; }
.brand-mark__wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.brand-mark__word {
    font-family: "Baloo 2", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .01em;
    color: var(--auth-primary);
}
.brand-mark--lg .brand-mark__word { font-size: 32px; }
.brand-mark--light .brand-mark__word { color: var(--auth-white); }
.brand-mark__sub {
    font-family: "Baloo 2", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--auth-muted, #6b7280);
    margin-top: 2px;
}
.brand-mark--light .brand-mark__sub { color: rgba(255, 255, 255, .72); }

/* ---------------------------------------------------------------- */
/* Headings / copy                                                   */
/* ---------------------------------------------------------------- */
.auth-heading {
    font-family: "Baloo 2", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 5vw, 26px);
    line-height: 1.25;
    margin: 24px 0 8px;
    color: var(--auth-ink);
    text-align: center;
}
.has-hero .auth-heading { margin-top: 22px; }
.auth-subheading {
    font-size: 14px;
    line-height: 1.5;
    color: #5b5b5b;
    margin: 0 0 24px;
    text-align: center;
}

/* ---------------------------------------------------------------- */
/* Alerts                                                            */
/* ---------------------------------------------------------------- */
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; line-height: 1.4; }
.alert--success { background: #e8f5f3; color: #0b6b5f; border: 1px solid #c3e8e2; }
.alert--error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6cb; }

/* ---------------------------------------------------------------- */
/* Form fields                                                       */
/* ---------------------------------------------------------------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #33393a; }
.field input,
.field select,
.field textarea {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #dfe3e4;
    background: var(--auth-white);
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.field textarea { height: auto; min-height: 92px; padding-top: 14px; resize: vertical; line-height: 1.4; }
.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23767676' stroke-width='1.5' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 20%, transparent);
}
.field input::placeholder,
.field textarea::placeholder { color: #a3a8a9; }
.field-error { font-size: 12px; color: #b3261e; }
.field-hint { font-size: 12px; color: #8a8f90; display: flex; justify-content: space-between; gap: 8px; }

/* Icon-prefixed inputs — icon absolutely positioned inside a relative wrap. */
.field-icon-wrap { position: relative; }
.field-icon-wrap .field__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--auth-primary);
    pointer-events: none;
    display: flex;
}
.field-icon-wrap .field__icon svg { width: 100%; height: 100%; }
.field-icon-wrap input,
.field-icon-wrap select,
.field-icon-wrap textarea { padding-left: 46px; }
.field-icon-wrap:has(textarea) .field__icon { top: 16px; transform: none; }

/* Password show/hide toggle */
.field-icon-wrap .field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #9aa0a1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color .15s ease, background .15s ease;
}
.field-icon-wrap .field__toggle:hover { background: #f2f4f4; color: #5b5f60; }
.field-icon-wrap .field__toggle svg { width: 20px; height: 20px; }
.field-icon-wrap .field__toggle .icon-eye-off { display: none; }
.field-icon-wrap .field__toggle.is-visible .icon-eye { display: none; }
.field-icon-wrap .field__toggle.is-visible .icon-eye-off { display: block; }
.field-icon-wrap:has(.field__toggle) input { padding-right: 46px; }

.field-char-count { text-align: right; font-size: 11px; color: #9aa0a1; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 8px; color: #33393a; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--auth-primary); }

.auth-link { color: var(--auth-primary); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: var(--auth-primary);
    color: var(--auth-white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--auth-primary) 65%, transparent);
}
.btn-primary:hover { filter: brightness(0.94); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary:focus-visible { outline: 3px solid color-mix(in srgb, var(--auth-primary) 35%, transparent); outline-offset: 2px; }
.btn-arrow { display: inline-flex; transition: transform .15s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(2px); }
.btn-arrow svg { width: 18px; height: 18px; }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border-radius: 999px;
    border: 1.5px solid #dfe3e4;
    background: var(--auth-white);
    color: var(--auth-ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.btn-secondary:hover { background: #f7f8f8; border-color: var(--auth-primary); }

.btn-plain {
    background: none;
    border: 0;
    color: var(--auth-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
}

.auth-footnote { text-align: center; margin-top: 24px; font-size: 14px; color: #33393a; }
.auth-copyright { text-align: center; margin-top: 18px; font-size: 12px; line-height: 1.6; color: rgba(1, 1, 1, .38); }
.is-splash .auth-copyright { display: none; }
.splash-powered-by { font-size: 12px; letter-spacing: .02em; color: rgba(255, 255, 255, .68); margin: 0; }
.splash-powered-by strong { color: rgba(255, 255, 255, .9); }
.splash-footer-rule { width: 220px; max-width: 70vw; height: 1px; background: rgba(255, 255, 255, .18); margin: 0 0 16px; }

/* ---------------------------------------------------------------- */
/* Account type picker cards (sign-up step 2)                        */
/* ---------------------------------------------------------------- */
.account-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1.5px solid #dfe3e4;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.account-type-card:active { transform: scale(.98); }
.account-type-card.is-selected { border-color: var(--auth-primary); background: color-mix(in srgb, var(--auth-primary) 6%, white); }
.account-type-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.account-type-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--auth-primary) 14%, white);
    color: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.account-type-card__icon svg { width: 28px; height: 28px; }
.account-type-card__title { font-size: 15px; font-weight: 700; color: var(--auth-ink); }
.account-type-card__desc { font-size: 12px; color: #6b7076; line-height: 1.35; }
.account-type-card__radio {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #dfe3e4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease;
}
.account-type-card.is-selected .account-type-card__radio { border-color: var(--auth-primary); }
.account-type-card__radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--auth-primary);
    transform: scale(0);
    transition: transform .15s ease;
}
.account-type-card.is-selected .account-type-card__radio::after { transform: scale(1); }

/* ---------------------------------------------------------------- */
/* Info / callout panels                                             */
/* ---------------------------------------------------------------- */
.info-panel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: color-mix(in srgb, var(--auth-primary) 9%, white);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #33393a;
}
.info-panel__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--auth-primary); margin-top: 1px; }
.info-panel__icon svg { width: 100%; height: 100%; }
.info-panel strong { display: block; margin-bottom: 2px; color: var(--auth-ink); }

.security-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: color-mix(in srgb, var(--auth-primary) 9%, white);
    border-radius: 14px;
    padding: 16px;
    margin-top: 20px;
}
.security-notice__icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--auth-primary); }
.security-notice__icon svg { width: 100%; height: 100%; }
.security-notice strong { display: block; font-size: 13px; color: var(--auth-ink); margin-bottom: 2px; }
.security-notice p { margin: 0; font-size: 12px; color: #5b6062; line-height: 1.5; }

/* ---------------------------------------------------------------- */
/* Sign-up wizard (4 steps)                                          */
/* ---------------------------------------------------------------- */
.wizard-progress {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    background: var(--auth-white);
    border-radius: 20px;
    padding: 16px 14px 14px;
    margin: -34px 16px 0;
    box-shadow: 0 10px 28px -8px rgba(1, 1, 1, .18);
}
@media (min-width: 640px) { .wizard-progress { margin-left: 28px; margin-right: 28px; } }

.wizard-progress__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.wizard-progress__step::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #dfe3e4;
    z-index: -1;
}
.wizard-progress__step:first-child::before { display: none; }
.wizard-progress__step.is-done::before,
.wizard-progress__step.is-active::before { background: var(--auth-primary); }

.wizard-progress__circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--auth-white);
    border: 2px solid #dfe3e4;
    color: #8a9091;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.wizard-progress__circle svg { width: 15px; height: 15px; }
.wizard-progress__step.is-active .wizard-progress__circle { background: var(--auth-primary); border-color: var(--auth-primary); color: var(--auth-white); transform: scale(1.08); }
.wizard-progress__step.is-done .wizard-progress__circle { background: var(--auth-primary); border-color: var(--auth-primary); color: var(--auth-white); }
.wizard-progress__label { font-size: 10.5px; font-weight: 600; color: #9aa0a1; line-height: 1.2; }
.wizard-progress__step.is-active .wizard-progress__label { color: var(--auth-primary); }
.wizard-progress__step.is-done .wizard-progress__label { color: var(--auth-ink); }

.signup-step { display: none; }
.signup-step.is-active { display: block; }

.signup-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.signup-nav .btn-primary { flex: 1; }
.signup-nav .step-back {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid #dfe3e4;
    background: var(--auth-white);
    color: var(--auth-ink);
    cursor: pointer;
    font-size: 18px;
}
.signup-nav .step-back svg { width: 18px; height: 18px; }

.terms-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #33393a; line-height: 1.5; }
.terms-line input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--auth-primary); }

/* No-JS fallback lives entirely in the per-page <noscript><style> block in
   auth-register.blade.php — a bare `noscript ~ .wizard-progress` sibling
   selector was tried here first, but that ALWAYS matches (the <noscript>
   ELEMENT is present in the DOM whether or not its content is "live"; only
   an actual <noscript> descendant rule only ever applies when scripting is
   genuinely off), so it was hiding the progress pill even with JS enabled.
   The `.no-js` class selectors below were dead code too — nothing ever set
   that class. Both removed rather than left as a trap for the next pass. */

/* ---------------------------------------------------------------- */
/* Welcome / Landing                                                 */
/* ---------------------------------------------------------------- */
.welcome-eyebrow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--auth-primary); margin: 0 0 6px; }
.welcome-title { text-align: center; font-family: "Baloo 2", "Montserrat", sans-serif; font-weight: 800; font-size: clamp(26px, 6vw, 32px); color: var(--auth-ink); margin: 0 0 14px; }
.welcome-rule { width: 56px; height: 3px; border-radius: 999px; background: var(--auth-primary); margin: 0 auto 18px; }
.welcome-copy { text-align: center; font-size: 14.5px; line-height: 1.6; color: #565b5c; margin: 0 0 26px; }

.welcome-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 30px; }
@media (max-width: 400px) { .welcome-features { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } }
.welcome-feature { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.welcome-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--auth-primary) 12%, white);
    color: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-feature__icon svg { width: 24px; height: 24px; }
.welcome-feature__title { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--auth-ink); }
.welcome-feature__desc { font-size: 10.5px; color: #8a9091; }

.welcome-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.welcome-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: #6b7076; }
.welcome-secure svg { width: 15px; height: 15px; color: var(--auth-primary); flex-shrink: 0; }

/* ---------------------------------------------------------------- */
/* Success screen                                                    */
/* ---------------------------------------------------------------- */
.success-badge-wrap { position: relative; display: flex; align-items: center; justify-content: center; margin: 8px auto 20px; width: 128px; height: 128px; }
.success-badge {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--auth-primary);
    color: var(--auth-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 16px color-mix(in srgb, var(--auth-primary) 12%, white);
    animation: success-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.success-badge svg { width: 46px; height: 46px; }
.success-confetti { position: absolute; inset: 0; pointer-events: none; }
.success-confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--auth-primary) 45%, white);
    animation: success-confetti .9s ease-out both;
}
.success-confetti span:nth-child(1) { top: 6%; left: 8%; animation-delay: .05s; }
.success-confetti span:nth-child(2) { top: 12%; right: 6%; animation-delay: .12s; width: 6px; height: 6px; border-radius: 999px; }
.success-confetti span:nth-child(3) { bottom: 10%; left: 4%; animation-delay: .18s; }
.success-confetti span:nth-child(4) { bottom: 4%; right: 12%; animation-delay: .08s; width: 6px; height: 6px; border-radius: 999px; }
.success-confetti span:nth-child(5) { top: 46%; left: -2%; animation-delay: .2s; }
.success-confetti span:nth-child(6) { top: 40%; right: -2%; animation-delay: .14s; }

.success-title { text-align: center; font-family: "Baloo 2", "Montserrat", sans-serif; font-weight: 800; font-size: clamp(22px, 5vw, 26px); color: var(--auth-ink); margin: 0 0 8px; }
.success-subtitle { text-align: center; font-size: 14px; line-height: 1.55; color: #565b5c; margin: 0 0 22px; }

.success-list { background: color-mix(in srgb, var(--auth-primary) 8%, white); border-radius: 16px; padding: 4px 16px; margin-bottom: 16px; }
.success-list__row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; }
.success-list__row + .success-list__row { border-top: 1px solid color-mix(in srgb, var(--auth-primary) 16%, white); }
.success-list__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--auth-primary); margin-top: 1px; }
.success-list__icon svg { width: 100%; height: 100%; }
.success-list__title { font-size: 13.5px; font-weight: 700; color: var(--auth-ink); }
.success-list__sub { font-size: 12.5px; color: #6b7076; margin-top: 1px; }
.success-list__label { font-size: 11.5px; color: #9aa0a1; text-transform: uppercase; letter-spacing: .04em; }

.success-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

@keyframes success-pop {
    0% { transform: scale(.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes success-confetti {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(-14px) scale(1); opacity: 0; }
}

/* ---------------------------------------------------------------- */
/* Splash                                                             */
/* ---------------------------------------------------------------- */
.splash-mark { margin-bottom: 22px; animation: splash-pulse 2.6s ease-in-out infinite; }
.splash-divider { width: 48px; height: 2px; background: color-mix(in srgb, var(--auth-white) 40%, transparent); margin: 4px auto 18px; }
.splash-tagline { font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, .88); margin: 0 0 34px; max-width: 320px; font-weight: 500; }
.splash-tagline .is-accent { color: var(--auth-primary); font-weight: 700; }
.splash-progress {
    width: 140px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
    margin-bottom: 12px;
}
.splash-progress span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--auth-primary);
    transition: width .2s linear;
}
.splash-loading-label { font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .68); margin: 0 0 26px; }
.splash-continue {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    padding: 8px 20px;
}
.splash-continue:hover { color: var(--auth-white); border-color: rgba(255, 255, 255, .6); }

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.045); opacity: .92; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-progress span { transition: none; }
    .splash-mark { animation: none; }
    .success-badge { animation: none; }
    .success-confetti span { animation: none; display: none; }
    .btn-primary:hover .btn-arrow { transform: none; }
}
