/* === Reset & Variables (login only) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --border: #e5e7eb;
    --danger: #ef4444;
    --radius: 6px;
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }

/* === Login === */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-form { background: var(--surface); padding: 40px; border-radius: var(--radius); width: 320px; }
.login-form h2 { margin-bottom: 24px; font-weight: 600; font-size: 1.3em; }
.login-form input { display: block; width: 100%; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95em; outline: none; }
.login-form input:focus { border-color: var(--accent); }
.login-form button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.95em; }
.login-form button:hover { background: var(--accent-hover); }
.login-error { color: var(--danger); font-size: 0.85em; margin-top: 10px; min-height: 1.2em; }
.login-row { display: flex; align-items: center; margin-bottom: 14px; }
.login-remember { display: flex; gap: 6px; font-size: 0.85em; color: var(--text-muted); cursor: pointer; user-select: none; margin: 0; align-items: stretch; justify-content: center; flex-wrap: nowrap; flex-direction: row; }
.login-remember input { width: 10%; }
.login-remember .label { width: 100%; margin-bottom: 12px; }