/* =============================================================================
   tenant-plus-signin.css   (v3 — premium redesign)
   -----------------------------------------------------------------------------
   Self-contained styles for _TenantPlusSignInModal.cshtml. The tp- prefix
   keeps this isolated from .ikh-modal-* (consumer sign-in) and .tp-onboard
   (LandlordRegister) styles.

   Design direction: refined editorial. A two-column shell — a deep brand
   panel on the left (gradient + drifting orbs + monogram + portfolio
   talking points) and a calm form panel on the right (serif display title,
   floating accent inputs, single decisive CTA shadow). Below 720px the
   brand panel collapses and the form panel gets a compact brand tag at
   the top, so mobile still feels intentional rather than truncated.

   Selector contract: every selector and data-attribute the existing
   tenant-plus-signin.js consumes is preserved (.tp-auth-modal-submit,
   .tp-auth-modal-spin, .is-loading, [data-tp-channel].is-active, etc.).
   Old class names that drove the v1 layout (.tp-auth-modal-band,
   .tp-auth-modal-band-beam, .tp-auth-modal-band-dot, .tp-auth-modal-head,
   .tp-auth-modal-hint) are intentionally dropped — the new markup no
   longer renders them, so leaving rules behind would only confuse a
   future reader.
   ============================================================================= */

/* ── Design tokens ─────────────────────────────────────────────────────── */
.tp-auth-modal {
    /* Brand palette — tightened. Original sky #56C4F8 stays as the accent;
       a deeper midnight is added for the brand panel so it reads as
       premium rather than poolside. */
    --tp-blue-50: #EAF6FE;
    --tp-blue-100: #D6EEFC;
    --tp-blue-300: #7CD0FA;
    --tp-blue-500: #56C4F8;
    --tp-blue-600: #2B95CE;
    --tp-blue-700: #1F7DAD;
    --tp-blue-900: #0A2E47;
    --tp-blue-950: #062338;
    --tp-ink: #0F1115;
    --tp-ink-2: #1A1D22;
    --tp-mute: #5B6270;
    --tp-mute-2: #8B919C;
    --tp-line: #E5E7EC;
    --tp-line-2: #EEF0F3;
    --tp-soft: #F7F8FA;
    --tp-danger: #C53030;
    --tp-danger-bg: #FCEEEC;
    /* Typography */
    --tp-font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --tp-font-body: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tp-radius-lg: 22px;
    --tp-radius-md: 12px;
    --tp-radius-sm: 10px;
    --tp-shadow-modal: 0 40px 80px -20px rgba(6, 35, 56, 0.55), 0 12px 32px -8px rgba(15, 17, 21, 0.18);
    --tp-shadow-cta: 0 12px 28px -6px rgba(43, 149, 206, 0.55), 0 2px 6px rgba(43, 149, 206, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    position: fixed;
    inset: 0;
    z-index: 10550; /* one tick above .ikh-modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    font-family: var(--tp-font-body);
    color: var(--tp-ink);
}

    .tp-auth-modal *,
    .tp-auth-modal *::before,
    .tp-auth-modal *::after {
        box-sizing: border-box;
    }

    .tp-auth-modal[hidden] {
        display: none !important;
    }

/* ── Backdrop ──────────────────────────────────────────────────────────── */
.tp-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 30% 20%, rgba(10, 46, 71, 0.55), rgba(6, 17, 25, 0.78));
    backdrop-filter: blur(10px) saturate(115%);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.tp-auth-modal-shell {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    width: min(820px, 100%);
    max-height: calc(100vh - 56px);
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-modal);
    animation: tpAuthIn 0.36s cubic-bezier(0.18, 0.84, 0.30, 1);
}

@keyframes tpAuthIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================================================
   LEFT BRAND PANEL
   ============================================================================= */
.tp-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.92);
    background: radial-gradient(120% 80% at 0% 0%, rgba(86, 196, 248, 0.35), transparent 55%), radial-gradient(80% 60% at 110% 110%, rgba(43, 149, 206, 0.45), transparent 60%), linear-gradient(155deg, var(--tp-blue-900) 0%, var(--tp-blue-950) 55%, #04182B 100%);
    isolation: isolate;
}

/* Subtle grain overlay — keeps the gradient from looking plasticky. */
.tp-auth-brand__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
}

/* Drifting orbs — slow, never aggressive. */
.tp-auth-brand__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.tp-auth-brand__orb--a {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(86, 196, 248, 0.85), transparent 70%);
    top: -60px;
    left: -80px;
    animation: tp-orb-a 18s ease-in-out infinite alternate;
}

.tp-auth-brand__orb--b {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(124, 208, 250, 0.55), transparent 70%);
    bottom: -50px;
    right: -60px;
    animation: tp-orb-b 22s ease-in-out infinite alternate;
}

@keyframes tp-orb-a {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 30px);
    }
}

@keyframes tp-orb-b {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-30px, -20px);
    }
}

/* Faint geometric grid — adds the "OS" feel from the dashboards. */
.tp-auth-brand__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%);
}

/* Brand top — monogram + wordmark */
.tp-auth-brand__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-auth-brand__mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 6px 14px rgba(0, 0, 0, 0.25);
}

.tp-auth-brand__wordmark {
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.005em;
    color: #fff;
}

.tp-auth-brand__plus {
    color: var(--tp-blue-500);
}

/* Brand body */
.tp-auth-brand__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 36px;
}

.tp-auth-brand__eyebrow {
    font-family: var(--tp-font-body);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(124, 208, 250, 0.95);
    margin: 0 0 12px;
}

.tp-auth-brand__heading {
    font-family: var(--tp-font-display);
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 14px;
}

    .tp-auth-brand__heading em {
        font-style: italic;
        font-weight: 400;
        color: var(--tp-blue-300);
    }

.tp-auth-brand__lede {
    margin: 0 0 18px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.tp-auth-brand__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .tp-auth-brand__list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.82);
    }

.tp-auth-brand__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tp-blue-500);
    box-shadow: 0 0 10px rgba(86, 196, 248, 0.8);
    flex-shrink: 0;
}

/* Brand foot — trust signal */
.tp-auth-brand__foot {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.70rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.tp-auth-brand__foot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5BD592;
    box-shadow: 0 0 8px rgba(91, 213, 146, 0.7);
    animation: tp-status-pulse 2.4s ease-in-out infinite;
}

@keyframes tp-status-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* =============================================================================
   RIGHT FORM PANEL
   ============================================================================= */
.tp-auth-panel {
    position: relative;
    padding: 36px 38px 30px;
    overflow-y: auto;
    background: #fff;
}

.tp-auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    appearance: none;
    border: 1px solid var(--tp-line);
    background: #fff;
    color: var(--tp-mute);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.22s ease, border-color 0.18s ease;
    z-index: 2;
}

    .tp-auth-modal-close:hover {
        background: var(--tp-ink);
        color: #fff;
        border-color: var(--tp-ink);
        transform: rotate(90deg);
    }

    .tp-auth-modal-close:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: 2px;
    }

/* Mobile-only compact brand tag (hidden on desktop where the left panel shows). */
.tp-auth-panel__tag {
    display: none;
}

.tp-auth-panel__plus {
    color: var(--tp-blue-500);
    font-style: normal;
}

/* ── Pane (signin / forgot / sent / otp) ───────────────────────────────── */
.tp-auth-pane {
    animation: tp-pane-in 0.28s ease-out;
}

    .tp-auth-pane[hidden] {
        display: none !important;
    }

@keyframes tp-pane-in {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-auth-title {
    font-family: var(--tp-font-display);
    font-weight: 500;
    font-size: 1.85rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--tp-ink);
    margin: 0 0 6px;
}

.tp-auth-sub {
    font-size: 0.88rem;
    color: var(--tp-mute);
    line-height: 1.55;
    margin: 0 0 22px;
}

    .tp-auth-sub strong {
        color: var(--tp-ink);
        font-weight: 600;
    }

/* ── Error banner ──────────────────────────────────────────────────────── */
.tp-auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--tp-danger-bg);
    border: 1px solid rgba(197, 48, 48, 0.18);
    border-left: 3px solid var(--tp-danger);
    border-radius: var(--tp-radius-sm);
    color: #8B1F1F;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

    .tp-auth-error[hidden] {
        display: none !important;
    }

    .tp-auth-error svg {
        flex-shrink: 0;
        color: var(--tp-danger);
    }

/* ── Form ──────────────────────────────────────────────────────────────── */
.tp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tp-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .tp-auth-field[hidden] {
        display: none !important;
    }

.tp-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tp-auth-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--tp-ink-2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tp-auth-link {
    font-size: 0.76rem;
    color: var(--tp-blue-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .tp-auth-link:hover {
        color: var(--tp-blue-700);
        text-decoration: underline;
    }

    .tp-auth-link:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* ── Inputs ────────────────────────────────────────────────────────────── */
.tp-auth-input {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--tp-soft);
    border: 1.5px solid var(--tp-line);
    border-radius: var(--tp-radius-sm);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

    .tp-auth-input:focus-within {
        border-color: var(--tp-blue-500);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(86, 196, 248, 0.15);
    }

.tp-auth-input__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-mute-2);
    padding: 0 6px 0 13px;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.tp-auth-input:focus-within .tp-auth-input__icon {
    color: var(--tp-blue-600);
}

.tp-auth-input input {
    appearance: none;
    border: none;
    outline: none;
    background: transparent;
    flex: 1 1 auto;
    min-width: 0;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--tp-ink);
    padding: 12px 8px;
}

    .tp-auth-input input::placeholder {
        color: var(--tp-mute-2);
    }

/* Password show/hide toggle */
.tp-auth-input__toggle {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--tp-mute-2);
    cursor: pointer;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
}

    .tp-auth-input__toggle:hover {
        color: var(--tp-ink);
    }

    .tp-auth-input__toggle:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: -2px;
        border-radius: 6px;
    }

    .tp-auth-input__toggle .tp-auth-eye-off {
        display: none;
    }

    .tp-auth-input__toggle.is-shown {
        color: var(--tp-blue-600);
    }

        .tp-auth-input__toggle.is-shown .tp-auth-eye-on {
            display: none;
        }

        .tp-auth-input__toggle.is-shown .tp-auth-eye-off {
            display: inline;
        }

/* ── Custom checkbox ──────────────────────────────────────────────────── */
.tp-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 4px;
    cursor: pointer;
    user-select: none;
    font-size: 0.82rem;
    color: var(--tp-mute);
}

    .tp-auth-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.tp-auth-check__box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--tp-line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

    .tp-auth-check__box svg {
        opacity: 0;
        transition: opacity 0.15s ease;
    }

.tp-auth-check input:checked + .tp-auth-check__box {
    background: var(--tp-blue-500);
    border-color: var(--tp-blue-500);
}

    .tp-auth-check input:checked + .tp-auth-check__box svg {
        opacity: 1;
    }

.tp-auth-check input:focus-visible + .tp-auth-check__box {
    box-shadow: 0 0 0 3px rgba(86, 196, 248, 0.25);
}

.tp-auth-check:hover .tp-auth-check__box {
    border-color: var(--tp-blue-500);
}

/* ── Submit button ─────────────────────────────────────────────────────── */
.tp-auth-modal-submit {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: var(--tp-radius-md);
    background: linear-gradient(135deg, var(--tp-blue-500) 0%, var(--tp-blue-600) 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.005em;
    box-shadow: var(--tp-shadow-cta);
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.18s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

    .tp-auth-modal-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px -8px rgba(43, 149, 206, 0.60), 0 4px 10px rgba(43, 149, 206, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.30);
        filter: brightness(1.04);
    }

        .tp-auth-modal-submit:hover .tp-auth-modal-submit__arrow {
            transform: translateX(4px);
        }

    .tp-auth-modal-submit:active {
        transform: translateY(0);
        filter: brightness(0.96);
    }

    .tp-auth-modal-submit:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: 3px;
    }

    .tp-auth-modal-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.tp-auth-modal-submit__arrow {
    transition: transform 0.22s ease;
}

.tp-auth-modal-spin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: tp-auth-spin 0.7s linear infinite;
    display: none;
}

.tp-auth-modal-submit.is-loading .tp-auth-modal-spin {
    display: inline-block;
}

.tp-auth-modal-submit.is-loading .tp-auth-modal-submit-label {
    opacity: 0.88;
}

.tp-auth-modal-submit.is-loading .tp-auth-modal-submit__arrow {
    display: none;
}

@keyframes tp-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Footer link ───────────────────────────────────────────────────────── */
.tp-auth-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--tp-line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--tp-mute);
    flex-wrap: wrap;
}

.tp-auth-foot--center {
    justify-content: center;
    border-top: 0;
    padding-top: 8px;
    margin-top: 12px;
}

.tp-auth-foot a {
    color: var(--tp-blue-600);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, gap 0.18s ease;
}

    .tp-auth-foot a:hover {
        color: var(--tp-blue-700);
        gap: 7px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .tp-auth-foot a:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: 3px;
        border-radius: 4px;
    }

/* =============================================================================
   FORGOT-PASSWORD CHANNEL PICKER
   ============================================================================= */
.tp-auth-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    background: var(--tp-soft);
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius-md);
    margin-bottom: 16px;
}

.tp-auth-channel {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--tp-mute);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .tp-auth-channel:hover {
        color: var(--tp-ink);
    }

    .tp-auth-channel.is-active {
        background: #fff;
        color: var(--tp-blue-600);
        box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06), 0 2px 8px rgba(15, 17, 21, 0.04);
    }

    .tp-auth-channel:focus-visible {
        outline: 2px solid var(--tp-blue-500);
        outline-offset: 2px;
    }

/* =============================================================================
   SENT-CONFIRMATION PANE
   ============================================================================= */
.tp-auth-confirm {
    text-align: center;
    padding: 6px 0 4px;
}

.tp-auth-confirm__icon {
    margin: 6px auto 16px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-blue-600);
    border-radius: 50%;
    background: var(--tp-blue-50);
    box-shadow: 0 0 0 8px rgba(86, 196, 248, 0.10);
}

.tp-auth-confirm__title {
    font-family: var(--tp-font-display);
    font-weight: 500;
    font-size: 1.45rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.tp-auth-confirm__lede {
    font-size: 0.88rem;
    color: var(--tp-mute);
    line-height: 1.55;
    margin: 0 auto 12px;
    max-width: 32ch;
}

/* =============================================================================
   OTP DIGIT INPUTS
   ============================================================================= */
.tp-auth-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 4px 0 10px;
}

    .tp-auth-otp input {
        appearance: none;
        width: 100%;
        aspect-ratio: 1 / 1;
        text-align: center;
        font-family: var(--tp-font-display);
        font-weight: 500;
        font-size: 1.4rem;
        color: var(--tp-ink);
        background: var(--tp-soft);
        border: 1.5px solid var(--tp-line);
        border-radius: var(--tp-radius-sm);
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

        .tp-auth-otp input:focus {
            outline: none;
            border-color: var(--tp-blue-500);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(86, 196, 248, 0.18);
        }

/* =============================================================================
   RESPONSIVE — collapse the brand panel below 720px
   ============================================================================= */
@media (max-width: 720px) {
    .tp-auth-modal {
        padding: 16px 14px;
        align-items: flex-end; /* sheet-style on mobile */
    }

    .tp-auth-modal-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 18px;
    }

    .tp-auth-brand {
        display: none;
    }

    .tp-auth-panel {
        padding: 22px 22px 24px;
    }

    .tp-auth-panel__tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--tp-font-display);
        font-weight: 600;
        font-size: 0.92rem;
        color: var(--tp-blue-900);
        margin: 0 0 16px;
    }

    .tp-auth-panel__tag-mark {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--tp-blue-500), var(--tp-blue-600));
        color: #fff;
        box-shadow: 0 6px 14px -4px rgba(43, 149, 206, 0.45);
    }

    .tp-auth-title {
        font-size: 1.55rem;
    }

    .tp-auth-sub {
        margin-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .tp-auth-otp {
        gap: 6px;
    }

        .tp-auth-otp input {
            font-size: 1.2rem;
        }

    .tp-auth-panel {
        padding: 20px 18px 22px;
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    .tp-auth-modal-shell,
    .tp-auth-brand__orb,
    .tp-auth-brand__foot-dot,
    .tp-auth-modal-spin,
    .tp-auth-pane,
    .tp-auth-modal-submit__arrow {
        animation: none !important;
        transition: none !important;
    }

    .tp-auth-modal-close:hover {
        transform: none;
    }

    .tp-auth-modal-submit:hover {
        transform: none;
    }
}

/* High-contrast mode — keep critical borders visible */
@media (forced-colors: active) {
    .tp-auth-input,
    .tp-auth-otp input,
    .tp-auth-check__box {
        border-color: CanvasText;
    }

    .tp-auth-modal-submit {
        border: 2px solid CanvasText;
    }
}
