:root {
  color-scheme: light;
  --navy: #061a35;
  --navy-2: #071f46;
  --blue: #0e63c7;
  --gold: #d8b76a;
  --paper: #f5f7fb;
  --text: #12213a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 99, 199, .34), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(216, 183, 106, .22), transparent 28%),
    linear-gradient(135deg, #041329, #082754 54%, #061a35);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.login-hero {
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 23px;
}

.brand small {
  color: rgba(255,255,255,.72);
  margin-top: 4px;
}

.login-hero h1 {
  max-width: 700px;
  margin: 72px 0 18px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.login-hero p {
  max-width: 640px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-tags span {
  border: 1px solid rgba(216, 183, 106, .42);
  border-radius: 999px;
  padding: 10px 16px;
  color: #f4dc9a;
  background: rgba(255,255,255,.07);
}

.login-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(216, 183, 106, .34);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.login-card h2 {
  margin: 0 0 8px;
  color: #06376f;
  font-size: 28px;
}

.login-card p {
  margin: 0 0 24px;
  color: #69758c;
  line-height: 1.7;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #233859;
}

.login-card input {
  width: 100%;
  border: 1px solid #cbd9ec;
  border-radius: 10px;
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 99, 199, .12);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
}

.login-row label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}

.login-row input {
  width: auto;
  min-height: auto;
}

.login-row a {
  color: #0b4ea2;
  text-decoration: none;
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 48px;
  cursor: pointer;
  background: linear-gradient(135deg, #0e63c7, #083f85);
  color: #fff;
  font: inherit;
  font-weight: 800;
  transition: transform .2s ease, filter .2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.login-tip {
  display: block;
  margin-top: 18px;
  color: #6d7890;
  line-height: 1.6;
}

.login-error {
  display: block;
  min-height: 22px;
  margin-top: 14px;
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-hero h1 {
    margin-top: 42px;
  }
}
