@font-face {
    font-family: Inter;
    src: url("/cs-branding/fonts/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root,
[data-theme="dark"] {
    --cs-cyan: #00d9ff;
    --cs-cyan-dark: #00b8d4;
    --cs-navy: #0a1628;
    --cs-ink: #020617;
    --cs-card: #0f172a;
    --cs-text: #f1f5f9;
    --cs-muted: #94a3b8;
    --cs-border: #1e293b;
    --button-primary-background: #00d9ff;
    --button-primary-background-active: #00b8d4;
    --button-primary-text: #020617;
    --text-button-primary: #00d9ff;
    --highlight: #00d9ff;
    --text-link: #00d9ff;
    --border-highlight: #00d9ff;
    --background-primary: #0f172a;
    --background-primary-alt: #122033;
    --background-secondary: #15233a;
    --background-secondary-hover: #1a2b45;
    --background-tertiary: #0a1628;
    --background-quaternary: #020617;
    --background-highlight: rgba(0, 217, 255, 0.12);
    --fullscreen-background: #020617;
    --fullscreen-text: #f1f5f9;
    --fullscreen-text-link: #00d9ff;
    --fullscreen-text-muted: #94a3b8;
    --header-primary: #f1f5f9;
    --menu-background-active: #00d9ff;
}

html,
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: var(--cs-ink) !important;
}

html[data-theme="dark"],
html[data-theme="light"] {
    color-scheme: dark;
}

.splash {
    background: radial-gradient(ellipse at top, rgba(0, 217, 255, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0a1628 0%, #020617 100%) !important;
}

.splash-title {
    color: #94a3b8 !important;
}

.cs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 28px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.cs-brand {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cs-brand .case {
    color: #00d9ff;
}

.cs-brand .scope {
    color: #f1f5f9;
}

.cs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cs-links a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.cs-links a:hover,
.cs-links a.cs-active {
    color: #00d9ff;
}

body.cs-marketing {
    padding-top: 72px;
}

body.cs-marketing .login,
body.cs-marketing .signup,
body.cs-marketing .reset_password,
body.cs-marketing .request_admin_password_auth {
    background: radial-gradient(ellipse at top, rgba(0, 217, 255, 0.1) 0%, transparent 45%),
        linear-gradient(135deg, #0a1628 0%, #020617 100%) !important;
    min-height: calc(100vh - 72px);
}

body.cs-marketing .login .hero-unit,
body.cs-marketing .signup .hero-unit {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 28px 24px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cs-wordmark {
    display: block;
    text-align: center;
    margin: 8px auto 28px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.cs-wordmark .case {
    color: #00d9ff;
}

.cs-wordmark .scope {
    color: #f1f5f9;
}

.login .company-logo,
.signup .company-logo {
    display: none !important;
}

.login .btn--ok,
.login .btn--primary,
.signup .btn--ok,
.login button[type="submit"],
.signup button[type="submit"] {
    background: #00d9ff !important;
    color: #020617 !important;
    border: 0 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.login input,
.login select,
.signup input,
.reset_password input {
    background: #0a1628 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.poweredBy {
    opacity: 0.45;
}

body.cs-agent .cs-nav {
    display: none;
}

@media (max-width: 720px) {
    .cs-nav {
        padding: 0.85rem 16px;
    }

    .cs-links {
        gap: 0.85rem;
    }

    .cs-links a {
        font-size: 0.85rem;
    }
}
