.login-page {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
  gap: 20px;
  align-items: stretch;
}

.nav-login-item {
  margin-left: auto;
}

.login-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 78, 161, 0.88) 0%, rgba(25, 118, 210, 0.82) 50%, rgba(71, 163, 255, 0.74) 100%),
    url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  border: 1px solid #9bc6f5;
  box-shadow: 0 12px 28px rgba(16, 52, 92, 0.10);
  min-height: 560px;
}

.login-hero::before,
.login-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-hero::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
}

.login-hero::after {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 72%);
}

.login-hero-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  padding: 90px 46px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.login-title {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "STKaiti", "KaiTi", sans-serif;
}

.login-subtitle {
  margin: 0 0 30px;
  max-width: none;
  font-size: 18px;
  text-align: center;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.login-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.login-feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8ebff;
  box-shadow: 0 0 0 4px rgba(216, 235, 255, 0.18);
  flex: 0 0 auto;
}

.login-card-wrap {
  display: flex;
  align-items: center;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dfe6f2;
  box-shadow: 0 12px 28px rgba(16, 52, 92, 0.08);
  padding: 32px 30px;
}

.login-card-head {
  margin-bottom: 24px;
}

.login-card-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a73c9;
  letter-spacing: 0.08em;
}

.login-card-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #1d2a3f;
}

.login-card-desc {
  margin: 0;
  font-size: 14px;
  color: #70839b;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 14px;
  font-weight: 700;
  color: #48607d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-label-optional {
  justify-content: space-between;
}

.login-optional-hint {
  font-size: 12px;
  font-weight: 400;
  color: #a6b8d0;
}

.login-input {
  width: 100%;
  height: 46px;
  border: 1px solid #c9d6eb;
  background: #f9fbff;
  color: #24364d;
  padding: 0 14px;
  font: inherit;
}

.login-input:hover,
.login-input:focus {
  outline: none;
  border-color: #1a73c9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 201, 0.12);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
}

.login-code-btn {
  height: 46px;
  border: 1px solid #a6c6ec;
  background: #edf5ff;
  color: #1a73c9;
  font-size: 14px;
  font-weight: 700;
}

.login-code-btn:hover:not(:disabled) {
  border-color: #1a73c9;
  background: #dcebff;
  color: #0f5da6;
}

.login-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #657890;
  user-select: none;
}

.login-agreement input {
  margin-top: 4px;
  accent-color: #1a73c9;
}

.login-agreement a {
  color: #1a73c9;
  text-decoration: none;
}

.login-agreement a:hover {
  text-decoration: underline;
}

.login-submit-btn {
  height: 48px;
  border: none;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.login-submit-btn:hover {
  background: linear-gradient(180deg, #197dde 0%, #126ec9 100%);
}

.login-hint {
  margin: 0;
  min-height: 22px;
  font-size: 13px;
  color: #6f839d;
}

.login-hint.is-success {
  color: #23815e;
}

.login-hint.is-error {
  color: #c53d35;
}

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

  .nav-login-item {
    margin-left: 0;
  }

  .login-hero {
    min-height: auto;
  }

  .login-hero-content {
    min-height: auto;
    padding: 56px 24px 40px;
  }

  .login-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .login-page {
    width: calc(100% - 20px);
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-title {
    font-size: 28px;
  }

  .login-code-row {
    grid-template-columns: 1fr;
  }
}

.login-input.is-locked,
.login-input:disabled {
  background: #f0f2f5;
  color: #5a6a7d;
  border-color: #d0d8e4;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #5a6a7d;
}

.login-input.is-locked:hover,
.login-input.is-locked:focus,
.login-input:disabled:hover,
.login-input:disabled:focus {
  border-color: #d0d8e4;
  background: #f0f2f5;
  box-shadow: none;
}