:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #f5f3ee;
  --muted: #a9a9ad;
  --accent: #d7c5a5;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: #111827;
  background-image: radial-gradient(ellipse at 50% 16%, #263246 0, #111827 50%);
}

button, input { font: inherit; }

.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 420px);
  padding: clamp(28px, 8vw, 44px);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 28px;
  background: rgb(19 28 42 / 78%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 24%);
  backdrop-filter: blur(16px);
}

.brand-mark { display: flex; gap: 5px; align-items: center; height: 25px; margin-bottom: 34px; }
.brand-mark span { display: block; width: 5px; border-radius: 8px; background: var(--accent); }
.brand-mark span:nth-child(1), .brand-mark span:nth-child(3) { height: 13px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 23px; }
.eyebrow, .welcome-label { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .18em; }
h1 { margin: 13px 0 9px; font-size: clamp(38px, 11vw, 48px); font-weight: 500; letter-spacing: -.045em; }
.intro { margin: 0 0 35px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.login-form label { display: block; margin-bottom: 10px; font-size: 14px; }
.login-form input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 16%); border-radius: 13px;
  outline: none; color: var(--ink); background: rgb(255 255 255 / 4%);
  font-size: 18px; letter-spacing: .34em;
}
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(215 197 165 / 15%); }
.hint { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
button { width: 100%; min-height: 48px; border: 0; border-radius: 13px; cursor: pointer; }
#submit-button { color: #20232a; background: var(--accent); font-size: 15px; font-weight: 650; }
button:disabled { cursor: wait; opacity: .66; }
.welcome { padding: 5px 0 8px; }
.welcome h2 { margin: 12px 0 26px; font-size: 28px; font-weight: 500; }
.secondary-button { border: 1px solid rgb(255 255 255 / 16%); color: var(--ink); background: transparent; }
.status { min-height: 20px; margin: 14px 0 0; color: #f0b7ac; font-size: 13px; line-height: 1.45; }
.install-note { margin: 23px 0 0; color: #9299a4; font-size: 12px; line-height: 1.55; }
.install-note span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; color: #1c2430; background: var(--accent); font-weight: 700; }
footer { margin-top: 25px; color: #707b8a; font-size: 11px; letter-spacing: .04em; }
[hidden] { display: none !important; }

@media (display-mode: standalone) { .install-note { display: none; } }
@media (prefers-reduced-motion: no-preference) { button { transition: opacity .15s ease, transform .15s ease; } button:not(:disabled):active { transform: scale(.985); } }
