:root {
    color-scheme: dark;
    --bg: #0b1220;
    --panel: #111a2c;
    --panel-2: #0e1626;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.26);
    --text: #edf2f7;
    --muted: #9aa7b7;
    --accent: #d9e2f1;
    --accent-strong: #ffffff;
    --input: #0b1322;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #0a1020 0%, #0b1220 100%);
}

.login-shell {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.brand-panel,
.form-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.brand-panel {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #dfe7f2;
    color: #0b1220;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark .name {
    display: grid;
    gap: 4px;
}

.brand-mark .name strong {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.brand-mark .name span {
    color: var(--muted);
    font-size: 0.9rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-top: 28px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-panel h1 {
    margin: 22px 0 14px;
    max-width: 12ch;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.brand-panel p {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-grid {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.feature-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: var(--panel-2);
}

.feature-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.feature-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-panel {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel h2 {
    margin: 0 0 10px;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

.form-panel .subtext {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #d7dfeb;
    font-size: 0.9rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--input);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.field {
    display: grid;
}

button {
    margin-top: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f3f6fb 0%, #dfe7f2 100%);
    color: #0b1220;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .brand-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }
    .brand-panel,
    .form-panel {
        padding: 24px;
        border-radius: 18px;
    }
    .form-panel h2 {
        font-size: 1.65rem;
    }
}