:root {
  color-scheme: dark;
  --bg: #050507; --surface: #1c1c1e; --border: rgba(255,255,255,.13);
  --text: #f5f5f7; --muted: #b5b5ba; --accent: #0a84ff;
  --err: #ff6961; --ok: #30d158;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: 32px 20px; background: radial-gradient(circle at 50% 5%, #1e3041 0, transparent 55%);
}
.login-card {
  width: min(100%, 420px); padding: 36px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 70px #0004;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(180deg, #2f9bff, #0a84ff); color: #fff; font-size: 17px; font-weight: 700; }
.intro { margin: 38px 0 28px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.field { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: #2c2c2e; color: var(--text);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.primary-button {
  width: 100%; padding: 12px 16px; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
}
.primary-button:hover { filter: brightness(1.08); }
.primary-button:active { transform: scale(.99); }
.error-note { margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(255,105,97,.12); border: 1px solid rgba(255,105,97,.35); color: #ffb3af; }
.hint { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
