:root {
  --page: #f3f0e8;
  --surface: #fffdf8;
  --ink: #15211d;
  --soft: #65716c;
  --line: #ddd9ce;
  --brand: #0b3b31;
  --brand-ink: #f8f3e6;
  --signal: #a63b28;
}

* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 8% 3%, rgba(11,59,49,.09), transparent 28rem), var(--page); }
.login-frame { display: grid; min-height: 100svh; place-items: center; padding: 22px; }
.login-card { width: min(100%, 440px); padding: clamp(24px, 6vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,253,248,.94); box-shadow: 0 22px 65px rgba(34,43,38,.1); }
.login-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; color: var(--brand-ink); background: var(--brand); font-size: 1.6rem; font-weight: 700; }
.login-brand span:last-child { display: grid; }
.login-brand strong { font-family: Georgia, serif; font-size: 1.25rem; }
.login-brand small { color: var(--brand); font-size: .68rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.login-copy { margin-top: 38px; }
.eyebrow { color: var(--soft); font-size: .72rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-size: 2rem; letter-spacing: -.04em; }
.login-copy p { margin: 10px 0 0; color: var(--soft); line-height: 1.55; }
.login-form { display: grid; gap: 10px; margin-top: 25px; }
.login-form label { color: var(--soft); font-size: .82rem; font-weight: 650; }
.login-form input { min-height: 48px; width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; font: inherit; }
.login-form button { min-height: 46px; margin-top: 6px; border: 0; border-radius: 12px; color: var(--brand-ink); background: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.form-error { margin: 0; color: var(--signal); font-size: .84rem; }
.error { margin-top: 24px; padding: 13px; border: 1px solid #e5b7ad; border-radius: 11px; color: var(--signal); background: #fae5df; line-height: 1.5; }
.hint { margin: 24px 0 0; color: var(--soft); font-size: .76rem; line-height: 1.45; }
.check-frame { width: 100%; min-height: 100svh; padding: 22px; }
.check-card { width: min(100%, 760px); margin: 0 auto; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,253,248,.94); box-shadow: 0 22px 65px rgba(34,43,38,.1); }
.check-header { margin-top: 34px; }
.check-header p { margin: 10px 0 0; color: var(--soft); line-height: 1.55; }
.check-list { display: grid; gap: 10px; margin-top: 26px; }
.check-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); }
.check-symbol { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--signal); font-weight: 800; }
.check-row.is-ok .check-symbol { background: #28745d; }
.check-row strong { display: block; margin-top: 3px; }
.check-row p { margin: 4px 0 0; color: var(--soft); font-size: .82rem; line-height: 1.45; }
.check-actions { display: grid; gap: 10px; margin-top: 24px; }
.check-actions p { margin: 0; color: var(--soft); font-size: .8rem; line-height: 1.5; }
.check-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; color: var(--brand-ink); background: var(--brand); font-weight: 700; text-decoration: none; }
code { font-family: ui-monospace, monospace; }

@media (prefers-color-scheme: dark) {
  :root { --page: #0e1714; --surface: #15231e; --ink: #edf1ec; --soft: #9daba5; --line: #2c3c36; --brand: #78b99b; --brand-ink: #0a1f18; --signal: #ff9c87; }
  .login-card { background: rgba(21,35,30,.94); }
  .check-card { background: rgba(21,35,30,.94); }
  .check-row { background: rgba(255,255,255,.025); }
  .login-form input { background: #192a24; color: var(--ink); }
  .error { background: #3a211d; border-color: #6a3a31; }
}
