/* ==========================================================================
   Auth pages - login, password reset, 2FA, business picker, registration
   --------------------------------------------------------------------------
   Loaded by <x-auth.shell> (resources/views/components/auth/shell.blade.php).
   Builds on the modern-theme tokens (--bb-*), so a rebrand of --bb-accent
   recolours these pages too. Auth pages are light-only (see layouts.app).
   Logical properties (inline-start/end) keep it correct in RTL and LTR.
   ========================================================================== */

.auth-shell {
    --auth-radius: 28px;
    --auth-field-h: 50px;
    --auth-brand-deep: color-mix(in srgb, var(--bb-primary), #000 48%);
    --auth-brand-mid: color-mix(in srgb, var(--bb-primary), #000 18%);
    --auth-glow: #fbbf24;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 3rem);
    min-height: calc(100dvh - 64px - 3rem);
    padding: clamp(1rem, 3vw, 2.5rem) clamp(.75rem, 3vw, 2rem);
    background:
        radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--bb-primary) 10%, transparent), transparent 60%),
        radial-gradient(700px 480px at 0% 100%, color-mix(in srgb, var(--auth-glow) 10%, transparent), transparent 60%),
        var(--bb-bg);
    font-family: var(--bb-font-sans);
    color: var(--bb-text-body);
    overflow: hidden;
}

/* ── Frame: form panel + brand panel ─────────────────────────────────────── */
.auth-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 1120px;
    min-height: 620px;
    background: var(--bb-surface);
    border: 1px solid color-mix(in srgb, var(--bb-border) 70%, transparent);
    border-radius: var(--auth-radius);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 12px 32px -12px rgba(15, 23, 42, .14),
        0 40px 80px -32px color-mix(in srgb, var(--bb-primary) 28%, transparent);
    overflow: hidden;
    animation: authRise .5s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-shell--compact .auth-frame {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    min-height: 0;
}
.auth-shell--compact .auth-brand { display: none; }

@keyframes authRise {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

/* ── Brand panel ─────────────────────────────────────────────────────────── */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    color: #fff;
    background:
        radial-gradient(420px 320px at 85% 8%, color-mix(in srgb, var(--auth-glow) 38%, transparent), transparent 70%),
        radial-gradient(520px 420px at 10% 105%, rgba(56, 189, 248, .35), transparent 70%),
        linear-gradient(155deg, var(--auth-brand-mid) 0%, var(--bb-primary) 38%, var(--auth-brand-deep) 100%);
    isolation: isolate;
    overflow: hidden;
}

/* Paw-print texture */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23fff'%3E%3Cg transform='translate(22 26) rotate(-18)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='7.5'/%3E%3Ccircle cx='-9' cy='-2' r='3.6'/%3E%3Ccircle cx='-3' cy='-7' r='3.6'/%3E%3Ccircle cx='4' cy='-7' r='3.6'/%3E%3Ccircle cx='10' cy='-2' r='3.6'/%3E%3C/g%3E%3Cg transform='translate(82 84) rotate(16)'%3E%3Cellipse cx='0' cy='10' rx='9' ry='7.5'/%3E%3Ccircle cx='-9' cy='-2' r='3.6'/%3E%3Ccircle cx='-3' cy='-7' r='3.6'/%3E%3Ccircle cx='4' cy='-7' r='3.6'/%3E%3Ccircle cx='10' cy='-2' r='3.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* Big soft ring */
.auth-brand::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    inset-inline-end: -220px;
    bottom: -240px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .06);
}

.auth-brand-logo {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.auth-brand-body { max-width: 440px; }

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .8rem;
    margin-bottom: 1.25rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--bb-radius-pill);
    backdrop-filter: blur(6px);
}
.auth-brand-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-glow);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-glow) 30%, transparent);
}

.auth-brand-title {
    margin: 0 0 .9rem;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
    text-wrap: balance;
}
.auth-brand-title span {
    background: linear-gradient(90deg, #fde68a, var(--auth-glow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    text-wrap: pretty;
}

.auth-features {
    display: grid;
    gap: .7rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem .9rem;
    font-size: .92rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}
.auth-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    color: var(--bb-primary);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
}

.auth-brand-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
}

/* ── Form panel ──────────────────────────────────────────────────────────── */
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 4vw, 3.25rem);
}

.auth-panel-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.auth-panel-inner--wide { max-width: 460px; }

.auth-icon {
    --tone: var(--bb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
    border-radius: 16px;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--tone) 60%, transparent);
}
.auth-icon--success { --tone: var(--bb-success); }
.auth-icon--warning { --tone: var(--bb-warning); }
.auth-icon--danger  { --tone: var(--bb-danger); }
.auth-icon--info    { --tone: var(--bb-info); }

.auth-title {
    margin: 0 0 .4rem;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--bb-text);
    text-wrap: balance;
}
.auth-subtitle {
    margin: 0 0 1.75rem;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--bb-text-muted);
    text-wrap: pretty;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.auth-form { display: grid; gap: 1.1rem; }

.auth-field { display: grid; gap: .45rem; }

.auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bb-text);
}

.auth-control { position: relative; }

.auth-control > .auth-control-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: var(--bb-text-subtle);
    pointer-events: none;
    transition: color var(--bb-fast) var(--bb-ease);
}
.auth-control:focus-within > .auth-control-icon { color: var(--bb-primary); }

.auth-input {
    display: block;
    width: 100%;
    height: var(--auth-field-h);
    padding-block: 0;
    padding-inline: 2.85rem 1rem;
    font: inherit;
    font-size: .95rem;
    direction: inherit; /* Bootstrap forces tel/email to LTR, which strands the icon padding */
    color: var(--bb-text);
    background: var(--bb-surface-2);
    border: 1.5px solid var(--bb-border);
    border-radius: 12px;
    transition: border-color var(--bb-fast) var(--bb-ease), background-color var(--bb-fast) var(--bb-ease), box-shadow var(--bb-fast) var(--bb-ease);
}
.auth-input::placeholder { color: #94a3b8; opacity: 1; }
.auth-input:hover { border-color: var(--bb-border-strong); }
.auth-input:focus {
    outline: none;
    background: var(--bb-surface);
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bb-primary) 14%, transparent);
}
.auth-input[readonly] {
    color: var(--bb-text-muted);
    background: var(--bb-surface-3);
    cursor: default;
}
.auth-input.is-invalid,
.auth-input[aria-invalid="true"] {
    border-color: var(--bb-danger);
    background: color-mix(in srgb, var(--bb-danger) 4%, var(--bb-surface));
}
.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bb-danger) 14%, transparent);
}
.auth-input--no-icon { padding-inline-start: 1rem; }
.auth-control--toggle .auth-input { padding-inline-end: 3rem; }

.auth-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: .4rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.05rem;
    color: var(--bb-text-subtle);
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    transition: color var(--bb-fast) var(--bb-ease), background-color var(--bb-fast) var(--bb-ease);
}
.auth-toggle:hover { color: var(--bb-primary); background: var(--bb-primary-soft); }

.auth-help { margin: 0; font-size: .8rem; color: var(--bb-text-muted); }
.auth-error { margin: 0; font-size: .8rem; font-weight: 500; color: var(--bb-danger); }

/* One-time code */
.auth-code {
    height: 64px;
    padding: 0 1rem;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: .55em;
    text-indent: .55em;
    text-align: center;
    direction: ltr;
    text-transform: uppercase;
}
.auth-code::placeholder { letter-spacing: .55em; color: #cbd5e1; }

/* Remember-me row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    font-size: .88rem;
    color: var(--bb-text-body);
    cursor: pointer;
    user-select: none;
}
.auth-switch input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    margin: 0;
    background: var(--bb-border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color var(--bb-base) var(--bb-ease);
}
.auth-switch input::after {
    content: '';
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    transition: inset-inline-start var(--bb-base) var(--bb-ease);
}
.auth-switch input:checked { background: var(--bb-primary); }
.auth-switch input:checked::after { inset-inline-start: 21px; }

/* ── Buttons & links ─────────────────────────────────────────────────────── */
.auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    height: 52px;
    padding: 0 1.25rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bb-on-primary);
    text-decoration: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bb-primary), #fff 8%), var(--bb-primary-hover));
    border: 0;
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .25) inset,
        0 10px 22px -10px color-mix(in srgb, var(--bb-primary) 80%, transparent);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform var(--bb-fast) var(--bb-ease), box-shadow var(--bb-base) var(--bb-ease), filter var(--bb-fast) var(--bb-ease);
}
.auth-btn:hover {
    color: var(--bb-on-primary);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .25) inset,
        0 16px 28px -12px color-mix(in srgb, var(--bb-primary) 85%, transparent);
}
.auth-btn:active { transform: translateY(0); filter: brightness(.97); }
.auth-btn:disabled,
.auth-btn[aria-busy="true"] { cursor: progress; filter: saturate(.8); transform: none; }
/* Busy: a spinner replaces the icon (set aria-busy="true" on submit) */
.auth-btn[aria-busy="true"] > .bi { display: none; }
.auth-btn[aria-busy="true"]::before {
    content: '';
    width: 1.1rem;
    height: 1.1rem;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin .7s linear infinite;
}
.auth-btn .bi { font-size: 1.1rem; transition: transform var(--bb-base) var(--bb-ease); }
.auth-btn:hover .bi-arrow-left  { transform: translateX(-3px); }
.auth-btn:hover .bi-arrow-right { transform: translateX(3px); }

.auth-btn--ghost {
    height: 48px;
    font-weight: 600;
    color: var(--bb-text-body);
    background: var(--bb-surface);
    border: 1.5px solid var(--bb-border);
    box-shadow: none;
}
.auth-btn--ghost:hover {
    color: var(--bb-text);
    background: var(--bb-surface-2);
    border-color: var(--bb-border-strong);
    box-shadow: none;
    filter: none;
}

.auth-actions { display: grid; gap: .65rem; margin-top: .35rem; }

.auth-link {
    padding: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--bb-primary);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.auth-link:hover { color: var(--bb-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.auth-link:disabled { color: var(--bb-text-subtle); cursor: not-allowed; text-decoration: none; }
.auth-link--muted { color: var(--bb-text-muted); font-weight: 500; }
.auth-link--danger { color: var(--bb-danger); font-weight: 500; }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.auth-foot {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    font-size: .88rem;
    text-align: center;
    color: var(--bb-text-muted);
    border-top: 1px solid var(--bb-border);
}
.auth-foot p { margin: 0 0 .35rem; }
.auth-foot p:last-child { margin-bottom: 0; }

/* ── Alerts & notes ──────────────────────────────────────────────────────── */
.auth-alert {
    --tone: var(--bb-info);
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 1.25rem;
    padding: .85rem 1rem;
    font-size: .88rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--tone), #000 38%);
    background: color-mix(in srgb, var(--tone) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
    border-radius: 12px;
    animation: authFade .3s ease-out both;
}
.auth-alert > .bi { flex: 0 0 auto; margin-top: .1rem; font-size: 1.05rem; color: var(--tone); }
.auth-alert ul { margin: 0; padding-inline-start: 1rem; }
.auth-alert strong { font-weight: 700; }
.auth-alert--success { --tone: var(--bb-success); }
.auth-alert--warning { --tone: var(--bb-warning); }
.auth-alert--danger  { --tone: var(--bb-danger); }
.auth-alert-dog {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

@keyframes authFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.auth-note {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    font-size: .83rem;
    color: var(--bb-text-muted);
    background: var(--bb-surface-2);
    border: 1px dashed var(--bb-border-strong);
    border-radius: 14px;
}
.auth-note-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .5rem;
    font-size: .83rem;
    font-weight: 700;
    color: var(--bb-text-body);
}
.auth-note ul { margin: 0; padding-inline-start: 1.1rem; }
.auth-note li + li { margin-top: .2rem; }

/* Password rules with live check marks */
.auth-rules {
    display: grid;
    gap: .3rem;
    margin: .15rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    color: var(--bb-text-muted);
}
.auth-rules li { display: flex; align-items: center; gap: .45rem; transition: color var(--bb-fast) var(--bb-ease); }
.auth-rules li::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--bb-border-strong);
    background: var(--bb-surface) center / 10px no-repeat;
    transition: background-color var(--bb-fast) var(--bb-ease), border-color var(--bb-fast) var(--bb-ease);
}
.auth-rules li.is-met { color: var(--bb-success); }
.auth-rules li.is-met::before {
    border-color: var(--bb-success);
    background-color: var(--bb-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

/* Strength meter */
.auth-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: .1rem;
}
.auth-meter span {
    height: 4px;
    background: var(--bb-border);
    border-radius: 999px;
    transition: background-color var(--bb-base) var(--bb-ease);
}
.auth-meter[data-score="1"] span:nth-child(-n+1) { background: var(--bb-danger); }
.auth-meter[data-score="2"] span:nth-child(-n+2) { background: var(--bb-warning); }
.auth-meter[data-score="3"] span:nth-child(-n+3) { background: #65a30d; }
.auth-meter[data-score="4"] span               { background: var(--bb-success); }
.auth-meter-label { min-height: 1.1em; font-size: .75rem; font-weight: 600; color: var(--bb-text-muted); }

/* Countdown bar (unauthenticated reservation) */
.auth-progress {
    height: 6px;
    margin: .75rem 0 0;
    overflow: hidden;
    background: var(--bb-surface-3);
    border-radius: 999px;
}
.auth-progress > div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--bb-primary), color-mix(in srgb, var(--bb-primary), #38bdf8 40%));
    border-radius: inherit;
    transition: width 1s linear;
}

@keyframes authSpin { to { transform: rotate(360deg); } }

/* ── Business picker ─────────────────────────────────────────────────────── */
.business-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.business-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .875rem;
    margin: 0;
    padding: .9rem 1rem;
    background: var(--bb-surface);
    border: 1.5px solid var(--bb-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color var(--bb-fast) var(--bb-ease), background-color var(--bb-fast) var(--bb-ease), box-shadow var(--bb-fast) var(--bb-ease), transform var(--bb-fast) var(--bb-ease);
}
.business-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.business-option:hover {
    border-color: color-mix(in srgb, var(--bb-primary) 45%, var(--bb-border));
    background: var(--bb-surface-2);
    transform: translateY(-1px);
}
.business-option:has(.business-option-input:checked) {
    border-color: var(--bb-primary);
    background: color-mix(in srgb, var(--bb-primary) 6%, #fff);
    box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--bb-primary) 70%, transparent);
}
.business-option:has(.business-option-input:focus-visible) {
    outline: 2px solid var(--bb-primary);
    outline-offset: 2px;
}
.business-option-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    font-size: 1.25rem;
    color: var(--bb-primary);
    background: var(--bb-primary-soft);
    border-radius: 12px;
}
.business-option-logo img { width: 100%; height: 100%; object-fit: cover; }
.business-option-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-inline-end: auto;
}
.business-option-name {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bb-text);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.business-option-meta { font-size: .8rem; color: var(--bb-text-muted); }
.business-option-current {
    flex: 0 0 auto;
    padding: .15rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--bb-primary), #000 30%);
    background: var(--bb-primary-soft-2);
    border-radius: 999px;
}
.business-option-check {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: .85rem;
    color: #fff;
    background: var(--bb-primary);
    border-radius: 999px;
}
.business-option:has(.business-option-input:checked) .business-option-check { display: flex; }

/* ── Guest navbar polish (layouts.app does not carry the guest layout's) ─── */
body:has(.auth-shell) .guest-navbar {
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid var(--bb-border);
    backdrop-filter: saturate(1.4) blur(10px);
}
body:has(.auth-shell) .guest-navbar .container { min-height: 64px; }
body:has(.auth-shell) .guest-navbar .navbar-logo { width: 132px; height: auto; }
body:has(.auth-shell) .guest-navbar .nav-link {
    padding: .5rem .85rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--bb-text-muted);
    border-radius: 8px;
}
body:has(.auth-shell) .guest-navbar .nav-link:hover {
    color: var(--bb-primary);
    background: var(--bb-primary-soft);
}
body:has(.auth-shell) .guest-navbar .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--bb-primary);
    border-radius: 999px;
}
body:has(.auth-shell) .guest-navbar .btn-cta:hover { background: var(--bb-primary-hover); }
body:has(.auth-shell) .hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
body:has(.auth-shell) .hamburger-icon span { display: block; height: 2px; background: var(--bb-text); border-radius: 2px; }
body:has(.auth-shell) .guest-navbar .navbar-toggler { border: 0; box-shadow: none; }

/* ── Focus ───────────────────────────────────────────────────────────────── */
.auth-shell a:focus-visible,
.auth-shell button:focus-visible,
.auth-switch input:focus-visible {
    outline: 2px solid var(--bb-primary);
    outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-frame {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        min-height: 0;
    }
    /* Brand panel shrinks to a banner above the form */
    .auth-brand {
        order: -1;
        gap: 0;
        padding: 1.5rem 1.75rem 1.6rem;
    }
    .auth-brand::after { width: 260px; height: 260px; border-width: 40px; inset-inline-end: -110px; bottom: -150px; }
    .auth-brand-logo { width: 118px; }
    .auth-brand-body { margin-top: 1rem; }
    .auth-brand-eyebrow,
    .auth-brand-text,
    .auth-features,
    .auth-brand-foot { display: none; }
    .auth-brand-title { margin: 0; font-size: 1.3rem; }
}

@media (max-width: 575.98px) {
    .auth-shell {
        --auth-radius: 22px;
        align-items: flex-start;
        padding: .75rem .75rem 1.5rem;
    }
    .auth-panel { padding: 1.5rem 1.25rem 1.75rem; }
    .auth-title { font-size: 1.45rem; }
    .auth-subtitle { margin-bottom: 1.4rem; }
    .auth-code { font-size: 1.45rem; letter-spacing: .4em; text-indent: .4em; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-frame,
    .auth-alert { animation: none; }
    .auth-shell *,
    .auth-shell *::before,
    .auth-shell *::after { transition: none !important; }
    .auth-btn:hover,
    .business-option:hover { transform: none; }
    .auth-btn[aria-busy="true"]::before { animation-duration: 1.6s; }
}
