:root {
    --ink: #1a2233;
    --ink-soft: #5a6478;
    --border: #dde1e8;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --accent: #2952e3;
    --accent-hover: #1f3fb8;
    --danger: #b3261e;
    --danger-bg: #fbeae9;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.auth-card h1 {
    font-size: 20px;
    margin: 0 0 6px;
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 24px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input, .field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41,82,227,0.12);
}

.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-secondary {
    width: 100%;
    padding: 11px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover { background: var(--bg); }
.btn-secondary:disabled { opacity: 0.6; cursor: default; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 20px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
