* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1f2937;
}

body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #312e81 100%);
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 380px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

/* ---------- 左侧品牌区 ---------- */

.login-brand-side {
  background: radial-gradient(120% 120% at 0% 0%, #1e293b 0%, #111827 60%, #0b1220 100%);
  color: #e2e8f0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.lb-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.lb-title {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
}

.lb-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.lb-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-points li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.lb-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

.lb-foot {
  margin-top: auto;
  padding-top: 28px;
  font-size: 11px;
  color: #64748b;
}

/* ---------- 右侧登录卡 ---------- */

.login-card {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}

.lc-head { margin-bottom: 22px; }

.lc-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.lc-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lf-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.lf-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lf-field input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.lf-submit {
  margin-top: 6px;
  padding: 12px 14px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}

.lf-submit:hover { filter: brightness(1.08); }
.lf-submit:active { transform: translateY(1px); }

.lc-note {
  margin-top: 22px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 720px) {
  .login-wrap { grid-template-columns: 1fr; max-width: 420px; }
  .login-brand-side { display: none; }
}
