@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --abyss-void: #010405;
    --abyss-deep: #020b0e;
    --abyss-surface: #051216;
    --abyss-surface-light: #08191f;
    --pop-orange: #d98c55;
    --pop-pink: #d94575;
    --pop-cyan: #4da6a6;
    --text-primary: #cbd5e1;
    --text-muted: #64748b;
    --border-subtle: rgba(77, 166, 166, 0.1);
    --border-highlight: rgba(255, 255, 255, 0.05);
    --shadow-panel: 0 18px 42px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.28);
    --font-ui: 'Inter', system-ui, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --font-display: 'Rajdhani', sans-serif;
}

html[data-theme="light"] {
    --abyss-void: #f4efe7;
    --abyss-deep: #fbf7f1;
    --abyss-surface: #ffffff;
    --abyss-surface-light: #fffaf4;
    --pop-orange: #b76a31;
    --pop-pink: #b83367;
    --pop-cyan: #0f766e;
    --text-primary: #1f2937;
    --text-muted: #5f6b7a;
    --border-subtle: rgba(15, 118, 110, 0.16);
    --border-highlight: rgba(15, 23, 42, 0.06);
    --shadow-panel: 0 20px 40px rgba(148, 163, 184, 0.22);
    --shadow-soft: 0 12px 28px rgba(148, 163, 184, 0.16);
}

html,
body {
    background-color: var(--abyss-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
}

body.fp-theme {
    position: relative;
}

body.fp-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, #03141a 0%, #010405 70%);
    z-index: -1;
    pointer-events: none;
}

html[data-theme="light"] body.fp-theme::before {
    background:
        radial-gradient(circle at top left, rgba(217, 140, 85, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(77, 166, 166, 0.14), transparent 26%),
        linear-gradient(180deg, #fffdf9 0%, #f4efe7 100%);
}

.fp-theme a {
    color: var(--pop-cyan);
}

.fp-theme a:hover {
    color: #75d4d4;
}

html[data-theme="light"] .fp-theme a:hover {
    color: #0f766e;
}

.fp-theme h1,
.fp-theme h2,
.fp-theme h3,
.fp-theme h4,
.fp-theme h5,
.fp-theme h6 {
    color: #f2f5f7;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.fp-theme code,
.fp-theme pre {
    font-family: var(--font-code);
}

.fp-theme .page,
.fp-shell {
    background: transparent;
}

.fp-panel {
    background: linear-gradient(180deg, rgba(8, 25, 31, 0.92), rgba(5, 18, 22, 0.94));
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-panel);
}

.fp-panel--soft {
    background: linear-gradient(180deg, rgba(5, 18, 22, 0.82), rgba(5, 18, 22, 0.9));
    box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .fp-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 238, 0.96));
}

html[data-theme="light"] .fp-panel--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 238, 0.92));
}

.fp-sidebar {
    background-color: var(--abyss-deep) !important;
    border-right: 1px solid var(--border-subtle) !important;
}

.fp-topbar {
    background-color: rgba(2, 11, 14, 0.95) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
}

.fp-topbar a {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .fp-sidebar {
    background-color: rgba(251, 247, 241, 0.92) !important;
}

html[data-theme="light"] .fp-topbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.fp-logo {
    display: inline-flex;
    align-items: center;
}

.fp-logo-img {
    display: block;
    height: auto;
}

.fp-logo-img--light {
    display: none;
}

html[data-theme="light"] .fp-logo-img--dark {
    display: none;
}

html[data-theme="light"] .fp-logo-img--light {
    display: block;
}

.fp-nav-caption,
.fp-eyebrow {
    color: rgba(203, 213, 225, 0.52);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

html[data-theme="light"] .fp-nav-caption,
html[data-theme="light"] .fp-eyebrow {
    color: rgba(95, 107, 122, 0.82);
}

.fp-nav-link {
    color: rgba(255, 255, 255, 0.55);
    border-left: 2px solid transparent;
    transition: background 0.12s ease, color 0.12s ease, border-left-color 0.12s ease, padding-left 0.12s ease;
}

html[data-theme="light"] .fp-nav-link {
    color: rgba(15, 23, 42, 0.72);
}

.fp-nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--pop-orange);
    color: #fff;
}

html[data-theme="light"] .fp-nav-link:hover {
    background: rgba(15, 118, 110, 0.06);
    color: #0f172a;
}

.fp-nav-link.is-active {
    background: rgba(217, 140, 85, 0.08);
    border-left-color: var(--pop-orange);
    color: var(--pop-orange);
}

.fp-brand {
    color: #f2f5f7;
    text-decoration: none;
}

.fp-brand:hover {
    text-decoration: none;
}

html[data-theme="light"] .fp-brand {
    color: #0f172a;
}

.fp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(77, 166, 166, 0.25), rgba(217, 140, 85, 0.28));
    border: 1px solid rgba(217, 140, 85, 0.22);
    color: #f8fafc;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.fp-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.fp-auth-panel {
    width: min(28rem, 100%);
    padding: 2.5rem;
}

.fp-theme .text-muted {
    color: var(--text-muted) !important;
}

.fp-theme .form-control,
.fp-theme .form-select {
    background: rgba(3, 20, 26, 0.7);
    border: 1px solid rgba(77, 166, 166, 0.14);
    color: var(--text-primary);
}

.fp-theme .form-control::placeholder {
    color: rgba(100, 116, 139, 0.85);
}

.fp-theme .form-control:focus,
.fp-theme .form-select:focus {
    background: rgba(3, 20, 26, 0.88);
    border-color: rgba(217, 140, 85, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(217, 140, 85, 0.12);
    color: var(--text-primary);
}

.fp-theme .form-floating > label,
.fp-theme .form-check-label {
    color: var(--text-muted);
}

.fp-theme .btn-primary {
    background: var(--pop-orange);
    border-color: var(--pop-orange);
    color: #05080a;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fp-theme .btn-primary:hover,
.fp-theme .btn-primary:focus {
    background: #e6a26b;
    border-color: #e6a26b;
    color: #05080a;
}

html[data-theme="light"] .fp-theme h1,
html[data-theme="light"] .fp-theme h2,
html[data-theme="light"] .fp-theme h3,
html[data-theme="light"] .fp-theme h4,
html[data-theme="light"] .fp-theme h5,
html[data-theme="light"] .fp-theme h6,
html[data-theme="light"] .fp-copy {
    color: #0f172a;
}

.fp-copy {
    color: #d8e1e8;
    line-height: 1.75;
}

.fp-subtle {
    color: var(--text-muted);
}

.fp-code-block {
    background: rgba(1, 4, 5, 0.9);
    border: 1px solid rgba(77, 166, 166, 0.12);
    border-radius: 1rem;
    color: #f8f3e8;
}
