:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #172033;
  background: #f4f6fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(99,102,241,.13), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(37,99,235,.09), transparent 30%),
    #f5f7fb;
}
.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 28px;
}
.login-card {
  width: min(100%, 430px); border: 1px solid #dfe4ec; border-radius: 20px;
  background: rgba(255,255,255,.94); padding: 38px 38px 30px;
  box-shadow: 0 22px 70px rgba(30,41,59,.12);
}
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px;
  border-radius: 12px; background: #171b24; color: #fff; font: 700 19px/1 Georgia, serif;
  box-shadow: 0 7px 18px rgba(15,23,42,.18);
}
.login-kicker {
  color: #6366f1; font-size: 10px; font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase;
}
h1 { margin: 8px 0 9px; font-size: 27px; line-height: 1.18; letter-spacing: -.035em; }
p { margin: 0 0 27px; color: #697386; font-size: 13px; line-height: 1.6; }
label { display: block; margin-bottom: 7px; color: #3f4858; font-size: 11px; font-weight: 650; }
.input-wrap { position: relative; }
input {
  width: 100%; height: 48px; border: 1px solid #d5dbe5; border-radius: 11px;
  background: #fbfcfe; color: #151b27; padding: 0 64px 0 13px; outline: none;
  font: 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: #8d91f0; box-shadow: 0 0 0 4px rgba(99,102,241,.10); }
input::placeholder { color: #a2aab7; font-family: inherit; }
.input-wrap button {
  position: absolute; top: 50%; right: 9px; transform: translateY(-50%);
  border: 0; border-radius: 7px; background: transparent; color: #737d8d;
  padding: 6px 7px; cursor: pointer; font: 600 10px/1 inherit;
}
.input-wrap button:hover { background: #eef1f5; color: #303846; }
.login-error {
  margin-top: 10px; border-radius: 8px; background: #fff0f1; color: #ab2935;
  padding: 8px 10px; font-size: 11px; line-height: 1.45;
}
.login-submit {
  width: 100%; height: 45px; margin-top: 14px; border: 0; border-radius: 11px;
  background: #222833; color: #fff; cursor: pointer; font: 650 13px/1 inherit;
  transition: background .15s, transform .15s;
}
.login-submit:hover { background: #10141b; }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .58; cursor: default; }
.login-foot {
  margin-top: 24px; border-top: 1px solid #edf0f4; padding-top: 18px;
  color: #9aa2af; text-align: center; font-size: 10px;
}
@media (max-width: 520px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 30px 24px 25px; border-radius: 17px; }
  h1 { font-size: 24px; }
}
