:root {
    color-scheme: dark;
    --bg: #0f1115;
    --bg-soft: #1a1c20;
    --panel: rgba(26, 28, 32, 0.96);
    --panel-border: rgba(55, 65, 81, 0.9);
    --text: #f3f4f6;
    --muted: #9ca3af;
    --line: #374151;
    --accent: #d50000;
    --accent-hover: #b91c1c;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(#374151 1px, transparent 0);
    background-size: 32px 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
button {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-layout {
    width: min(1120px, 100%);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-mark {
    font-family: Orbitron, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.home-link {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hero-panel,
.form-panel {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 18px;
}

.hero-panel h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-panel p {
    max-width: 34rem;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-list {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d5db;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(213, 0, 0, 0.14);
    flex: none;
}

.form-panel {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    margin: 0;
    font-size: 2rem;
}

.form-header p {
    margin: 10px 0 0;
    color: var(--muted);
}

.login-form {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.turnstile-shell {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.turnstile-shell .cf-turnstile {
    display: inline-flex;
}

.form-status {
    min-height: 1.25rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);
}

.form-status[data-tone="success"] {
    color: #86efac;
}

.form-status[data-tone="error"] {
    color: #fca5a5;
}

.form-status[data-tone="neutral"] {
    color: var(--muted);
}

.login-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    margin-top: -6px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #25282d;
    color: var(--text);
    outline: none;
}

.login-form input::placeholder {
    color: #6b7280;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.875rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-row a {
    color: #d1d5db;
    font-weight: 500;
}

.login-form button {
    margin-top: 10px;
    padding: 14px 16px;
    border: 0;
    border-radius: 2px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.login-form button:hover {
    background: var(--accent-hover);
}

.login-form button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: #7f1d1d;
}

.footer-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px;
    }

    .brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel,
    .form-panel {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}