/**
 * Workspace signup + email verification — FDA register prototype theme.
 * Scoped under .auth-register. Overlay (.register-loading-overlay) may be reparented to body.
 *
 * Typography: DM Sans + DM Mono (loaded from Google Fonts in layout/app.php for register routes).
 */

/* -------------------------------------------------------------------------- */
/* Submit overlay                                                             */
/* -------------------------------------------------------------------------- */

.register-loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(26, 25, 23, 0.48);
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.register-loading-overlay.is-visible {
    display: flex;
    pointer-events: auto;
    cursor: wait;
}

.register-loading-overlay__card {
    width: min(480px, 100%);
    background: #fbf7f0;
    border: 1px solid rgba(61, 58, 52, 0.14);
    border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 22px 60px rgba(26, 25, 23, 0.2), 0 0 0 1px rgba(212, 160, 23, 0.08);
    color: #1a1918;
    text-align: center;
}

.register-loading-overlay__spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 14px;
    border-radius: 999px;
    border: 3px solid rgba(196, 149, 16, 0.2);
    border-top-color: #c49510;
    animation: auth-register-spin 0.85s linear infinite;
}

.register-loading-overlay__title {
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 8px;
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.register-loading-overlay__hint {
    font-size: 0.9rem;
    color: #6b6a65;
    line-height: 1.45;
}

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

@media (prefers-reduced-motion: reduce) {
    .register-loading-overlay__spinner {
        animation: none;
        border-top-color: #c49510;
    }
}

/* -------------------------------------------------------------------------- */
/* Page root + dot grid                                                       */
/* -------------------------------------------------------------------------- */

.auth-register {
    --reg-bg: #f7f5f0;
    --reg-bg2: #efece5;
    --reg-bg3: #e8e4dc;
    --reg-white: #ffffff;
    --reg-text: #1a1918;
    --reg-sub: #6b6a65;
    --reg-faint: #9b9990;
    --reg-border: #dedad2;
    --reg-border-hi: #ccc8be;
    --reg-amber: #c49510;
    --reg-amber-hi: #d4a520;
    --reg-amber-bg: #fef9ec;
    --reg-amber-dim: rgba(196, 149, 16, 0.1);
    --reg-amber-line: rgba(196, 149, 16, 0.25);
    --reg-green: #16a34a;
    --reg-green-bg: #f0fdf4;
    --reg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --reg-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --reg-font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --reg-mono: "DM Mono", ui-monospace, monospace;

    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    font-family: var(--reg-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--reg-text);
    -webkit-font-smoothing: antialiased;
    background: var(--reg-bg);
}

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

.auth-register::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

body:has(.auth-register) {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* -------------------------------------------------------------------------- */
/* Layout grid (signup + verify)                                              */
/* -------------------------------------------------------------------------- */

.register-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
}

.register-page__topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--reg-border);
    background: rgba(247, 245, 240, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Same asset as marketing `lp-brand-logo` (logo-trans-header.png). */
.register-page__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

.register-page__logo-img {
    height: 44px;
    width: auto;
    max-width: min(240px, 52vw);
    display: block;
    object-fit: contain;
    object-position: left center;
}

.register-page__topbar-aside {
    font-size: 13px;
    color: var(--reg-sub);
}

.register-page__topbar-aside a {
    color: var(--reg-amber);
    text-decoration: none;
    font-weight: 600;
}

.register-page__topbar-aside a:hover {
    text-decoration: underline;
}

.register-page__main {
    padding: 56px 52px 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--reg-border);
    min-width: 0;
}

.register-page__main--verify {
    padding-top: 40px;
    padding-bottom: 48px;
}

/* Fill the grid column (same as aside); avoid a narrow max-width on large screens. */
.register-page__main-inner {
    width: 100%;
    min-width: 0;
}

.auth-register--signup .register-page__main-inner {
    opacity: 0;
    transform: translateY(16px);
    animation: register-page-rise 0.5s ease 0.05s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .auth-register--signup .register-page__main-inner {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.register-page__aside {
    padding: 56px 40px 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 0;
}

.auth-register--signup .register-page__aside {
    opacity: 0;
    transform: translateY(16px);
    animation: register-page-rise 0.5s ease 0.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .auth-register--signup .register-page__aside {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@keyframes register-page-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-page__footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--reg-border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-page__footer-copy {
    font-family: var(--reg-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--reg-faint);
}

.register-page__footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.register-page__footer-nav a {
    font-family: var(--reg-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--reg-faint);
    text-decoration: none;
    transition: color 0.15s;
}

.register-page__footer-nav a:hover {
    color: var(--reg-sub);
}

/* -------------------------------------------------------------------------- */
/* Typography blocks                                                          */
/* -------------------------------------------------------------------------- */

.register-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--reg-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--reg-amber);
    margin-bottom: 16px;
}

.register-page__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--reg-amber);
    box-shadow: 0 0 5px var(--reg-amber);
}

@media (prefers-reduced-motion: no-preference) {
    .register-page__eyebrow-dot--pulse {
        animation: register-page-pulse 2.2s ease-in-out infinite;
    }
}

@keyframes register-page-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.register-page__title {
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--reg-text);
    margin: 0 0 8px;
}

.register-page__lede {
    font-size: 14px;
    color: var(--reg-sub);
    line-height: 1.6;
    margin: 0 0 6px;
}

.register-page__lede--tight {
    margin-top: -2px;
    margin-bottom: 12px;
    font-size: 13px;
}

.register-page__lede--compact {
    font-size: 13px;
    margin-bottom: 16px;
}

.register-page__lede em {
    font-style: normal;
    font-weight: 600;
    color: var(--reg-text);
}

.register-page__speed-cue {
    margin: 2px 0 6px;
    padding: 0;
    font-family: var(--reg-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--reg-amber);
    line-height: 1.4;
}

.register-page__pricing-link {
    font-family: var(--reg-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--reg-amber);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
    transition: opacity 0.2s;
}

.register-page__pricing-link:hover {
    opacity: 0.75;
}

/* -------------------------------------------------------------------------- */
/* Marketing aside (shared partial)                                           */
/* -------------------------------------------------------------------------- */

.register-aside__nocard {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--reg-green-bg);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
}

.register-aside__nocard-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.register-aside__nocard-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--reg-green);
    fill: none;
}

.register-aside__nocard-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--reg-green);
}

.register-aside__nocard-sub {
    font-size: 11.5px;
    color: #4d7c5a;
    margin-top: 1px;
    line-height: 1.4;
}

.register-aside__included {
    background: var(--reg-white);
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--reg-shadow-sm);
}

.register-aside__included-title {
    font-family: var(--reg-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--reg-faint);
    margin-bottom: 14px;
}

.register-aside__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.register-aside__feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.register-aside__feature-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--reg-amber-bg);
    border: 1px solid var(--reg-amber-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.register-aside__feature-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--reg-amber);
    fill: none;
}

.register-aside__feature-text {
    font-size: 13px;
    color: var(--reg-text);
    line-height: 1.45;
}

.register-aside__feature-text strong {
    font-weight: 600;
}

.register-aside__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--reg-border);
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    overflow: hidden;
}

.register-aside__stat {
    background: var(--reg-white);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.register-aside__stat-val {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--reg-amber);
    line-height: 1;
}

.register-aside__stat-label {
    font-family: var(--reg-mono);
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--reg-faint);
    line-height: 1.4;
}

.register-aside__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.register-aside__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--reg-bg2);
    border: 1px solid var(--reg-border);
    border-radius: 100px;
    padding: 5px 11px;
    font-family: var(--reg-mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-sub);
}

.register-aside__trust-badge svg {
    width: 11px;
    height: 11px;
    stroke: var(--reg-sub);
    fill: none;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Signup form                                                                */
/* -------------------------------------------------------------------------- */

.auth-register .register-page__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.register-page__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.register-page__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.register-page__field--full {
    margin-bottom: 14px;
}

.register-page__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--reg-text);
    letter-spacing: 0.005em;
}

.auth-register .register-page__input {
    font-family: var(--reg-font);
    font-size: 14px;
    color: var(--reg-text);
    background: var(--reg-white);
    border: 1px solid var(--reg-border);
    border-radius: 7px;
    padding: 10px 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-shadow: var(--reg-shadow-sm);
}

.auth-register .register-page__input::placeholder {
    color: var(--reg-faint);
}

.auth-register .register-page__input:focus {
    border-color: var(--reg-amber);
    box-shadow: 0 0 0 3px var(--reg-amber-dim), var(--reg-shadow-sm);
}

.auth-register .password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-register .password-field .register-page__input {
    padding-right: 48px;
}

.auth-register .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    border: none;
    background: transparent;
    color: var(--reg-faint);
    border-radius: 6px;
    padding: 6px;
    line-height: 0;
    cursor: pointer;
    transition: color 0.15s;
}

.auth-register .password-toggle:hover {
    color: var(--reg-sub);
}

.auth-register .password-toggle:focus-visible {
    outline: 2px solid var(--reg-amber);
    outline-offset: 2px;
}

.register-page__hint {
    font-size: 11.5px;
    color: var(--reg-faint);
    line-height: 1.5;
    margin-top: 2px;
}

.register-page__check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 20px;
}

.register-page__check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--reg-amber);
    cursor: pointer;
    flex-shrink: 0;
}

.register-page__check-label {
    font-size: 12.5px;
    color: var(--reg-sub);
    line-height: 1.5;
}

.register-page__check-label a {
    color: var(--reg-amber);
    text-decoration: none;
    font-weight: 500;
}

.register-page__check-label a:hover {
    text-decoration: underline;
}

.register-page__trust-line {
    margin: 0 0 8px;
    padding: 0;
    font-family: var(--reg-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--reg-faint);
    text-align: center;
    line-height: 1.5;
}

.auth-register .register-page__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4a520 0%, var(--reg-amber) 100%);
    color: #fff;
    font-family: var(--reg-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(196, 149, 16, 0.25);
}

.auth-register .register-page__submit:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(196, 149, 16, 0.32);
}

.auth-register .register-page__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-register .register-page__submit svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .auth-register .register-page__submit:hover:not(:disabled) svg {
        transform: translateX(3px);
    }
}

.register-page__signin {
    text-align: center;
    font-size: 12.5px;
    color: var(--reg-sub);
    margin-top: 16px;
}

.register-page__signin a {
    color: var(--reg-amber);
    text-decoration: none;
    font-weight: 600;
}

.register-page__signin a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Flash + verify shell                                                       */
/* -------------------------------------------------------------------------- */

.auth-register .quote-flash,
.auth-register .flash {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--reg-border);
    background: var(--reg-white);
    color: var(--reg-text);
    box-shadow: var(--reg-shadow-sm);
    margin-bottom: 16px;
}

.auth-register .flash.flash-error {
    border-color: rgba(185, 28, 28, 0.35);
    background: rgba(254, 242, 242, 0.95);
    color: #7f1d1d;
}

.auth-register .flash.flash-success {
    border-color: rgba(22, 101, 52, 0.35);
    background: rgba(240, 253, 244, 0.95);
    color: #14532d;
}

.auth-register__shell {
    background: var(--reg-white);
    border-radius: 12px;
    border: 1px solid var(--reg-border);
    box-shadow: var(--reg-shadow-sm);
    padding: 22px 22px 20px;
    margin-top: 4px;
}

.auth-register__shell label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--reg-text);
}

.auth-register .auth-register__shell input[type="text"],
.auth-register .auth-register__shell input[type="email"],
.auth-register .auth-register__shell input[type="password"] {
    width: 100%;
    margin-top: 0;
    margin-bottom: 14px;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 7px;
    border: 1px solid var(--reg-border);
    background: var(--reg-white);
    color: var(--reg-text);
    font-size: 14px;
    font-family: var(--reg-font);
    box-shadow: var(--reg-shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-register .auth-register__shell input:focus {
    outline: none;
    border-color: var(--reg-amber);
    box-shadow: 0 0 0 3px var(--reg-amber-dim), var(--reg-shadow-sm);
}

.auth-register .auth-register__shell input.auth-register__input-code {
    font-size: 1.35rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 8px;
}

.auth-register .auth-register__shell .btn.btn-primary {
    width: 100%;
    margin-top: 4px;
    min-height: 48px;
    border: none;
    border-radius: 8px;
    font-family: var(--reg-font);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #d4a520 0%, var(--reg-amber) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 149, 16, 0.25);
    transition: filter 0.2s, transform 0.15s;
}

.auth-register .auth-register__shell .btn.btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.auth-register .auth-register__shell .btn.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-register .auth-register__shell .btn.btn-secondary {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: var(--reg-font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: var(--reg-bg2);
    color: var(--reg-text);
    border: 1px solid var(--reg-border);
    transition: background 0.15s, border-color 0.15s;
}

.auth-register .auth-register__shell .btn.btn-secondary:hover:not(:disabled) {
    background: var(--reg-white);
    border-color: var(--reg-border-hi);
}

.auth-register .auth-register__shell .btn.btn-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--reg-amber);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--reg-font);
}

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

.auth-register__code-hint {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--reg-sub);
}

.auth-register__actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
}

.auth-register__hint {
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: var(--reg-sub);
}

.auth-register__hint a {
    color: var(--reg-amber);
    font-weight: 600;
    text-decoration: none;
}

.auth-register__hint a:hover {
    text-decoration: underline;
}

.auth-register__hint--verify {
    margin-top: 18px;
}

.auth-register .password-help,
.auth-register .password-strength,
.auth-register .password-match,
.auth-register .password-caps {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--reg-sub);
}

.auth-register .password-strength strong,
.auth-register .password-match strong {
    font-weight: 600;
}

.auth-register .password-strength.is-weak {
    color: #a16207;
}

.auth-register .password-strength.is-ok {
    color: #0f766e;
}

.auth-register .password-strength.is-strong {
    color: #166534;
}

.auth-register .password-match.is-bad {
    color: #b91c1c;
}

.auth-register .password-match.is-good {
    color: #166534;
}

.auth-register .password-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.auth-register .password-toggle .icon-eye-off {
    display: none;
}

.auth-register .password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.auth-register .password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

#register_form.is-submitting,
#register_verify_form.is-submitting {
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .register-page {
        grid-template-columns: 1fr;
    }

    .register-page__main {
        border-right: none;
        border-bottom: 1px solid var(--reg-border);
        padding: 40px 24px;
    }

    .register-page__aside {
        padding: 36px 24px 48px;
    }

    .register-page__topbar {
        padding: 16px 24px;
    }

    .register-page__footer {
        padding: 14px 24px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .register-page__row {
        grid-template-columns: 1fr;
    }

    .register-aside__stats {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/* Login / 2FA split shell (matches register-page chrome + tokens)            */
/* -------------------------------------------------------------------------- */

.auth-register--split .register-page__main--login {
    padding-top: 48px;
    padding-bottom: 48px;
}

.auth-register--split .login-split-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.auth-register--split .login-split-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 100px;
    background: var(--reg-bg2);
    border: 1px solid var(--reg-border);
    font-family: var(--reg-mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-sub);
}

.auth-register--split .login-split-highlight svg {
    flex-shrink: 0;
    color: var(--reg-amber);
    opacity: 0.9;
}

.auth-register--split .login-split-flash {
    margin-bottom: 16px;
}

.auth-register--split .login-split-form {
    margin-top: 8px;
}

.auth-register--split .login-split-field {
    /* Match .register-page__field--full / row rhythm on signup */
    margin-bottom: 14px;
}

.auth-register--split .login-split-field:last-of-type {
    margin-bottom: 0;
}

.auth-register--split .login-split-field-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--reg-sub);
    line-height: 1.45;
}

.auth-register--split .login-split-meta {
    margin: 14px 0 0;
    font-family: var(--reg-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--reg-faint);
}

.auth-register--split .login-split-workspace-details {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--reg-border) 90%, transparent);
    background: var(--reg-bg2);
}

.auth-register--split .login-split-workspace-details__summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--reg-text);
    list-style: none;
}

.auth-register--split .login-split-workspace-details__summary::-webkit-details-marker {
    display: none;
}

.auth-register--split .login-split-workspace-details__summary small {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 11.5px;
    color: var(--reg-sub);
    line-height: 1.35;
}

.auth-register--split .login-split-workspace-details__body {
    margin-top: 12px;
}

.auth-register--split .login-split-workspace-details__body .login-split-field {
    margin-bottom: 0;
}

.auth-register--split .register-page__submit {
    margin-top: 8px;
}

.auth-register--split .register-page__submit .client-login-submit__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-register--split .register-page__submit .client-login-submit__spinner {
    width: 1em;
    height: 1em;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-right-color: transparent;
    display: none;
    flex-shrink: 0;
    animation: auth-register-spin 0.7s linear infinite;
}

.auth-register--split .register-page__submit.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

.auth-register--split .register-page__submit.is-loading .client-login-submit__spinner {
    display: inline-block;
}

.auth-register--split .login-split-form.is-submitting {
    pointer-events: none;
}

.auth-register--split select.login-split-select,
.auth-register--split .login-split-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%239b9990' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 40px;
}

.auth-register--split .login-split-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
}

.auth-register--split .login-split-check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--reg-amber);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-register--split .login-split-check-label {
    font-size: 12.5px;
    color: var(--reg-sub);
    line-height: 1.5;
    cursor: pointer;
}

.auth-register--split .login-split-resend-form {
    margin-top: 16px;
}

.auth-register--split .login-split-btn-secondary {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: var(--reg-font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: var(--reg-bg2);
    color: var(--reg-text);
    border: 1px solid var(--reg-border);
    transition: background 0.15s, border-color 0.15s;
}

.auth-register--split .login-split-btn-secondary:hover:not(:disabled) {
    background: var(--reg-white);
    border-color: var(--reg-border-hi);
}

.auth-register--split .login-split-btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-register--split .login-split-footnote {
    margin-top: 20px;
}

.register-login-admin-aside {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: var(--reg-white);
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--reg-shadow-sm);
}

.register-login-admin-aside__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
}

.register-login-admin-aside__logo img {
    max-width: 160px;
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

.register-login-admin-aside__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-text);
}

.register-login-admin-aside__sub {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--reg-sub);
}

.register-login-admin-aside__blurb {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--reg-border);
    font-size: 12px;
    color: var(--reg-sub);
    line-height: 1.5;
}

@media (max-width: 860px) {
    .auth-register--split .register-page__aside--login {
        padding-top: 28px;
    }
}

/* PWA standalone auth styles moved to pwa-auth.css */
