:root {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #eef3f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(40, 112, 168, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 86%, rgba(33, 160, 122, 0.14), transparent 28rem),
    #eef3f8;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 360px);
  padding: 26px;
  border: 1px solid rgba(73, 95, 122, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(41, 59, 82, 0.13);
}

.login-form {
  display: grid;
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #2b719e;
  box-shadow: 0 0 0 4px rgba(43, 113, 158, 0.13);
}

button {
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: #174f73;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  background: #123f5c;
}

button:active {
  transform: translateY(1px);
}

.error {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: #fff1f2;
  color: #b42318;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .login-card {
    padding: 20px;
    border-radius: 16px;
  }
}
