/* Leader login — /login */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

.login-page--signed-in {
    grid-template-columns: 1fr;
}

.login-right--full {
    min-height: 60vh;
}

/* ── Brand panel ── */
.login-left {
    background: linear-gradient(165deg, #e8954f 0%, #d97316 38%, #b45309 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -50deg,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 24px
    );
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1);
    pointer-events: none;
}

.login-left .ll-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    max-width: 360px;
    width: 100%;
}

.login-brand-logo {
    display: block;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.login-left h1 {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: normal;
    margin: 0 0 10px;
}

.login-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.78;
    margin: 0 0 8px;
}

.login-eyebrow[hidden] {
    display: none !important;
}

.login-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.9;
    margin: 0;
    max-width: 34ch;
}

.login-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-features {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-features[hidden] {
    display: none !important;
}

.login-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    opacity: 0.95;
}

.login-features li i {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-top: 2px;
    flex-shrink: 0;
}

.login-camp-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.login-camp-card .lcc-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--camp-brand-accent, #ff8c33) 85%, white);
    margin-bottom: 6px;
}

.login-camp-card .lcc-date {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.login-camp-card .lcc-venue {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.login-camp-mobile-line {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 4px;
    line-height: 1.35;
}

.login-legal {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
    text-align: left;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.login-legal strong {
    color: rgba(255, 255, 255, 0.55);
}

/* ── Form panel ── */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 400px;
}

.login-form-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.45;
}

.login-form-error.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.login-form-error i {
    flex-shrink: 0;
    margin-top: 1px;
}

.login-field.is-invalid .form-control {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Step indicator */
.login-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}

.login-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.login-step .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s;
}

.login-step.active .step-num {
    background: var(--camp-brand-primary, #ff6b00);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.15);
}

.login-step.done .step-num {
    background: color-mix(in srgb, var(--camp-brand-primary-light, #ff8c33) 22%, white);
    color: var(--camp-brand-primary-dark, #c24100);
}

.login-step.inactive .step-num {
    background: #fde8d8;
    color: #aaa;
}

.login-step .step-label {
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-step.active .step-label { color: var(--camp-brand-primary, #ff6b00); }
.login-step.done .step-label { color: var(--camp-brand-primary-dark, #c24100); }
.login-step.inactive .step-label { color: #bbb; }

.login-step-connector {
    flex: 1 1 auto;
    width: auto;
    min-width: 48px;
    height: 2px;
    background: #fed7aa;
    flex-shrink: 1;
    margin: 0 10px;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    align-self: center;
}

.login-step-connector .connector-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--camp-brand-primary, #ff6b00);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.login-step-connector.filled .connector-fill { width: 100%; }

.login-form-heading {
    margin-bottom: 22px;
}

.login-form-heading h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #1a1d24;
    margin: 0;
    letter-spacing: -0.02em;
}

.login-form-hint {
    display: block;
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    font-weight: 500;
}

.login-context-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 11px 13px;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #0c4a6e;
    line-height: 1.5;
}

.login-context-note[hidden] {
    display: none !important;
}

.login-context-note i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0284c7;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.login-field .form-control {
    background: #fff !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
    color: #1a1d24;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.login-field .form-control:focus {
    border-color: var(--camp-brand-primary, #ff6b00);
    box-shadow: 0 0 0 3px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.12);
    outline: none;
}

.otp-input {
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3em !important;
    text-align: center !important;
    border: 2px solid var(--camp-brand-primary, #ff6b00) !important;
    box-shadow: 0 0 0 4px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1) !important;
    padding: 16px !important;
    color: var(--camp-brand-primary-dark, #c24100) !important;
}

.login-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--camp-brand-primary, #ff6b00) 0%, var(--camp-brand-primary-dark, #c24100) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.login-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c33 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.38);
}

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #c24100;
    text-decoration: none;
    margin-top: 16px;
    font-weight: 600;
    transition: color 0.15s;
}

.login-back:hover { color: var(--camp-brand-primary, #ff6b00); }

.login-register-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8edf2;
    text-align: center;
}

.login-register-cta__label {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--camp-text-muted, #64748b);
}

.login-register-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1.5px solid rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.35);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: var(--camp-brand-primary, #ea580c);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.08);
}

.login-register-cta__btn:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.55);
    color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.14);
}

.login-register-cta__note {
    margin: 12px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--camp-text-muted, #94a3b8);
}

.login-already-card {
    background: #fff;
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 420px;
    width: 100%;
}

.login-already-card .check-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--camp-brand-primary, #ff6b00);
    margin-bottom: 18px;
}

.login-already-card h2 {
    font-weight: 900;
    font-size: 1.4rem;
    color: #9a3412;
    margin-bottom: 8px;
}

.login-already-card p {
    color: #b45309;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.tfa-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.07);
    border: 1px solid rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.18);
    border-radius: 9px;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: #9a3412;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tfa-hint > span {
    flex: 1;
    min-width: 0;
}

.tfa-hint i {
    flex-shrink: 0;
    color: var(--camp-brand-primary, #ff6b00);
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.4;
}

.login-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.login-auth-tab {
    flex: 1;
    border: 1.5px solid #fdba74;
    background: #fff;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
}

.login-auth-tab.active {
    border-color: var(--camp-brand-primary, #ff6b00);
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.08);
    color: var(--camp-brand-primary-dark, #c24100);
}

#tabSetupPasskey.active::after,
#tabPasskey.active::after {
    content: ' · recommended';
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.9;
}

.login-passkey-panel { display: none; }
.login-passkey-panel.active { display: block; }
.login-code-panel.active { display: block; }
.login-code-panel { display: none; }

/* Mobile legal toggle (form area) */
.login-legal-mobile {
    margin-top: 20px;
    border-top: 1px solid #e0e8e0;
    padding-top: 16px;
}

.login-legal-toggle {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d8e2d8;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a6e56;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-legal-toggle i {
    transition: transform 0.2s;
}

.login-legal-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.login-legal-panel {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f0f4f0;
    border-radius: 9px;
    font-size: 0.72rem;
    color: #5a6e56;
    line-height: 1.55;
}

.login-legal-panel[hidden] {
    display: none !important;
}

.login-legal-panel strong {
    color: #3a4e36;
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    .login-page {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }

    .login-left {
        padding: 20px 20px 18px;
        min-height: 0;
        flex-shrink: 0;
        justify-content: flex-start;
    }

    .login-left .ll-inner {
        max-width: none;
    }

    .login-brand-logo {
        width: 40px;
        margin-bottom: 10px;
    }

    .login-left h1 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .login-lead {
        font-size: 0.82rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .login-features {
        gap: 8px;
    }

    .login-features li {
        font-size: 0.78rem;
    }

    .login-legal--desktop {
        display: none !important;
    }

    .login-right {
        padding: 22px 20px 28px;
        flex: 1;
        align-items: flex-start;
    }

    .login-form-wrap {
        max-width: none;
    }

    .login-steps {
        margin-bottom: 20px;
    }

    .login-step .step-label {
        font-size: 0.62rem;
    }

    .login-step-connector {
        min-width: 32px;
        margin: 0 8px;
    }

    .login-form-heading {
        margin-bottom: 20px;
    }

    .login-form-heading h2 {
        font-size: 1.25rem;
    }

    .login-submit {
        margin-top: 16px;
    }

    .login-method-tile {
        min-height: 112px;
        padding: 16px 10px;
        gap: 6px;
    }

    .login-method-tile i {
        font-size: 1.5rem;
    }

    .login-method-tile-title {
        font-size: 0.74rem;
    }

    .login-method-tile-sub {
        font-size: 0.62rem;
    }

    .login-page--signed-in .login-right {
        min-height: calc(100dvh - 52px);
        align-items: center;
    }
}

@media (min-width: 768px) {
    .login-camp-mobile-line,
    .login-legal-mobile {
        display: none !important;
    }
}

/* ── Dark mode ── */
html[data-theme="dark"] .login-page {
    background: var(--camp-bg-muted);
}

html[data-theme="dark"] .login-right {
    background: var(--camp-bg-muted);
}

/* Brand panel — leader portal & camp card */
html[data-theme="dark"] .login-left {
    background:
        radial-gradient(ellipse 85% 70% at 50% 0%, rgba(255, 140, 51, 0.22) 0%, transparent 55%),
        linear-gradient(168deg, #7c2d12 0%, #c24100 35%, #ea580c 70%, #9a3412 100%);
}

html[data-theme="dark"] .login-left::before {
    background-image: repeating-linear-gradient(
        -50deg,
        rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.035) 0px,
        rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.035) 1px,
        transparent 1px,
        transparent 24px
    );
}

html[data-theme="dark"] .login-left::after {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.07);
}

html[data-theme="dark"] .login-left .fdl-ring {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.32);
    box-shadow:
        0 0 0 1px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1),
        0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .login-left h1 {
    color: var(--camp-text);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .login-eyebrow {
    color: color-mix(in srgb, var(--camp-brand-accent, #ffb366) 80%, white);
    opacity: 1;
}

html[data-theme="dark"] .login-lead {
    color: rgba(232, 236, 232, 0.88);
    opacity: 1;
}

html[data-theme="dark"] .login-features li {
    color: rgba(232, 236, 232, 0.92);
}

html[data-theme="dark"] .login-left .ll-sub {
    color: color-mix(in srgb, var(--camp-brand-accent, #ffb366) 65%, transparent);
    opacity: 1;
}

html[data-theme="dark"] .login-camp-mobile-line {
    color: rgba(232, 236, 232, 0.9);
}

html[data-theme="dark"] .login-camp-card {
    background: rgba(18, 14, 12, 0.55);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.28);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .login-camp-card .lcc-label {
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .login-camp-card .lcc-name,
html[data-theme="dark"] .login-camp-card .lcc-date {
    color: var(--camp-text);
}

html[data-theme="dark"] .login-camp-card .lcc-venue {
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-legal {
    color: rgba(156, 170, 160, 0.65);
    border-top-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.18);
}

html[data-theme="dark"] .login-legal strong {
    color: color-mix(in srgb, var(--camp-brand-accent, #c5e6b8) 85%, white);
}

html[data-theme="dark"] .login-form-heading h2,
html[data-theme="dark"] .login-already-card h2 {
    color: var(--camp-text);
}

html[data-theme="dark"] .login-form-hint,
html[data-theme="dark"] .login-field label,
html[data-theme="dark"] .login-back,
html[data-theme="dark"] .login-already-card p {
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-context-note {
    background: rgba(14, 116, 144, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #bae6fd;
}

html[data-theme="dark"] .login-context-note i {
    color: #38bdf8;
}

html[data-theme="dark"] .login-register-cta {
    border-top-color: var(--camp-input-border);
}

html[data-theme="dark"] .login-register-cta__btn {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.12);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.35);
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .login-register-cta__btn:hover {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.2);
    color: #ffd4a8;
}

html[data-theme="dark"] .login-field .form-control,
html[data-theme="dark"] .login-already-card,
html[data-theme="dark"] .otp-input {
    background: var(--camp-input-bg);
    border-color: var(--camp-input-border);
    color: var(--camp-text);
}

html[data-theme="dark"] .login-auth-tab {
    background: var(--camp-input-bg);
    border-color: var(--camp-input-border);
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-auth-tab.active {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.15);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.45);
    color: color-mix(in srgb, var(--camp-brand-accent, #c5e6b8) 90%, white);
}

html[data-theme="dark"] .login-step.inactive .step-label {
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-step.active .step-label {
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .login-step.done .step-num {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.2);
    color: var(--camp-brand-accent, #6ee7b7);
}

html[data-theme="dark"] .login-step.inactive .step-num {
    background: var(--camp-surface-raised);
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-step-connector {
    background: var(--camp-border);
}

html[data-theme="dark"] .tfa-hint {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.1);
    border-color: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.25);
    color: #c5d4c5;
}

html[data-theme="dark"] .login-form-error {
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

html[data-theme="dark"] .login-legal-toggle {
    background: var(--camp-input-bg);
    border-color: var(--camp-input-border);
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-legal-panel {
    background: var(--camp-surface-raised);
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .login-legal-panel strong {
    color: var(--camp-text);
}

html[data-theme="dark"] .login-step.active .step-num {
    background: var(--camp-brand-primary-light, #ff8c33);
    color: var(--camp-hero-from, #100a06);
    box-shadow: 0 0 0 4px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.2);
}

html[data-theme="dark"] .login-step.done .step-label {
    color: var(--camp-brand-accent, #6ee7b7);
}

html[data-theme="dark"] .login-step-connector .connector-fill {
    background: var(--camp-brand-primary-light, #ff8c33);
}

html[data-theme="dark"] .login-field .form-control:focus {
    border-color: var(--camp-brand-primary-light, #ff8c33);
    box-shadow: 0 0 0 3px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.18);
}

html[data-theme="dark"] .login-field.is-invalid .form-control {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

html[data-theme="dark"] .otp-input {
    border-color: var(--camp-brand-primary-light, #ff8c33) !important;
    box-shadow: 0 0 0 4px rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.12) !important;
    color: var(--camp-text) !important;
}

html[data-theme="dark"] .login-back:hover {
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .login-already-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .login-already-card .check-ring {
    background: rgba(var(--camp-hero-glow-rgb, 255, 107, 0), 0.15);
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .tfa-hint strong {
    color: var(--camp-text);
}

html[data-theme="dark"] .tfa-hint i {
    color: var(--camp-brand-accent, #ffb366);
}

html[data-theme="dark"] .login-passkey-panel .text-muted {
    color: var(--camp-text-muted) !important;
}

html[data-theme="dark"] .login-legal-mobile {
    border-top-color: var(--camp-border);
}

html[data-theme="dark"] .login-form-heading p strong,
html[data-theme="dark"] .login-field label strong {
    color: var(--camp-text);
}

/* ── First-login security setup ── */
.tfa-hint--primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e3a8a;
}

.tfa-hint--primary i {
    color: #2563eb;
}

.login-ms-auth-steps {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px;
    padding-left: 1.15rem;
}

.login-ms-auth-steps li {
    margin-bottom: 6px;
}

.login-ms-auth-steps li:last-child {
    margin-bottom: 0;
}

.login-method-choose {
    margin-top: 8px;
}

.login-method-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-method-tiles--single {
    grid-template-columns: 1fr;
}

.login-method-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 128px;
    padding: 20px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-method-tile i {
    font-size: 1.75rem;
    line-height: 1;
}

.login-method-tile-title {
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.login-method-tile-sub {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.92;
}

.login-method-tile--email {
    background: linear-gradient(145deg, #ff8c33 0%, #ff6b00 55%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.28);
}

.login-method-tile--email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.36);
}

.login-method-tile--passkey {
    background: linear-gradient(145deg, #fdba74 0%, #f97316 55%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.28);
}

.login-method-tile--passkey:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.36);
}

.login-method-tile:active {
    transform: translateY(0);
}

.login-method-tile:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.login-method-tile.is-loading {
    pointer-events: none;
}

.login-passkey-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    font-size: 0.76rem;
    color: #0c4a6e;
    line-height: 1.5;
}

.login-passkey-notice i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0284c7;
}

.login-passkey-help {
    margin: 10px 0 0;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.login-passkey-help a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

.login-passkey-help a:hover {
    text-decoration: underline;
}

.login-access-code-input {
    font-size: 1.35rem !important;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.login-access-code-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}

.login-access-code-cell {
    width: 3.25rem;
    height: 3.5rem;
    padding: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.login-field.is-invalid .login-access-code-cell {
    border-color: #dc3545;
}

html[data-theme="dark"] .login-access-code-cell {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.login-access-alt {
    margin: 18px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
    text-align: center;
}

.login-access-link-btn {
    border: none;
    background: none;
    padding: 0;
    color: #ea580c;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.login-access-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.84rem;
    color: #64748b;
}

.login-access-switch-sep { opacity: 0.5; }

.login-camp-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.login-camp-chip--large {
    padding: 18px 20px;
}

.login-camp-chip__code {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: #1a1d24;
    font-variant-numeric: tabular-nums;
}

.login-camp-chip__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.login-camp-billing-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.86rem;
    line-height: 1.5;
}

.login-camp-billing-note i {
    flex-shrink: 0;
    margin-top: 2px;
}

.login-manager-back {
    margin: -6px 0 14px;
}

.login-forgot-wrap {
    margin: -4px 0 16px;
    text-align: right;
}

.login-forgot {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
}

.login-forgot:hover {
    color: var(--camp-brand-primary, #ff6b00);
}

.login-forgot-panel {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.login-forgot-panel p {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
}

.login-forgot-success {
    margin: 12px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c2410c;
    line-height: 1.5;
}

.login-submit--secondary {
    background: #1a1d24;
    margin-top: 4px;
}

.login-submit--secondary:hover:not(:disabled) {
    background: #2d3748;
}

.login-passkey-notice--panel {
    margin-top: 0;
    margin-bottom: 18px;
}

.login-setup-outline-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 2px solid #334155 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    box-shadow: none !important;
    margin-top: 0;
}

.login-setup-outline-btn:hover:not(:disabled) {
    background: #f8fafc !important;
    color: #020617 !important;
    border-color: #0f172a !important;
    transform: translateY(-1px);
}

.login-setup-outline-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-setup-keys {
    margin-bottom: 16px;
}

.login-setup-mobile-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff7ed;
    border: 1.5px solid #fdba74;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 0.76rem;
    color: #9a3412;
    line-height: 1.5;
    margin-bottom: 12px;
}

.login-setup-mobile-note i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

.login-setup-key-panel {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.login-setup-key-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.login-setup-key-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.login-setup-key-value {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    word-break: break-all;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
}

.login-setup-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.login-setup-copy-btn:hover {
    background: #1d4ed8;
}

.login-setup-qr-panel {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.login-setup-qr-panel.is-collapsed-mobile .login-setup-qr-wrap {
    display: none;
}

.login-setup-qr-panel.is-collapsed-mobile .login-setup-qr-label::after {
    content: ' — expand on a second device if needed';
    font-weight: 600;
    color: #94a3b8;
}

.login-setup-qr-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    text-align: center;
}

.login-auth-app-download {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.login-auth-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.login-auth-store-btn:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    color: #0f172a;
}

.login-auth-store-btn > i {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #2563eb;
}

.login-auth-store-btn--android > i {
    color: #ea580c;
}

.login-auth-store-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.login-auth-store-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 1px;
}

.login-submit.login-submit--secondary {
    background: #fff !important;
    color: #c24100 !important;
    border: 1.5px solid #b8ccb4 !important;
    box-shadow: none !important;
}

.login-submit.login-submit--secondary:hover:not(:disabled) {
    background: #fff4eb !important;
    color: #1a3318 !important;
    border-color: #8faa88 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 77, 39, 0.12) !important;
}

html[data-theme="dark"] .login-submit.login-submit--secondary {
    background: var(--camp-surface, #1a2420) !important;
    color: #e8f0e6 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .login-submit.login-submit--secondary:hover:not(:disabled) {
    background: var(--camp-surface-elevated, #243028) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

html[data-theme="dark"] .login-method-tile--email {
    background: linear-gradient(145deg, #ff8c33 0%, #ea580c 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .login-method-tile--email:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .login-method-tile--passkey {
    background: linear-gradient(145deg, #fdba74 0%, #f97316 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .login-method-tile--passkey:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .login-passkey-notice {
    background: rgba(14, 116, 144, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #bae6fd;
}

html[data-theme="dark"] .login-passkey-notice i {
    color: #38bdf8;
}

html[data-theme="dark"] .tfa-hint--primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 64, 175, 0.12) 100%);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

html[data-theme="dark"] .login-ms-auth-steps {
    color: var(--camp-text-muted, #94a3b8);
}

html[data-theme="dark"] .login-setup-outline-btn {
    background: var(--camp-surface, #1a2420) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="dark"] .login-setup-outline-btn:hover:not(:disabled) {
    background: var(--camp-surface-elevated, #243028) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

html[data-theme="dark"] .login-setup-mobile-note {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

html[data-theme="dark"] .login-setup-key-panel,
html[data-theme="dark"] .login-setup-qr-panel {
    background: var(--camp-surface, #1a2420);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .login-setup-key-value {
    background: var(--camp-input-bg, #0f1712);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

html[data-theme="dark"] .login-auth-store-btn {
    background: var(--camp-surface, #1a2420);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--camp-text, #e8f0e6);
}

html[data-theme="dark"] .login-auth-store-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

html[data-theme="dark"] .login-auth-store-sub {
    color: var(--camp-text-muted, #94a3b8);
}

.login-setup-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
}

/* ── Account pending gate (index.php) — matches login page layout ── */
body.account-pending {
    overflow: auto;
}

body.account-pending .site-footer,
body.account-pending #loader {
    display: none !important;
}

.account-pending-page {
    min-height: calc(100vh - 52px);
}

.account-pending-wrap {
    max-width: 420px;
}

.account-pending-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1.5px solid #fed7aa;
}

.account-pending-heading {
    text-align: center;
    margin-bottom: 18px;
}

.account-pending-heading h2 {
    color: #9a3412;
}

.account-pending-lead {
    text-align: center;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.account-pending-whatsapp {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
}

.account-pending-whatsapp-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.account-pending-whatsapp-body {
    flex: 1;
    min-width: 0;
}

.account-pending-whatsapp-title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 0.84rem;
    color: #9a3412;
}

.account-pending-whatsapp-text {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #c2410c;
}

.account-pending-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #25d366;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.account-pending-whatsapp-btn:hover {
    background: #1da851;
    color: #fff;
}

.account-pending-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-pending-feedback-btn {
    width: 100%;
    margin-top: 0;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border: none;
}

.account-pending-feedback-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: #fff;
}

.account-pending-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #d4d9d4;
    color: #c24100;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.account-pending-support:hover {
    background: #fff4eb;
    border-color: #ff6b00;
    color: #c24100;
}

.account-pending-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid #d4d9d4;
    color: #666;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.account-pending-signout:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

html[data-theme="dark"] .account-pending-icon {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

html[data-theme="dark"] .account-pending-heading h2 {
    color: #fdba74;
}

html[data-theme="dark"] .account-pending-lead {
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .account-pending-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.28);
}

html[data-theme="dark"] .account-pending-whatsapp-title {
    color: #6ee7b7;
}

html[data-theme="dark"] .account-pending-whatsapp-text {
    color: #fed7aa;
}

html[data-theme="dark"] .account-pending-support {
    background: var(--camp-surface);
    border-color: var(--camp-border);
    color: var(--camp-text);
}

html[data-theme="dark"] .account-pending-support:hover {
    background: var(--camp-surface-raised);
    border-color: rgba(var(--camp-hero-glow-rgb), 0.35);
}

html[data-theme="dark"] .account-pending-signout {
    border-color: var(--camp-border);
    color: var(--camp-text-muted);
}

html[data-theme="dark"] .account-pending-signout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.login-footer-home {
    margin-top: 28px;
    text-align: center;
}

.login-back--subtle {
    font-size: 0.78rem;
    color: #94a3b8;
}

.login-back--subtle:hover {
    color: #64748b;
}

.login-register-cta {
    margin-top: 24px;
    text-align: center;
}

.login-register-cta__btn--subtle {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
}

.login-register-cta__btn--subtle:hover {
    color: var(--camp-brand-primary, #ea580c);
}

.login-register-cta__note {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
