:root {
  color-scheme: light;
  --background: #ffffff;
  --canvas: #fbfbfc;
  --surface: #ffffff;
  --surface-soft: #fafafb;
  --surface-hover: #f5f7f9;
  --text: #18191b;
  --text-secondary: #4f5359;
  --muted: #73777d;
  --muted-light: #a3a6ab;
  --line: #e8e8e8;
  --line-strong: #dcdde0;
  --primary: #5aa1ef;
  --primary-strong: #438fe1;
  --primary-soft: #edf6ff;
  --primary-border: #d7eafd;
  --green: #119a6c;
  --green-soft: #eaf8f2;
  --red: #d4514e;
  --red-soft: #fff0ef;
  --header-height: 58px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 20px 60px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { min-width: 320px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0, #ffffff 330px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
svg { display: block; }
button, input { font: inherit; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, white);
  outline-offset: 2px;
}

.login-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px) saturate(1.2);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ed792f;
  background: #fff2e8;
}
.brand-mark svg { width: 21px; height: 21px; fill: currentColor; }
.brand-copy { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.brand-copy strong { font-size: 15px; font-weight: 720; letter-spacing: -.015em; }
.brand-copy > span:last-child { color: var(--text-secondary); font-size: 13px; }
.brand-divider { width: 1px; height: 14px; background: var(--line-strong); }
.header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-secondary);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-back:hover { color: var(--text); background: var(--surface-hover); }

.login-shell {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 44px 24px;
}
.login-panel {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.login-visual {
  position: relative;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 54px 52px;
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 255, 255, .9), transparent 31%),
    radial-gradient(circle at 96% 95%, rgba(160, 211, 247, .32), transparent 36%),
    linear-gradient(145deg, #f1faf7 0%, #f3f9ff 100%);
}
.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(90, 161, 239, .12);
  border-radius: 50%;
  pointer-events: none;
}
.login-visual::before { width: 340px; height: 340px; right: -190px; top: -150px; }
.login-visual::after { width: 210px; height: 210px; right: -80px; top: -80px; }
.visual-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 154, 108, .12);
  border-radius: 14px;
  color: var(--green);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 24px rgba(38, 107, 89, .08);
}
.visual-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visual-kicker {
  position: relative;
  z-index: 1;
  margin: 25px 0 9px;
  color: #5f7d72;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.login-visual h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #17211d;
  font-size: clamp(32px, 3.7vw, 43px);
  line-height: 1.17;
  font-weight: 760;
  letter-spacing: -.045em;
}
.visual-description {
  position: relative;
  z-index: 1;
  max-width: 455px;
  margin: 17px 0 0;
  color: #5e7069;
  font-size: 14px;
  line-height: 1.75;
}
.visual-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}
.visual-features li { display: flex; align-items: center; gap: 9px; color: #445a52; font-size: 12px; }
.visual-features li span {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(17, 154, 108, .12);
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 44px;
  border-left: 1px solid var(--line);
  background: #fff;
}
.login-heading { margin-bottom: 27px; }
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(17, 154, 108, .1); }
.login-heading h2 { margin: 14px 0 0; font-size: 25px; line-height: 1.25; font-weight: 730; letter-spacing: -.035em; }
.login-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
label { display: block; margin: 0 0 7px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
input, button { width: 100%; border-radius: 9px; }
input {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  outline: none;
  color: var(--text);
  background: white;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: var(--muted-light); }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(90, 161, 239, .12); }
button {
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid var(--primary);
  color: white;
  background: var(--primary);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
button:hover { border-color: var(--primary-strong); background: var(--primary-strong); box-shadow: 0 6px 18px rgba(90, 161, 239, .2); }
button:disabled { opacity: .56; cursor: wait; box-shadow: none; }
.error {
  display: none;
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  line-height: 1.5;
}
.error:not(:empty) { display: block; }
.security-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 900px) {
  .login-shell { padding: 28px 18px; }
  .login-panel { grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); }
  .login-visual { min-height: 510px; padding: 40px 32px; }
  .login-card { padding: 38px 30px; }
}

@media (max-width: 760px) {
  .login-shell { display: block; padding: 16px 14px 28px; }
  .login-panel { display: block; border-radius: 18px; }
  .login-visual { min-height: 0; padding: 30px 25px 28px; }
  .visual-icon { width: 42px; height: 42px; border-radius: 13px; }
  .visual-kicker { margin-top: 20px; }
  .login-visual h1 { font-size: 30px; }
  .visual-description { margin-top: 13px; font-size: 13px; line-height: 1.7; }
  .visual-features { gap: 9px; margin-top: 22px; }
  .login-card { padding: 29px 24px 30px; border-top: 1px solid var(--line); border-left: 0; }
  .login-heading { margin-bottom: 23px; }
  .login-heading h2 { font-size: 23px; }
  .header-back { min-height: 44px; }
}

@media (max-width: 480px) {
  .login-header { padding: 0 12px; }
  .brand-copy > span:last-child, .brand-divider { display: none; }
  .header-back { display: none; }
  .login-shell { padding: 12px 10px 22px; }
  .login-panel { border-radius: 16px; }
  .login-visual { padding: 25px 21px 24px; }
  .login-visual h1 { font-size: 27px; }
  .visual-description { font-size: 13px; }
  .login-card { padding: 25px 20px 27px; }
  input, button { min-height: 44px; }
}
