:root {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success-bg: #e8f7ee;
    --success-text: #166534;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.auth-page,
.dashboard-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-shell,
.dashboard-shell {
    width: 100%;
    max-width: 420px;
}

.auth-card,
.dashboard-panel {
    width: 100%;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    outline: none;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 86, 217, 0.14);
}

.input-error {
    border-color: var(--danger);
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 22px;
    color: var(--muted);
    font-weight: 600;
}

.remember input {
    width: 16px;
    height: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover,
.button:focus {
    background: var(--primary-dark);
}

.button-secondary {
    margin-top: 18px;
    background: #27364d;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #1b273a;
}

.error {
    margin: 7px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.alert {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 6px;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 14px;
}

.dashboard-welcome {
    margin: 22px 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .auth-page,
    .dashboard-page {
        padding: 16px;
    }

    .auth-card,
    .dashboard-panel {
        padding: 24px;
    }
}
