:root {
  --accent: #6366f1;
  --accent-deep: #4338ca;
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --bg: #eef2f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(800px 500px at 100% 100%, rgba(14, 165, 233, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  width: min(1160px, calc(100vw - 48px));
  min-height: min(680px, calc(100vh - 64px));
  margin: 32px auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 40px 100px -60px rgba(15, 23, 42, 0.5);
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 38px 44px 40px;
  overflow: hidden;
  background:
    radial-gradient(600px 420px at 85% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(145deg, #4f46e5 0%, #4338ca 55%, #312e81 100%);
  color: #fff;
}

.login-intro::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  content: "";
  pointer-events: none;
}

.intro-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 21px;
  font-weight: 800;
}

.intro-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.intro-brand span:not(.brand-mark) {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.intro-text {
  max-width: 360px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.intro-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.intro-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.point-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.14);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 44px;
  background: #fff;
}

.login-card {
  width: min(360px, 100%);
}

.login-head {
  margin-bottom: 28px;
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-head p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #f8fafc;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-field input::placeholder {
  color: #a8b3c4;
}

.login-field input:focus {
  border-color: #a5b4fc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.password-box {
  position: relative;
  display: block;
}

.password-box input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 6px 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.password-toggle:hover {
  background: #eef2ff;
  color: var(--accent-deep);
}

.login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.6;
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 14px 28px -16px rgba(79, 70, 229, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -18px rgba(79, 70, 229, 0.9);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.default-hint {
  margin: 18px 0 0;
  padding: 11px 12px;
  border: 1px dashed #c7d2fe;
  border-radius: 10px;
  background: #eef2ff;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.7;
}

.default-hint strong {
  color: var(--accent-deep);
}

.login-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.foot-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    width: min(520px, calc(100vw - 28px));
    min-height: 0;
    margin: 20px auto;
  }

  .login-intro {
    gap: 22px;
    padding: 28px 28px 30px;
  }

  .intro-copy h1 {
    font-size: 30px;
  }

  .intro-text,
  .intro-points {
    display: none;
  }

  .login-panel {
    padding: 30px 28px 34px;
  }
}

@media (max-width: 480px) {
  .login-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .login-intro {
    padding: 24px 22px;
  }

  .login-panel {
    padding: 26px 22px 34px;
  }
}
