﻿/* ═══════════════════════════════════════════════════════
   IntelliBOBI — Public & Auth Page Styles
   Covers: _LandingLayout, _AuthLayout
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────── */
:root {
    --ib-brand-navy:    #0A1428;
    --ib-brand-dark:    #0E1B38;
    --ib-brand-mid:     #16274D;
    --ib-brand-border:  rgba(255,255,255,0.08);
    --ib-brand-muted:   #64748B;
    --ib-brand-subtle:  #94A3B8;
    --ib-brand-bright:  #CBD5E1;
    --ib-brand-white:   #F1F5F9;
    --ib-accent:        #D8B45E;
    --ib-accent-bright: #ECD391;
    --ib-accent-glow:   rgba(216,180,94,0.22);
    --ib-accent-soft:   rgba(216,180,94,0.12);
    --ib-success:       #10B981;
    --ib-sky:           #0EA5E9;

    --ib-silver:       #DDE2EA;
    --ib-gold:         #D8B45E;
    --ib-font-brand:   'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
    --ib-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --ib-font-ui:      'Inter', system-ui, -apple-system, sans-serif;
    --ib-font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    --ib-radius-sm:    6px;
    --ib-radius:       10px;
    --ib-radius-lg:    16px;
    --ib-radius-xl:    24px;
}

/* ── Reset for public body ────────────────────────────── */
.ib-public {
    background: var(--ib-brand-navy);
    color: var(--ib-brand-white);
    font-family: var(--ib-font-ui);
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════
   PUBLIC NAV
   ══════════════════════════════════════════════════════ */
.ib-pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.ib-pub-nav.scrolled {
    background: rgba(8, 13, 26, 0.88);
    border-color: var(--ib-brand-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ib-pub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ib-pub-wordmark {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    line-height: 1;
}

.ib-pub-wordmark:hover { text-decoration: none; }

.ib-pub-wordmark-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    margin-right: 9px;
    flex-shrink: 0;
}

.ib-pub-wordmark-prefix {
    font-family: var(--ib-font-brand);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ib-silver);
    letter-spacing: -0.025em;
}

.ib-pub-wordmark-name {
    font-family: var(--ib-font-brand);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ib-gold);
    letter-spacing: -0.025em;
}

.ib-pub-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ib-pub-nav-link {
    padding: 8px 16px;
    color: var(--ib-brand-subtle);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--ib-radius-sm);
    transition: color 0.15s ease;
}

.ib-pub-nav-link:hover { color: var(--ib-brand-white); text-decoration: none; }

.ib-pub-nav-cta {
    padding: 8px 20px;
    background: var(--ib-accent);
    color: #0A1428;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--ib-radius-sm);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    letter-spacing: 0.01em;
}

.ib-pub-nav-cta:hover {
    background: #C9A24A;
    color: #0A1428;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(216,180,94,0.4);
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.ib-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 32px 80px;
}

.ib-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Radial glow — the signature atmospheric element */
.ib-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(216,180,94,0.18) 0%, rgba(216,180,94,0.06) 40%, transparent 70%);
    animation: ib-pulse 6s ease-in-out infinite;
}

@keyframes ib-pulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

/* Subtle dot grid */
.ib-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

.ib-hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.ib-hero-logo {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 28px;
}

.ib-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(216,180,94,0.12);
    border: 1px solid rgba(216,180,94,0.28);
    border-radius: 100px;
    color: var(--ib-accent-bright);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.ib-hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--ib-accent-bright);
    border-radius: 50%;
    animation: ib-blink 2s ease-in-out infinite;
}

@keyframes ib-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.ib-hero-title {
    font-family: var(--ib-font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #F8FAFC;
    margin-bottom: 24px;
}

.ib-hero-title-accent {
    background: linear-gradient(135deg, #ECD391 0%, #D8B45E 50%, #C9A24A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ib-hero-sub {
    font-size: 1.125rem;
    color: var(--ib-brand-subtle);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.ib-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ib-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--ib-accent);
    color: #0A1428;
    font-family: var(--ib-font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--ib-radius);
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    letter-spacing: 0.01em;
    border: none;
}

.ib-btn-primary:hover {
    background: #C9A24A;
    color: #0A1428;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(216,180,94,0.45);
}

.ib-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: var(--ib-brand-bright);
    font-family: var(--ib-font-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--ib-radius);
    text-decoration: none;
    border: 1px solid var(--ib-brand-border);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ib-btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Hero Terminal / Diff mockup ──────────────────────── */
.ib-hero-terminal {
    position: relative;
    max-width: 700px;
    margin: 64px auto 0;
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--ib-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 0 1px rgba(216,180,94,0.15),
        0 24px 64px rgba(0,0,0,0.5),
        0 0 80px rgba(216,180,94,0.08);
}

.ib-hero-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ib-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ib-terminal-dot:nth-child(1) { background: #EF4444; }
.ib-terminal-dot:nth-child(2) { background: #F59E0B; }
.ib-terminal-dot:nth-child(3) { background: #10B981; }

.ib-terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--ib-font-mono);
    font-size: 0.72rem;
    color: var(--ib-brand-muted);
}

.ib-hero-terminal-body {
    padding: 20px 24px;
    font-family: var(--ib-font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
}

.ib-diff-header { color: var(--ib-brand-muted); margin-bottom: 4px; }
.ib-diff-meta   { color: #ECD391; }
.ib-diff-plus   { color: #34D399; background: rgba(16,185,129,0.08); display: block; padding: 1px 0; }
.ib-diff-minus  { color: #F87171; background: rgba(239,68,68,0.08);  display: block; padding: 1px 0; }
.ib-diff-ctx    { color: #475569; display: block; }
.ib-diff-range  { color: #60A5FA; }

/* ══════════════════════════════════════════════════════
   STATS STRIP
   ══════════════════════════════════════════════════════ */
.ib-stats {
    border-top: 1px solid var(--ib-brand-border);
    border-bottom: 1px solid var(--ib-brand-border);
    background: rgba(255,255,255,0.015);
    padding: 40px 32px;
}

.ib-stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}

.ib-stat-value {
    font-family: var(--ib-font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1;
    letter-spacing: -0.03em;
}

.ib-stat-label {
    font-size: 0.8rem;
    color: var(--ib-brand-muted);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════ */
.ib-section {
    padding: 96px 32px;
}

.ib-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ib-section-eyebrow {
    font-family: var(--ib-font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ib-accent-bright);
    margin-bottom: 16px;
}

.ib-section-title {
    font-family: var(--ib-font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.ib-section-sub {
    font-size: 1rem;
    color: var(--ib-brand-subtle);
    line-height: 1.7;
    max-width: 560px;
}

.ib-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.ib-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ib-brand-border);
    border-radius: var(--ib-radius-lg);
    padding: 32px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ib-feature-card:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(216,180,94,0.3);
    transform: translateY(-2px);
}

.ib-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--ib-accent-soft);
    border: 1px solid rgba(216,180,94,0.25);
    border-radius: var(--ib-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--ib-accent-bright);
    margin-bottom: 20px;
}

.ib-feature-name {
    font-family: var(--ib-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.ib-feature-desc {
    font-size: 0.875rem;
    color: var(--ib-brand-subtle);
    line-height: 1.65;
    margin-bottom: 20px;
}

.ib-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ib-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--ib-brand-subtle);
    line-height: 1.5;
    padding: 4px 0;
}

.ib-feature-list li::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: var(--ib-accent);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════ */
.ib-steps {
    padding: 80px 32px;
    background: rgba(255,255,255,0.015);
    border-top: 1px solid var(--ib-brand-border);
    border-bottom: 1px solid var(--ib-brand-border);
}

.ib-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-top: 56px;
    position: relative;
}

.ib-step {
    position: relative;
}

.ib-step-num {
    font-family: var(--ib-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ib-accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.ib-step-title {
    font-family: var(--ib-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.ib-step-desc {
    font-size: 0.875rem;
    color: var(--ib-brand-subtle);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════ */
.ib-cta {
    padding: 96px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ib-cta-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at bottom, rgba(216,180,94,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.ib-cta-title {
    font-family: var(--ib-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #F1F5F9;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.ib-cta-sub {
    font-size: 1rem;
    color: var(--ib-brand-subtle);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.ib-pub-footer {
    border-top: 1px solid var(--ib-brand-border);
    padding: 28px 32px;
}

.ib-pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ib-pub-footer-copy {
    font-size: 0.8rem;
    color: var(--ib-brand-muted);
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════════════════════ */
.ib-auth-body {
    background: #F1F5F9;
    min-height: 100vh;
    font-family: var(--ib-font-ui);
}

.ib-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 420px 1fr;
}

.ib-auth-brand {
    background: var(--ib-brand-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.ib-auth-brand-glow {
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216,180,94,0.25) 0%, transparent 65%);
    pointer-events: none;
}

.ib-auth-brand-wordmark {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.ib-auth-brand-wordmark:hover { text-decoration: none; }

.ib-auth-tagline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.ib-auth-tagline-title {
    font-family: var(--ib-font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.ib-auth-tagline-sub {
    font-size: 0.9rem;
    color: var(--ib-brand-muted);
    line-height: 1.7;
}

.ib-auth-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.ib-auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #475569;
    padding: 6px 0;
}

.ib-auth-features li i {
    color: #7D5F17;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ib-auth-brand-foot {
    font-size: 0.75rem;
    color: #334155;
}

.ib-auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #F8FAFC;
}

.ib-auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.ib-auth-form-title {
    font-family: var(--ib-font-display);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--ib-brand-dark);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.ib-auth-form-sub {
    font-size: 0.875rem;
    color: var(--ib-brand-muted);
    margin-bottom: 32px;
}

/* Register uses a simpler single-panel layout */
.ib-register-body {
    min-height: 100vh;
    background: #F8FAFC;
    font-family: var(--ib-font-ui);
}

.ib-register-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ib-register-nav {
    padding: 16px 32px;
    border-bottom: 1px solid #E2E8F0;
    background: #fff;
}

/* Every other wordmark sits on a fixed dark brand surface, where the shared
   .ib-pub-wordmark-prefix/-name defaults (white "Intelli", blue "BOBI") apply as-is.
   Register's mini nav is the one exception — a light bg that toggles dark with the
   rest of the app — so "Intelli" needs its own contrast-safe color per theme here;
   "BOBI" stays the same accent blue everywhere, no override needed. */
.ib-register-nav .ib-pub-wordmark-prefix {
    color: var(--ib-brand-dark);
}
.ib-register-nav .ib-pub-wordmark-name {
    color: #7D5F17;
}
:root[data-theme="dark"] .ib-register-nav .ib-pub-wordmark-prefix {
    color: var(--ib-silver);
}
:root[data-theme="dark"] .ib-register-nav .ib-pub-wordmark-name {
    color: var(--ib-gold);
}

.ib-register-content {
    flex: 1;
    padding: 48px 32px;
}

.ib-register-inner {
    max-width: 740px;
    margin: 0 auto;
}

/* ── Auth link/utility components — token-driven so they react to the dark-mode
   override block below instead of being baked-in hex like the markup they replaced ── */
.ib-auth-link { color: #7D5F17; }
.ib-auth-link:hover { color: #5C4510; text-decoration: underline; }

.ib-auth-divider { border-color: #E2E8F0; }

.ib-auth-hint { color: var(--ib-brand-muted); }

.ib-password-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--ib-brand-muted);
    line-height: 1;
    z-index: 5;
}
.ib-password-toggle:hover { color: var(--ib-brand-dark); }

.ib-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ib-accent);
    color: #0A1428;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.ib-skip-link:focus {
    left: 0;
}

.ib-auth-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: var(--ib-brand-white, #F1F5F9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ib-auth-theme-toggle:hover { background: rgba(255,255,255,0.16); }
.ib-auth-theme-toggle .bi-sun-fill { display: none; }
:root[data-theme="dark"] .ib-auth-theme-toggle .bi-moon-stars-fill { display: none; }
:root[data-theme="dark"] .ib-auth-theme-toggle .bi-sun-fill { display: inline-block; }
/* Register's mini-nav has a light background even in light mode, so the toggle
   needs a dark icon color there instead of the brand panel's light-on-dark default. */
.ib-register-body .ib-auth-theme-toggle {
    border-color: var(--ds-n200, #E2E8F0);
    background: #fff;
    color: var(--ib-brand-dark);
}
:root[data-theme="dark"] .ib-register-body .ib-auth-theme-toggle {
    background: #151A22;
    border-color: #2A3342;
    color: #E7ECF3;
}

/* ── Focus-visible states — keyboard users get no visible focus ring anywhere on the
   public/auth pages otherwise, since this file (unlike design-system.css/site.css)
   never defined one. ── */
.ib-pub-nav-link:focus-visible,
.ib-pub-nav-cta:focus-visible,
.ib-btn-primary:focus-visible,
.ib-btn-ghost:focus-visible,
.ib-auth-link:focus-visible,
.ib-auth-brand-wordmark:focus-visible,
.ib-password-toggle:focus-visible {
    outline: 2px solid var(--ib-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Dark mode — scoped to Login/Register only ──────────────────────────────────
   The public marketing Landing page keeps a single fixed light theme by design (it's
   a signed-out, first-touch surface built around a specific hero/gradient palette that
   isn't token-driven the way the app shell is); rebuilding the whole page in dark mode
   is a separate design pass, not a bug fix. Login/Register sit one click from the app
   itself for an already-known user, so a jarring light flip when they've chosen dark
   everywhere else is the part actually worth fixing here. ── */
:root[data-theme="dark"] .ib-auth-body,
:root[data-theme="dark"] .ib-register-body {
    background: #0B0F16;
}
:root[data-theme="dark"] .ib-auth-content,
:root[data-theme="dark"] .ib-register-content {
    background: #0B0F16;
}
:root[data-theme="dark"] .ib-auth-form-title {
    color: #F1F5F9;
}
:root[data-theme="dark"] .ib-auth-form-sub,
:root[data-theme="dark"] .ib-auth-hint {
    color: #7C8CA3;
}
:root[data-theme="dark"] .ib-auth-form-wrap .form-control,
:root[data-theme="dark"] .ib-auth-form-wrap .form-select {
    background: #151A22;
    border-color: #2A3342;
    color: #E7ECF3;
}
:root[data-theme="dark"] .ib-auth-form-wrap .form-control::placeholder {
    color: #5C6B82;
}
:root[data-theme="dark"] .ib-auth-form-wrap .form-floating > label {
    color: #7C8CA3;
}
:root[data-theme="dark"] .ib-auth-divider {
    border-color: #2A3342;
}
:root[data-theme="dark"] .ib-register-nav {
    background: #0B0F16;
    border-bottom-color: #2A3342;
}
:root[data-theme="dark"] .ib-register-content .card {
    background: #151A22;
    border-color: #2A3342 !important;
}
:root[data-theme="dark"] .ib-register-content .credential-row {
    background: #1B212B !important;
    border-color: #2A3342 !important;
}
:root[data-theme="dark"] .ib-register-content .form-control.bg-white,
:root[data-theme="dark"] .ib-register-content .form-select.bg-white {
    background: #151A22 !important;
    border-color: #2A3342;
    color: #E7ECF3;
}
:root[data-theme="dark"] .ib-register-content h5.text-secondary,
:root[data-theme="dark"] .ib-register-content .credential-label,
:root[data-theme="dark"] .ib-register-content .text-dark {
    color: #E7ECF3 !important;
}

/* ── Mobile responsive ────────────────────────────────── */
@media (max-width: 767px) {
    .ib-pub-nav-inner { padding: 0 20px; }

    .ib-hero { padding: 100px 20px 60px; }

    .ib-hero-terminal { display: none; }

    .ib-stats { padding: 32px 20px; }

    .ib-section { padding: 64px 20px; }

    .ib-steps { padding: 56px 20px; }

    .ib-cta { padding: 64px 20px; }

    .ib-pub-footer { padding: 24px 20px; }
    .ib-pub-footer-inner { flex-direction: column; align-items: flex-start; }

    .ib-auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .ib-auth-brand {
        padding: 28px 24px;
    }

    .ib-auth-tagline { display: none; }

    .ib-auth-content { padding: 32px 20px; }

    .ib-register-content { padding: 32px 16px; }

    .ib-pub-nav-link { display: none; }
}

@media (max-width: 480px) {
    .ib-hero-actions { flex-direction: column; align-items: center; }
    .ib-btn-primary, .ib-btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Reduced motion ────────────────────────────────────
   The hero glow and eyebrow dot both animate continuously without any
   user interaction — exactly what prefers-reduced-motion is meant to
   suppress. Card/button hover transitions are left alone (short,
   user-triggered feedback, not the pattern this preference targets). */
@media (prefers-reduced-motion: reduce) {
    .ib-hero-glow,
    .ib-hero-eyebrow-dot {
        animation: none;
    }
}
