/* ============================================================
   LOGIN PAGE — Stellar Theme
   Matches the CoordyCRM landing page aesthetic:
   deep-space navy · indigo/violet accent · glassmorphism card
   ============================================================ */

/* ── Forgot password ── */
.forgot-password-row {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 4px;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.12s;
}
.forgot-password-btn:hover { color: #818cf8; text-decoration: underline; }

/* ── Signup consent checkboxes (terms + marketing opt-in) ── */
.login-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
}
.login-consent-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #6366f1;
    cursor: pointer;
}
.login-consent-row label {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
    cursor: pointer;
}
.login-consent-row label a {
    color: #818cf8;
    text-decoration: underline;
}
.login-consent-row label a:hover { color: #a5b4fc; }
.signup-sms-consent label > span,
.signup-sms-consent label > small {
    display: block;
}
.signup-sms-consent label > span {
    color: #cbd5e1;
    font-weight: 600;
}
.signup-sms-consent label > small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.5;
}
#settingsSmsConsentCard .login-consent-row {
    align-items: flex-start;
}
#settingsSmsConsentCard .login-consent-row input:disabled + label {
    opacity: 0.78;
}

.forgot-password-view {
    text-align: left;
}
.forgot-password-view h3,
.login-two-factor-view h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}
.forgot-password-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}
.forgot-back-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: block;
    transition: color 0.12s;
}
.forgot-back-btn:hover { color: #818cf8; }

.login-two-factor-view {
    text-align: left;
}

.login-two-factor-resend-row {
    margin-top: 12px;
    text-align: center;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Background: deep space + animated orbs ── */
.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: #07070f;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Noise texture overlay — same as landing page */
.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Orb 1 — indigo top-left */
.login-container::after {
    content: '';
    position: absolute;
    top: -180px;
    left: -140px;
    width: 580px;
    height: 580px;
    background: #6366f1;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: orb-drift 20s ease-in-out infinite alternate;
}

@keyframes orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.07); }
}

/* Orb 2 — violet bottom-right (via a wrapper div inserted by JS, or a sibling) */
/* We use a second pseudo on login-box for the bottom-right orb */
.login-box::after {
    content: '';
    position: fixed;
    bottom: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: #8b5cf6;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: orb-drift 24s ease-in-out infinite alternate-reverse;
}

/* ── Brand header above card ── */
.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
}

/* ── Corner logo — top-left of the login page ── */
.login-corner-logo {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s;
}
.login-corner-logo:hover { opacity: 1; }

.login-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}
.login-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.login-brand-name {
    height: 22px;
    width: auto;
    object-fit: contain;
    /* PNG wordmark — filter makes it match the indigo/white palette */
    filter: none;
    display: block;
}

/* ── Card ── */
.login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 44px 40px 40px;
    background: rgba(13, 13, 26, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.10),
        0 24px 64px rgba(0, 0, 0, 0.70),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.safari-legacy .login-box {
    animation: none;
    backdrop-filter: none;
    background: #0d0d1a;
}

.login-staging-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.ops-login-staging .login-staging-banner {
    display: flex;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Heading ── */
h2 {
    margin-bottom: 28px;
    color: #f1f5f9;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* ── Form groups ── */
.form-group {
    margin-bottom: 18px;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.form-hint.error {
    color: #f87171;
}

.form-hint.success {
    color: #4ade80;
}

/* ── Signup invite banner ── */
.signup-invite-banner {
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.10);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.30);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Inputs ── */
input,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: rgba(7, 7, 15, 0.70);
    color: #f1f5f9;
    font-family: inherit;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: #475569;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(10, 10, 22, 0.80);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.login-container select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: rgba(7, 7, 15, 0.70);
    color: #f1f5f9;
    font-family: inherit;
    -webkit-appearance: none;
}

.login-container select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(10, 10, 22, 0.80);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.auth-mode-switch {
    margin-top: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
}

.auth-mode-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #818cf8;
    cursor: pointer;
    font: inherit;
    margin-left: 6px;
    padding: 0;
    text-decoration: underline;
}

.auth-mode-btn:hover {
    color: #c7d2fe;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    border-radius: 4px;
}
.password-toggle:hover { color: #94a3b8; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle-slash { display: block; }
.password-toggle[aria-pressed="true"] circle { display: none; }

/* ── Submit button ── */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 8px;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.40);
    letter-spacing: 0.01em;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.52);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.30);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary / small variants */
.btn-secondary {
    background: rgba(13, 13, 26, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.30);
    color: #a5b4fc;
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
    margin: 0;
    box-shadow: none;
}
.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.82rem;
    width: auto;
    margin: 0 5px 0 0;
}

/* ── Message banner ── */
.message {
    padding: 12px 16px;
    margin-top: 18px;
    border-radius: 10px;
    display: none; /* JS overrides with block or flex depending on error type */
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
    animation: msg-in 0.25s ease-out;
}

/* When JS shows the offline banner it sets display:flex directly */
.message.message-offline { display: flex; }

@keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.message.success {
    background: rgba(74, 222, 128, 0.10);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.30);
}

.message.error {
    background: rgba(239, 68, 68, 0.10);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.30);
}

.message.message-offline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.28);
    line-height: 1.5;
}

.msg-offline-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Loading spinner ── */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* ── Footer link below card ── */
.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    font-size: 0.78rem;
    color: #475569;
    text-align: center;
}
.login-footer a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.15s;
}
.login-footer a:hover { color: #c7d2fe; }

/* ── Locked tenant access screen ── */
.locked-tenant-access {
    text-align: center;
}
.locked-tenant-access h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    line-height: 1.2;
}
.locked-tenant-access p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
}
.locked-tenant-access-btn { margin-top: 28px; }

/* ── Emergency mode screen ── */
.emergency-mode-access {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #07070f;
    color: #f1f5f9;
}
.emergency-mode-access.hidden { display: none; }
.emergency-mode-access-card {
    width: min(100%, 520px);
    text-align: center;
}
.emergency-mode-access h1 {
    margin: 0 0 16px;
    color: #f1f5f9;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
}
.emergency-mode-access p {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.55;
}

/* ── SB-9: subscription-restricted overlay ── */
/* Distinct from .emergency-mode-access: this floats ON TOP of whatever page
   is currently loaded (semi-opaque + blurred backdrop, not a solid page
   swap) since the user's login remains valid — only their tenant's billing
   is the problem. z-index intentionally above every known modal layer in
   the app (.bcc-fsw-overlay uses 999999, the sched-dtp portal panel uses
   1000010) so it can never be hidden behind in-app UI. */
.subscription-restricted-access {
    position: fixed;
    inset: 0;
    z-index: 1000050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 7, 15, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #f1f5f9;
}
.subscription-restricted-access.hidden { display: none; }
.subscription-restricted-access-card {
    width: min(100%, 480px);
    text-align: center;
    background: #0f0f1e;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.subscription-restricted-access-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.subscription-restricted-access[data-status="canceled"] .subscription-restricted-access-badge {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.subscription-restricted-access h1 {
    margin: 0 0 12px;
    color: #f1f5f9;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 800;
}
.subscription-restricted-access-reason {
    margin: 0 0 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
}
.subscription-restricted-access-hint {
    margin: 0 0 24px;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.55;
}
/* SB-11R: returning from the Stripe portal doesn't mean access is restored
   yet (webhook sync hasn't necessarily landed) — this hint is visually
   distinct from the plain grey support hint so it reads as "why you might
   still see this", not as an error. */
.subscription-restricted-access-hint-return {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    font-size: 0.85rem;
    line-height: 1.5;
}
.subscription-restricted-access-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.subscription-restricted-access-portal-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.subscription-restricted-access-portal-cta:empty { display: none; }
.subscription-restricted-access-portal-loading {
    color: #64748b;
    font-size: 0.8rem;
}
.subscription-restricted-access-portal-status {
    color: #f87171;
    font-size: 0.8rem;
    line-height: 1.4;
}
.subscription-restricted-access-portal-status.hidden { display: none; }
.subscription-restricted-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.subscription-restricted-access-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.subscription-restricted-access-secondary {
    padding: 12px 20px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.subscription-restricted-access-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.subscription-restricted-access-signout {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}
.subscription-restricted-access-signout:hover { color: #94a3b8; }

/* ── SB-9: past-due warning banner (non-blocking, platform stays usable) ── */
.billing-warning-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
    color: #1a1400;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
.billing-warning-banner.hidden { display: none; }
.billing-warning-banner-link {
    color: #1a1400;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-box { padding: 36px 24px 32px; }
    h2 { font-size: 1.4rem; }
}

/* ── Brokerage signup wizard (SB-5A) ── */
.signup-wizard-box {
    max-width: 460px;
}

.signup-wizard-subtext {
    margin: -14px 0 22px;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.signup-wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 26px;
}

.signup-wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    opacity: 0.5;
}

.signup-wizard-step-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 700;
}

.signup-wizard-step-label {
    font-size: 0.68rem;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

.signup-wizard-step.is-active {
    opacity: 1;
}

.signup-wizard-step.is-active .signup-wizard-step-index {
    background: #6366f1;
    border-color: #818cf8;
    color: #fff;
}

.signup-wizard-step.is-complete {
    opacity: 0.85;
}

.signup-wizard-step.is-complete .signup-wizard-step-index {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.5);
    color: #4ade80;
}

.signup-wizard-panel h2 {
    margin-bottom: 8px;
}

.signup-wizard-verify-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    font-size: 0.86rem;
}

.signup-wizard-verify-status.is-verified {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.auth-mode-switch-secondary {
    margin-top: 8px;
    opacity: 0.8;
}

.auth-mode-switch-secondary .auth-mode-btn {
    color: #94a3b8;
    text-decoration: underline dotted;
}

.auth-mode-switch-secondary .auth-mode-btn:hover {
    color: #c7d2fe;
}

#signupWizardResendBtn {
    width: 100%;
    margin-bottom: 4px;
}

.field-same-as-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    cursor: pointer;
}

.field-same-as-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #6366f1;
    cursor: pointer;
}

.field-same-as-row span {
    font-size: 0.8rem;
    color: #94a3b8;
}

input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .signup-wizard-step-label { display: none; }
}

/* ── SB-5B: dynamic plan cards ── */
.signup-wizard-plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.signup-wizard-plan-card {
    position: relative;
    text-align: left;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    color: inherit;
    font: inherit;
    appearance: none;
}

.signup-wizard-plan-card:hover {
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(99, 102, 241, 0.06);
}

.signup-wizard-plan-card.is-selected {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.signup-wizard-plan-badge {
    position: absolute;
    top: -9px;
    right: 16px;
    background: #6366f1;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

.signup-wizard-plan-name {
    font-size: 1.04rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.signup-wizard-plan-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.signup-wizard-plan-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c7d2fe;
    margin-bottom: 8px;
}

.signup-wizard-plan-price span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: none;
}

.signup-wizard-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signup-wizard-plan-features li {
    font-size: 0.78rem;
    color: #cbd5e1;
    padding-left: 18px;
    position: relative;
}

.signup-wizard-plan-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}

.signup-wizard-skeleton-card {
    height: 108px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    margin-bottom: 12px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ── Interval toggle ── */
.signup-wizard-interval-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}

.signup-wizard-interval-btn {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.signup-wizard-interval-btn.active {
    background: #6366f1;
    color: #fff;
}

.signup-wizard-price-preview {
    text-align: center;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    font-size: 0.9rem;
    color: #c7d2fe;
}

.signup-wizard-price-preview strong {
    font-size: 1.3rem;
    color: #f1f5f9;
}

/* ── Add-on list ── */
.signup-wizard-addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.signup-wizard-addon-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.signup-wizard-addon-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6366f1;
    cursor: pointer;
}

.signup-wizard-addon-card-body {
    flex: 1;
}

.signup-wizard-addon-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.signup-wizard-addon-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 3px;
    line-height: 1.4;
}

.signup-wizard-addon-price {
    font-size: 0.8rem;
    color: #c7d2fe;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Review summary ── */
.signup-wizard-review-summary {
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.signup-wizard-review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    padding: 7px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.signup-wizard-review-row:last-child {
    border-bottom: none;
}

.signup-wizard-review-row.is-total {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.98rem;
    padding-top: 12px;
}

.signup-wizard-review-note {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.5;
}

.signup-wizard-secure-notice {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 24px;
    line-height: 1.5;
}

@media (min-width:1024px){.login-container{min-height:125vh}}

/* MULTI-TENANT-EMAIL-01: account chooser shown when one set of credentials opens accounts in more than one company. */
.login-account-chooser-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, 0.55); }
.login-account-chooser { width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 24px; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); }
.login-account-chooser h2 { margin: 0 0 8px; font-size: 1.15rem; }
.login-account-chooser p { margin: 0 0 16px; font-size: 0.9rem; color: #475569; }
.login-account-chooser-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.login-account-chooser-option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.login-account-chooser-option:hover, .login-account-chooser-option:focus-visible { border-color: #6d28d9; background: #f5f3ff; outline: 2px solid #6d28d9; outline-offset: 1px; }
.login-account-chooser-option span { font-size: 0.8rem; color: #64748b; }
.login-account-chooser-cancel { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #475569; font: inherit; cursor: pointer; }
.login-account-chooser-cancel:focus-visible { outline: 2px solid #6d28d9; outline-offset: 1px; }
