:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #142a42;
  background: #f4f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background: radial-gradient(ellipse at 20% 10%, #e8efff 0, transparent 48%), radial-gradient(ellipse at 90% 90%, #e4f5f1 0, transparent 48%), #f4f7fb;
}
.login-card {
  width: min(100%, 392px);
  padding: 36px 32px 32px;
  border: 1px solid #e4eaf3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 56px #21375a0d;
}
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #1767e8;
  box-shadow: 0 6px 16px #1767e824;
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
  content: "";
  position: absolute;
  top: 12px;
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: #fff;
  transform: skew(-15deg);
}
.brand-mark::before { left: 11px; height: 13px; top: 19px; }
.brand-mark span { left: 20px; }
.brand-mark::after { left: 29px; height: 14px; top: 12px; }
h1 { margin: 0 0 30px; text-align: center; font-size: 25px; font-weight: 650; letter-spacing: 2px; }
form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 550; }
input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7e0ed;
  border-radius: 10px;
  outline: none;
  color: #142a42;
  background: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #8d9bab; font-size: 14px; }
input:focus { border-color: #1767e8; box-shadow: 0 0 0 3px #1767e81a; }
button {
  width: 100%;
  height: 46px;
  margin-top: 5px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1767e8;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
button:hover:not(:disabled) { background: #0c56d0; }
button:focus-visible { outline: 3px solid #90b7f7; outline-offset: 3px; }
button:disabled { background: #7a9fda; cursor: wait; }
.login-error { margin: -3px 0 -5px; color: #b73630; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 420px) {
  .login-shell { padding: 24px 18px; }
  .login-card { padding: 30px 24px 26px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  input, button { transition: none; }
}
