* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #334155;
  background: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.28), transparent 45%),
    linear-gradient(135deg, #0f172a, #1e293b 60%, #111827);
}

.login-card {
  width: 900px;
  max-width: 100%;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.login-visual {
  background: linear-gradient(150deg, #1d4ed8, #0f172a);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
}

.visual-inner { width: 100%; }

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.login-visual h1 {
  font-size: 27px;
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.login-visual p {
  margin: 0 0 28px;
  color: #c7d2fe;
  font-size: 14px;
}

.login-visual ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.login-visual li {
  font-size: 13px;
  color: #dbeafe;
  padding-left: 20px;
  position: relative;
}

.login-visual li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
}

.login-form {
  padding: 52px 44px 32px;
  display: flex;
  flex-direction: column;
}

.login-form h2 { margin: 0 0 6px; font-size: 24px; }
.login-tip { color: #94a3b8; font-size: 13px; margin: 0 0 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #475569; }
.field input {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img {
  width: 160px;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  background: #f8fafc;
  flex: none;
  object-fit: cover;
}

.alert {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert.show { display: block; }

.submit-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.submit-btn:hover { background: #1d4ed8; }
.submit-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.login-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 760px) {
  .login-card { grid-template-columns: 1fr; min-height: auto; }
  .login-visual { display: none; }
  .login-form { padding: 36px 26px 24px; }
}
