:root {
  color: #0d1b2a;
  background: #f1f4f8;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.login-card {
  width: min(100%, 430px);
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid #dce2ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 43, 68, .09);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.brand b { color: #155eef; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #0d1b2a; font: 21px Georgia, serif; }
.eyebrow { margin: 34px 0 9px; color: #155eef; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(27px, 7vw, 36px); letter-spacing: -.035em; }
.intro { margin: 14px 0 28px; color: #637080; font-size: 14px; line-height: 1.7; }
form { display: grid; gap: 9px; }
label { margin-top: 9px; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd3dd;
  border-radius: 10px;
  background: #fff;
  color: #0d1b2a;
  font: inherit;
  font-size: 16px;
}
input:focus { outline: 3px solid rgba(21, 94, 239, .16); border-color: #155eef; }
button {
  min-height: 49px;
  margin-top: 17px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #155eef;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { cursor: wait; opacity: .68; }
.error { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; color: #a52b2b; background: #fff0f0; font-size: 13px; line-height: 1.5; }
.success { margin: 18px 0 8px; padding: 10px 12px; border-radius: 8px; color: #176b42; background: #eaf8f0; font-size: 13px; line-height: 1.5; }
.privacy { margin: 22px 0 0; color: #7a8490; font-size: 12px; line-height: 1.6; }
.legacy-login {
  display: block;
  min-height: 46px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #b9c7dc;
  border-radius: 10px;
  color: #173d79;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.legacy-login:focus { outline: 3px solid rgba(21, 94, 239, .16); border-color: #155eef; }
.back { display: inline-block; margin-top: 16px; color: #155eef; font-size: 13px; text-decoration: none; }
@media (max-width: 480px) {
  .login-shell { place-items: start center; padding-top: max(18px, env(safe-area-inset-top)); }
  .login-card { border-radius: 14px; box-shadow: none; }
}
