:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: #172033;
  background: #f3f5fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 5%, rgba(17, 29, 118, 0.08), transparent 34rem),
    linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
}

.login-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 440px);
  margin-bottom: 24px;
  color: #111d76;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #111d76;
  color: #fff;
}

.brand-mark svg {
  width: 29px;
  height: 29px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.login-brand span {
  margin-top: 2px;
  color: #69738a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.login-card {
  width: min(100%, 440px);
  padding: 40px;
  border: 1px solid #e5e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(20, 35, 91, 0.1);
}

.card-heading {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5262b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: #111d76;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.subtitle {
  margin: 8px 0 0;
  color: #687287;
  font-size: 14px;
  line-height: 1.7;
}

.form-field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #28334a;
  font-size: 14px;
  font-weight: 600;
}

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

input::placeholder {
  color: #9aa3b4;
}

input:focus-visible {
  border-color: #3547a5;
  box-shadow: 0 0 0 3px rgba(53, 71, 165, 0.16);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #111d76;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease;
}

button:hover {
  background: #1a2a91;
}

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

button:focus-visible {
  outline: 3px solid rgba(53, 71, 165, 0.35);
  outline-offset: 3px;
}

.notice {
  margin: -8px 0 20px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.notice-error {
  border: 1px solid #f0c7ca;
  background: #fff4f4;
  color: #9e1b26;
}

.notice-success {
  border: 1px solid #c5e2d3;
  background: #f1faf5;
  color: #246846;
}

.login-help {
  margin: 22px 0 0;
  color: #7a8498;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.login-footer {
  margin-top: 28px;
  color: #8a92a2;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .login-layout {
    padding: 28px 16px 20px;
  }

  .login-brand {
    margin-bottom: 18px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 12px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
