/* 1337 Forum / WoWonder 4.3.4 — Unified Dark Cyber/Tech Theme
   Seamless full-viewport design for login and registration. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #080d1a;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #e2e8f0;
}

html[data-site-mode="day"],
html[data-site-mode="day"] body {
    background: #f4f6fa !important;
    color: #0f172a !important;
}

#welcomeheader { display: none !important; }

.content-container.welcome-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.forum-auth {
    --canvas: #080d1a;
    --surface-glass: rgba(13, 22, 41, 0.78);
    --surface-card: #0d172a;
    --surface-input: rgba(11, 19, 36, 0.85);
    --border-subtle: rgba(56, 189, 248, 0.16);
    --border-focus: #38bdf8;
    --ink: #f8fafc;
    --ink-secondary: #94a3b8;
    --ink-muted: #64748b;
    --accent-cyan: #38bdf8;
    --accent-blue: #2563eb;
    --accent-gradient: linear-gradient(135deg, #0284c7, #2563eb);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #080d1a;
    color: var(--ink);
    position: relative;
    overflow-x: hidden;
}

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

/* Ambient cyber background grid & subtle light leaks across the whole canvas */
.forum-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.14), transparent 48%),
                radial-gradient(circle at 82% 65%, rgba(14, 165, 233, 0.09), transparent 52%),
                linear-gradient(rgba(56, 189, 248, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
    pointer-events: none;
    z-index: 0;
}

.forum-auth .fb-login-viewport {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 56fr) minmax(430px, 44fr);
    flex: 1;
    min-height: calc(100svh - 90px);
    position: relative;
    z-index: 1;
}

/* LEFT SECTION: BRAND + HEADLINE + 3D GLOBE */
.forum-auth .fb-left-pane {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 36px clamp(32px, 4vw, 76px) 26px;
    background: transparent !important;
    color: #eff5ff;
}

/* Pure cyber procedural grid & atmospheric backdrop */
.forum-auth .fb-left-pane::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, rgba(8, 13, 26, 0.95) 70%, #080d1a 100%),
                radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px;
    opacity: 0.6;
}

.forum-auth .fb-top-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.forum-auth .fb-brand-anchor {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.forum-auth .fb-brand-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.forum-auth .fb-brand-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.forum-auth .fb-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.forum-auth .fb-brand-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.forum-auth .fb-text-1337 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #f8fafc !important;
}

.forum-auth .fb-text-forum {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.forum-auth .fb-pill-tag { display: none; }

.forum-auth .fb-brand-subline {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* Hero Body */
.forum-auth .fb-hero-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 24px 0 12px;
    margin: 0;
    gap: 0;
    text-align: start;
}

.forum-auth .fb-headline-box {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 760px;
    margin: 0;
}

.forum-auth .auth-eyebrow {
    margin: 0 0 14px;
    font: 600 10px/1.4 Consolas, monospace;
    letter-spacing: 2.2px;
    color: #38bdf8;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-auth .auth-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.forum-auth .fb-headline-box h1 {
    margin: 0 !important;
    font-size: clamp(34px, 3.4vw, 56px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    color: #f8fafc !important;
    text-wrap: balance;
}

.forum-auth .fb-headline-box h1 br { display: block; }

.forum-auth .fb-headline-box h1 .blue-word {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    letter-spacing: 0 !important;
}

.forum-auth .fb-headline-desc {
    margin: 16px 0 0;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.75;
    color: #94a3b8 !important;
}

/* 3D Globe Visual Container */
.forum-auth .fb-earth-wrap {
    width: min(100%, clamp(360px, 48svh, 600px));
    max-width: none;
    flex-shrink: 0;
    margin: -10px auto 0;
}

.forum-auth .fb-earth-scene {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.forum-auth .fb-earth-aura {
    inset: 6%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.08) 50%, transparent 70%);
    filter: blur(20px);
}

/* HUD Telemetry Badges */
@keyframes hudPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #38bdf8; }
    50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 14px #38bdf8; }
}
@keyframes hudPulseEmerald {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #34d399; }
    50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 14px #34d399; }
}

.forum-auth .fb-hud-badge {
    position: absolute;
    z-index: 10;
    display: flex;
    pointer-events: none;
    transition: all 0.3s ease;
}

.forum-auth .fb-hud-badge--community {
    top: 14%;
    right: -14px;
    flex-direction: column;
    align-items: flex-end;
}

.forum-auth .fb-hud-badge--network {
    bottom: 14%;
    left: -14px;
    flex-direction: column;
    align-items: flex-start;
}

.forum-auth .fb-hud-card {
    background: rgba(10, 18, 36, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    padding: 7px 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-auth .fb-hud-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-auth .fb-hud-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: hudPulse 2s infinite ease-in-out;
}

.forum-auth .fb-hud-beacon--emerald {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: hudPulseEmerald 2s infinite ease-in-out;
}

.forum-auth .fb-hud-card-title {
    color: #f0f9ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.forum-auth .fb-hud-card-meta {
    color: #7dd3fc;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    opacity: 0.85;
    padding-left: 12px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.forum-auth .fb-hud-card-meta--emerald {
    color: #6ee7b7;
}

.forum-auth .fb-hud-leader-svg {
    display: block;
    overflow: visible;
}

.forum-auth .fb-hud-badge--community .fb-hud-leader-svg {
    margin-right: 18px;
}

.forum-auth .fb-hud-badge--network .fb-hud-leader-svg {
    margin-left: 18px;
}

.forum-auth .fb-earth-pin { display: none !important; }

.forum-auth .fb-earth-controls,
.forum-auth .fb-earth-toggle,
.forum-auth .fb-earth-hint,
.forum-auth .fb-earth-jump {
    display: none !important;
}

/* Bottom Metadata Note */
.forum-auth .auth-community-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #64748b;
}

.forum-auth .auth-community-note > span {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.forum-auth .auth-community-note p { margin: 0; }

/* RIGHT SECTION: MODERN CYBER CONSOLE FORM */
.forum-auth .fb-right-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 36px clamp(24px, 4vw, 76px);
    background: transparent !important;
    border: 0;
}

.forum-auth .fb-form-box {
    width: 100%;
    max-width: 470px;
    min-width: 0;
    margin: auto 0;
    padding: 36px 34px !important;
    background: rgba(13, 22, 41, 0.78) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 25px rgba(56, 189, 248, 0.06) !important;
}

.forum-auth--register .fb-form-box {
    max-width: 520px;
}

/* Tab Switcher */
.forum-auth .auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 26px;
    background: rgba(9, 14, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 11px;
}

.forum-auth .auth-switch a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 180ms ease;
}

.forum-auth .auth-switch a[aria-current] {
    background: rgba(30, 41, 59, 0.9);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 12px rgba(56, 189, 248, 0.15);
}

.forum-auth .auth-switch a:hover:not([aria-current]) {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}

.forum-auth .fb-form-title {
    margin: 0 0 8px;
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #f8fafc !important;
    text-align: start;
}

.forum-auth .fb-form-subtitle {
    margin: 0 0 24px;
    max-width: 400px;
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    text-align: start;
}

.forum-auth form {
    margin: 0;
    width: 100%;
}

.forum-auth .fb-input-wrapper {
    min-width: 0;
    margin: 0 0 16px;
}

.forum-auth .fb-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #cbd5e1;
    transition: color 180ms ease;
}

.forum-auth .fb-input-wrapper:focus-within .fb-field-label,
.forum-auth .fb-input-wrapper.focused .fb-field-label {
    color: #38bdf8 !important;
}

.forum-auth .fb-input-relative {
    position: relative;
    width: 100%;
}

.forum-auth .fb-input-relative input {
    padding-right: 44px !important;
}

.forum-auth .fb-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    padding: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 160ms ease;
    z-index: 2;
}

.forum-auth .fb-pwd-toggle:hover {
    color: #38bdf8;
}

.forum-auth .fb-input-wrapper input,
.forum-auth .fb-input-wrapper select,
.forum-auth .wow_form_fields input:not([type=checkbox]):not([type=radio]),
.forum-auth .wow_form_fields select,
.forum-auth .wow_form_fields textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(56, 114, 224, 0.28);
    border-radius: 9px;
    padding: 12px 14px;
    background: rgba(11, 19, 36, 0.85) !important;
    color: #f8fafc !important;
    font: 400 14px/1.4 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.forum-auth .fb-input-wrapper input::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.forum-auth .fb-input-wrapper input:focus,
.forum-auth .fb-input-wrapper.focused input,
.forum-auth .wow_form_fields input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 2px 10px rgba(56, 189, 248, 0.1) !important;
    background: rgba(13, 23, 44, 0.95) !important;
}

.forum-auth .fb-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Gender selection cards */
.forum-auth .fb-gender-group { margin: 0 0 16px; }

.forum-auth .fb-gender-header {
    display: flex;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #cbd5e1;
}

.forum-auth .fb-gender-hint, .forum-auth .fb-gender-icon { display: none; }

.forum-auth .fb-gender-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 10px;
}

.forum-auth .fb-gender-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    gap: 8px;
    border: 1px solid rgba(56, 114, 224, 0.25);
    border-radius: 9px;
    background: rgba(11, 19, 36, 0.7);
    transition: background 160ms ease, border-color 160ms ease;
}

.forum-auth .fb-gender-content {
    min-width: 0;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.forum-auth .fb-gender-title { overflow-wrap: anywhere; }

.forum-auth .fb-gender-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.forum-auth .fb-gender-radio-mark {
    width: 17px;
    height: 17px;
    border: 1px solid #64748b;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background: rgba(9, 14, 26, 0.8);
}

.forum-auth .fb-gender-radio-mark::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0;
}

.forum-auth .fb-gender-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

.forum-auth .fb-gender-card:has(input:checked),
.forum-auth .fb-gender-card.active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
}

.forum-auth .fb-gender-card input:checked + .fb-gender-radio-mark {
    border-color: #38bdf8;
}

.forum-auth .fb-gender-card input:checked + .fb-gender-radio-mark::after {
    opacity: 1;
}

/* Terms checkbox */
.forum-auth .fb-terms-wrapper { margin: 4px 0 18px; }

.forum-auth .fb-terms-box {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 10px;
    margin: 0;
    min-height: 44px;
    cursor: pointer;
}

.forum-auth .fb-terms-box input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.forum-auth .fb-custom-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    display: grid;
    place-items: center;
    border: 1px solid #64748b;
    border-radius: 4px;
    background: rgba(9, 14, 26, 0.8);
}

.forum-auth .fb-checkbox-svg {
    width: 12px;
    height: 10px;
    opacity: 0;
}

.forum-auth .fb-terms-box input:checked + .fb-custom-checkbox {
    border-color: #0284c7;
    background: #0284c7;
}

.forum-auth .fb-terms-box input:checked + .fb-custom-checkbox svg {
    opacity: 1;
}

.forum-auth .fb-terms-text {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    color: #94a3b8;
}

.forum-auth .fb-terms-text a {
    color: #38bdf8;
    font-weight: 500;
}

/* Action Buttons */
.forum-auth .btn-fb-submit,
.forum-auth .btn-fb-create-acc {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: 600 14px/1.5 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.forum-auth .btn-fb-submit {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.forum-auth .btn-fb-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

.forum-auth .btn-fb-submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    background: #1e293b;
    box-shadow: none;
    transition: none !important;
}

.forum-auth .btn-fb-create-acc {
    margin-top: 12px;
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(30, 41, 59, 0.4);
    color: #38bdf8;
}

.forum-auth .btn-fb-create-acc:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.forum-auth .btn-fb-submit.btn-loading {
    color: transparent;
    pointer-events: none;
}

.forum-auth .btn-fb-submit.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

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

.forum-auth .fb-forgot-link-box {
    margin: 6px 0;
    text-align: center;
}

.forum-auth .fb-forgot-link-box a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
}

.forum-auth .fb-forgot-link-box a:hover {
    color: #38bdf8;
}

.forum-auth .fb-switch-subtext {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.forum-auth .fb-switch-subtext a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 140ms ease;
}

.forum-auth .fb-switch-subtext a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.forum-auth .fb-footer-tg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38bdf8 !important;
    font-weight: 600;
    transition: all 140ms ease;
}

.forum-auth .fb-footer-tg:hover {
    color: #7dd3fc !important;
}

/* Alerts */
.forum-auth .alert:empty { display: none; }
.forum-auth .alert:not(:empty) {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.forum-auth .alert-danger {
    background: rgba(157, 38, 60, 0.2);
    border: 1px solid rgba(242, 202, 202, 0.25);
    color: #fca5a5;
}
.forum-auth .alert-success {
    background: rgba(25, 97, 71, 0.2);
    border: 1px solid rgba(177, 217, 203, 0.25);
    color: #86efac;
}

/* Founder Badge */
.forum-auth .fb-meta-footer-tag {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-auth .fb-founder-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    gap: 8px;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9999px;
    padding: 4px 14px;
    color: #94a3b8;
    transition: all 160ms ease;
}

.forum-auth .fb-founder-chip:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.4);
}

.forum-auth .fb-chip-tg-icon svg { width: 18px; height: 18px; }

.forum-auth .fb-chip-label {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
}

.forum-auth .fb-chip-handle {
    font-weight: 600;
    color: #38bdf8;
}

.forum-auth .fb-chip-badge { display: none; }

/* GLOBAL FOOTER BAR */
.forum-auth .fb-global-footer {
    flex: 0 0 auto;
    padding: 14px clamp(24px, 4vw, 78px);
    background: rgba(7, 11, 20, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

.forum-auth .fb-lang-row, .forum-auth .fb-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    font-size: 11px;
    color: #64748b;
    margin: 0;
    padding: 0;
    border: 0;
}

.forum-auth .fb-lang-row a,
.forum-auth .fb-lang-row .active-lang,
.forum-auth .fb-links-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #64748b;
    text-decoration: none;
    transition: color 140ms ease;
}

.forum-auth .fb-lang-row .active-lang {
    color: #38bdf8;
    font-weight: 700;
}

.forum-auth .fb-global-footer a:hover {
    color: #38bdf8;
}

.forum-auth .fb-more-lang-btn {
    min-width: 28px;
    justify-content: center;
    color: #64748b;
}

.forum-auth a:focus-visible,
.forum-auth button:focus-visible,
.forum-auth .fb-gender-card:focus-within,
.forum-auth .fb-terms-box:focus-within .fb-custom-checkbox {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 2px;
}

/* Register page adjustments */
.forum-auth--register .auth-switch { margin-bottom: 20px; }
.forum-auth--register .fb-form-subtitle { margin-bottom: 18px; }
.forum-auth--register .fb-input-wrapper { margin-bottom: 12px; }
.forum-auth--register .fb-meta-footer-tag { margin-top: 16px; padding-top: 12px; }
.forum-auth--register .fb-gender-group { margin-bottom: 12px; }
.forum-auth--register .fb-terms-wrapper { margin-bottom: 14px; }
.forum-auth--register .btn-fb-create-acc {
    border-color: transparent;
    min-height: 42px;
    margin-top: 6px;
    padding: 8px 12px;
}

/* RESPONSIVE LAYOUT */
@media (min-width: 1600px) {
    .forum-auth .fb-right-pane { padding-inline: clamp(76px, 7vw, 140px); }
    .forum-auth .fb-earth-wrap { margin-top: -30px; margin-right: 2%; }
    .forum-auth .fb-headline-desc { max-width: 480px; }
}

@media (min-width: 1000px) and (max-height: 950px) {
    .forum-auth .fb-left-pane { padding-top: 24px; padding-bottom: 20px; }
    .forum-auth .fb-hero-body { padding: 18px 0 10px; }
    .forum-auth .fb-headline-box h1 { font-size: clamp(34px, 3vw, 48px) !important; }
    .forum-auth .auth-eyebrow { margin-bottom: 10px; }
    .forum-auth .fb-headline-desc { margin-top: 10px; font-size: 13px; }
    .forum-auth .fb-earth-wrap { width: min(100%, calc(46svh + 1px)); margin-top: -10px; }
    .forum-auth .fb-right-pane { padding-top: 20px; padding-bottom: 20px; }
    .forum-auth .fb-form-box { padding: 28px 26px !important; }
    .forum-auth .auth-switch { margin-bottom: 20px; }
    .forum-auth .fb-form-subtitle { margin-bottom: 16px; }
    .forum-auth--register .fb-input-wrapper { margin-bottom: 11px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .forum-auth .fb-login-viewport { grid-template-columns: minmax(0, 1fr) minmax(400px, 52%); }
    .forum-auth .fb-left-pane { padding: 28px 20px 22px; }
    .forum-auth .fb-right-pane { padding: 24px 16px; }
    .forum-auth .fb-form-box { padding: 24px 20px !important; }
    .forum-auth .fb-headline-box h1 { font-size: 34px !important; letter-spacing: -1.6px !important; }
    .forum-auth .fb-headline-desc { font-size: 13px; }
    .forum-auth .fb-earth-wrap { width: 100%; }
    .forum-auth .fb-input-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .forum-auth .fb-form-title { font-size: 26px; }
    .forum-auth .fb-brand-subline { font-size: 10px; }
    .forum-auth .fb-brand-symbol { width: 38px; height: 38px; }
    .forum-auth .fb-text-1337, .forum-auth .fb-text-forum { font-size: 22px; }
}

@media (max-width: 767px) {
    .forum-auth .fb-login-viewport {
        display: flex !important;
        flex-direction: column;
        min-height: auto;
        padding: 0 !important;
    }
    .forum-auth .fb-left-pane {
        width: 100%;
        max-width: none !important;
        padding: 22px 20px !important;
    }
    .forum-auth .fb-hero-body,
    .forum-auth .auth-community-note {
        display: none !important;
    }
    .forum-auth .fb-right-pane {
        width: 100%;
        max-width: none !important;
        padding: 20px 16px 32px !important;
    }
    .forum-auth .fb-form-box {
        max-width: 460px;
        margin: 0 auto;
        padding: 26px 20px !important;
    }
    .forum-auth .fb-form-title { font-size: 24px; letter-spacing: -0.8px; }
    .forum-auth .fb-form-subtitle { margin-bottom: 16px; font-size: 12px; }
    .forum-auth .auth-switch { margin-bottom: 18px; }
    .forum-auth .auth-switch a { min-height: 42px; }
    .forum-auth .fb-input-wrapper input { font-size: 15px; height: 46px; }
    .forum-auth .fb-input-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .forum-auth .fb-meta-footer-tag { margin-top: 18px; }
    .forum-auth .fb-global-footer { padding: 14px 20px; }
    .forum-auth .fb-lang-row, .forum-auth .fb-links-row { gap: 0 14px; font-size: 10px; }
}

@media (max-width: 380px) {
    .forum-auth .fb-left-pane { padding: 16px 14px !important; }
    .forum-auth .fb-right-pane { padding: 16px 12px !important; }
    .forum-auth .fb-form-box { padding: 20px 14px !important; }
    .forum-auth .fb-form-title { font-size: 22px; }
    .forum-auth .auth-switch { margin-bottom: 12px; }
    .forum-auth .fb-form-subtitle { margin-bottom: 12px; font-size: 12px; }
    .forum-auth .fb-brand-subline { display: none; }
    .forum-auth .fb-brand-symbol { width: 34px; height: 34px; }
    .forum-auth .fb-text-1337, .forum-auth .fb-text-forum { font-size: 20px; }
    .forum-auth .fb-gender-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .forum-auth *, .forum-auth *::before, .forum-auth *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Floating Cookie Notice: Sleek Dark Glass Card (Left Corner) */
body:has(.forum-auth) .cc-window.cc-floating {
    left: 24px !important;
    right: auto !important;
    bottom: 64px !important;
    width: min(340px, calc(100vw - 48px)) !important;
    max-width: none !important;
    padding: 16px 18px !important;
    background: rgba(13, 22, 41, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 15px rgba(56, 189, 248, 0.1);
}
body:has(.forum-auth) .cc-window.cc-invisible { display: none !important; }
body:has(.forum-auth) .cc-window .cc-message {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #cbd5e1;
}
body:has(.forum-auth) .cc-window .cc-compliance { display: flex; gap: 8px; }
body:has(.forum-auth) .cc-window .cc-btn {
    min-height: 38px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #0284c7 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 160ms ease;
}
body:has(.forum-auth) .cc-window .cc-btn:hover {
    background: #0ea5e9 !important;
}

@media (max-width: 480px) {
    body:has(.forum-auth) .cc-window.cc-floating {
        right: 12px !important;
        bottom: 12px !important;
        width: calc(100vw - 24px) !important;
    }
}

/* ==========================================================================
   macOS LIGHT MODE OVERRIDES FOR AUTH PAGES
   ========================================================================== */
html[data-site-mode="day"] .forum-auth {
    background: #f4f6fa !important;
    color: #0f172a !important;
}

html[data-site-mode="day"] .forum-auth::before {
    background: radial-gradient(circle at 10% 10%, rgba(0, 122, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
                radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 36px 36px !important;
}

html[data-site-mode="day"] .forum-auth .fb-left-pane::after {
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.03) 0%, rgba(240, 243, 248, 0.95) 70%, #f4f6fa 100%),
                radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 36px 36px !important;
    opacity: 0.8 !important;
}

html[data-site-mode="day"] .forum-auth .fb-text-1337 {
    color: #0f172a !important;
}

html[data-site-mode="day"] .forum-auth .fb-text-forum {
    color: #007aff !important;
    text-shadow: 0 0 16px rgba(0, 122, 255, 0.25) !important;
}

html[data-site-mode="day"] .forum-auth .fb-brand-subline {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .auth-eyebrow {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.08) !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
}

html[data-site-mode="day"] .forum-auth .fb-headline-box h1 {
    color: #0f172a !important;
}

html[data-site-mode="day"] .forum-auth .fb-headline-box h1 .blue-word {
    background: linear-gradient(135deg, #007aff 0%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-site-mode="day"] .forum-auth .fb-headline-desc {
    color: #475569 !important;
}

html[data-site-mode="day"] .forum-auth .fb-form-box {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html[data-site-mode="day"] .forum-auth .auth-switch {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-site-mode="day"] .forum-auth .auth-switch a {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .auth-switch a[aria-current] {
    background: #ffffff !important;
    color: #007aff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html[data-site-mode="day"] .forum-auth .fb-form-title {
    color: #0f172a !important;
}

html[data-site-mode="day"] .forum-auth .fb-form-subtitle {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-field-label {
    color: #334155 !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper:focus-within .fb-field-label,
html[data-site-mode="day"] .forum-auth .fb-input-wrapper.focused .fb-field-label {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper input,
html[data-site-mode="day"] .forum-auth .fb-input-wrapper select,
html[data-site-mode="day"] .forum-auth .wow_form_fields input:not([type=checkbox]):not([type=radio]),
html[data-site-mode="day"] .forum-auth .wow_form_fields select,
html[data-site-mode="day"] .forum-auth .wow_form_fields textarea {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper input::placeholder {
    color: #94a3b8 !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper input:focus,
html[data-site-mode="day"] .forum-auth .fb-input-wrapper.focused input,
html[data-site-mode="day"] .forum-auth .wow_form_fields input:focus {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.22) !important;
}

html[data-site-mode="day"] .forum-auth .btn-fb-submit {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%) !important;
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.3) !important;
}

html[data-site-mode="day"] .forum-auth .btn-fb-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a8aff 0%, #0066d6 100%) !important;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4) !important;
}

html[data-site-mode="day"] .forum-auth .fb-pwd-toggle {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-pwd-toggle:hover {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-terms-text {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-terms-text a {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-forgot-link-box a {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-switch-subtext {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-switch-subtext a {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-gender-card {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-site-mode="day"] .forum-auth .fb-gender-card.active {
    background: rgba(0, 122, 255, 0.08) !important;
    border-color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-gender-content {
    color: #1e293b !important;
}

html[data-site-mode="day"] .forum-auth .auth-eyebrow {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.08) !important;
    border: 1px solid rgba(0, 122, 255, 0.25) !important;
    font-weight: 700 !important;
}

html[data-site-mode="day"] .forum-auth .fb-brand-subline {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* Globe HUD Telemetry Badges in Light Mode */
html[data-site-mode="day"] .forum-auth .fb-hud-card {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(0, 122, 255, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-site-mode="day"] .forum-auth .fb-hud-card-title {
    color: #0f172a !important;
}

html[data-site-mode="day"] .forum-auth .fb-hud-card-meta {
    color: #0284c7 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

html[data-site-mode="day"] .forum-auth .fb-hud-card-meta--emerald {
    color: #059669 !important;
}

html[data-site-mode="day"] .forum-auth .fb-hud-leader-svg path {
    stroke: rgba(0, 122, 255, 0.5) !important;
}

html[data-site-mode="day"] .forum-auth .fb-hud-leader-svg circle:first-of-type {
    fill: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-hud-leader-svg circle:last-of-type {
    stroke: #007aff !important;
}

/* Left Pane Divider and Note in Light Mode */
html[data-site-mode="day"] .forum-auth .auth-community-note {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-site-mode="day"] .forum-auth .auth-community-topics {
    color: #007aff !important;
    font-weight: 600 !important;
}

html[data-site-mode="day"] .forum-auth .auth-community-note span {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .auth-community-note a {
    color: #007aff !important;
}

/* Global Footer in Light Mode */
html[data-site-mode="day"] .forum-auth .fb-global-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html[data-site-mode="day"] .forum-auth .fb-lang-row,
html[data-site-mode="day"] .forum-auth .fb-links-row {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-lang-row a,
html[data-site-mode="day"] .forum-auth .fb-links-row a,
html[data-site-mode="day"] .forum-auth .fb-links-row span {
    color: #64748b !important;
}

html[data-site-mode="day"] .forum-auth .fb-lang-row .active-lang {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.1) !important;
    border: 1px solid rgba(0, 122, 255, 0.25) !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700 !important;
}

html[data-site-mode="day"] .forum-auth .fb-global-footer a:hover {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-footer-tg {
    color: #007aff !important;
}

html[data-site-mode="day"] .forum-auth .fb-more-lang-btn {
    color: #64748b !important;
}

/* Cookie Consent Banner in Light Mode */
html[data-site-mode="day"] .cc-window.cc-floating {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 122, 255, 0.06) !important;
    color: #1e293b !important;
}

html[data-site-mode="day"] .cc-window.cc-floating .cc-message {
    color: #334155 !important;
}

html[data-site-mode="day"] .cc-window.cc-floating .cc-link {
    color: #007aff !important;
}

html[data-site-mode="day"] .cc-window.cc-floating .cc-btn {
    background: #007aff !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

html[data-site-mode="day"] .cc-window.cc-floating .cc-btn:hover {
    background: #0056b3 !important;
}

/* Real-time Field Validation Feedback (macOS HIG) */
.forum-auth .fb-field-feedback {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.3;
    transition: all 180ms ease;
}

.forum-auth .fb-field-feedback.is-visible {
    display: flex;
}

.forum-auth .fb-field-feedback.is-error {
    color: #ef4444 !important;
}

.forum-auth .fb-field-feedback.is-success {
    color: #10b981 !important;
}

.forum-auth .fb-field-feedback.is-hint {
    color: #64748b !important;
}

html[data-site-mode="night"] .forum-auth .fb-field-feedback.is-hint {
    color: #94a3b8 !important;
}

/* Input validation border states */
.forum-auth .fb-input-wrapper input.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.forum-auth .fb-input-wrapper input.input-success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper input.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

html[data-site-mode="day"] .forum-auth .fb-input-wrapper input.input-success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* Disabled button state in day mode */
html[data-site-mode="day"] .forum-auth .btn-fb-submit:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Light Mode Scrollbar */
html[data-site-mode="day"]::-webkit-scrollbar,
html[data-site-mode="day"] body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html[data-site-mode="day"]::-webkit-scrollbar-track,
html[data-site-mode="day"] body::-webkit-scrollbar-track {
    background: #f4f6fa;
}

html[data-site-mode="day"]::-webkit-scrollbar-thumb,
html[data-site-mode="day"] body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
    border: 2px solid #f4f6fa;
}

html[data-site-mode="day"]::-webkit-scrollbar-thumb:hover,
html[data-site-mode="day"] body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

