.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  background: #0f172a;
}

/* 左侧品牌区铺满全屏 */
.login-hero {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 72px 80px 72px 88px;
  background: linear-gradient(145deg, #0b1220 0%, #162033 42%, #1a365d 100%);
  color: #fff;
  overflow: hidden;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  right: 28%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-right: 40px;
}

.login-hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.login-hero .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.login-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 0;
}

.login-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 40px;
  max-width: 420px;
}

.login-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-hero-features li {
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.login-hero-features li::before {
  display: none;
}

/* 右侧全高表单栏 */
.login-panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 56px 52px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.12);
}

.login-form-wrap {
  width: 100%;
  max-width: 356px;
}

.login-form-head {
  margin-bottom: 36px;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.login-form-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.login-form-head p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-field {
  display: block;
  margin-bottom: 18px;
}

.login-field span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  color: #64748b;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

.login-field input::placeholder {
  color: #94a3b8;
}

.login-field input:hover {
  border-color: #cbd5e1;
}

.login-field input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: stretch;
}

.login-captcha-row input {
  min-width: 0;
}

.login-captcha-img {
  width: 120px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: #f8fafc;
  object-fit: cover;
  transition: var(--transition);
}

.login-captcha-img:hover {
  border-color: #93c5fd;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}

.login-error {
  font-size: 13px;
  color: #dc2626;
  min-height: 20px;
  margin: 2px 0 4px;
}

.login-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--text-secondary);
}

.login-foot a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .login-page {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .login-hero {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
    padding: 40px 28px 36px;
    align-items: flex-start;
  }

  .login-hero::after {
    right: -10%;
    top: -20%;
    transform: none;
    width: 280px;
    height: 280px;
  }

  .login-hero h1 {
    font-size: 30px;
  }

  .login-hero .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .login-hero-title {
    gap: 12px;
    margin-bottom: 14px;
  }

  .login-hero p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .login-hero-features {
    gap: 8px;
  }

  .login-hero-features li {
    font-size: 12px;
    padding: 6px 12px;
  }

  .login-panel {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
    flex: 1;
    padding: 36px 28px 44px;
    box-shadow: none;
    border-top: 1px solid #f1f5f9;
  }

  .login-form-wrap {
    max-width: 100%;
  }

  .login-form-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .login-captcha-row {
    grid-template-columns: 1fr;
  }

  .login-captcha-img {
    width: 100%;
    height: 44px;
  }
}
