:root {
  color-scheme: light;
  --ink: #11183d;
  --muted: #6f7b96;
  --line: #dce4ee;
  --canvas: #edf4f8;
  --accent: #7048e8;
  --accent-strong: #4d2bc8;
  --focus: 0 0 0 3px rgba(112, 72, 232, .22);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.login-shell {
  min-height: 100vh;
  padding: clamp(14px, 2.5vw, 30px);
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(430px, 1.18fr);
  background:
    radial-gradient(circle at 75% 14%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(120deg, #e8f0f5, #f3f7fa 56%, #eaf2f6);
}

.identity-panel, .form-panel { min-height: calc(100vh - clamp(28px, 5vw, 60px)); }
.identity-panel {
  position: relative;
  padding: clamp(26px, 5vw, 62px);
  border-radius: 24px 7px 7px 24px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 74% 22%, rgba(135,117,231,.35), transparent 32%),
    linear-gradient(145deg, #182252 0%, #11183d 56%, #212c62 100%);
  box-shadow: 0 30px 70px rgba(28, 40, 72, .16);
  display: flex;
  flex-direction: column;
}
.identity-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -184px;
  bottom: -160px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018);
}
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(145deg, #8c6cff, #5d39dd); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.identity-copy { position: relative; z-index: 1; margin: auto 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #c8d2f1; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow i { width: 20px; height: 1px; background: #8f77f3; }
.identity-copy h1 { max-width: 8ch; margin: 22px 0 20px; font-size: clamp(38px, 4.5vw, 66px); line-height: 1.09; letter-spacing: -.055em; font-weight: 580; }
.identity-copy p { max-width: 34em; margin: 0; color: #b7c2e1; font-size: 14px; line-height: 1.8; }
.scope-card { position: relative; z-index: 1; width: min(100%, 340px); padding: 15px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 15px; }
.scope-index { color: #9278fa; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.scope-card strong, .scope-card small { display: block; }
.scope-card strong { font-size: 13px; }
.scope-card small { margin-top: 4px; color: #aebbdc; font-size: 11px; line-height: 1.45; }
.thread-lines { position: absolute; top: 18%; right: 0; width: 26%; display: grid; gap: 10px; transform: translateX(35%); }
.thread-lines span { height: 1px; background: linear-gradient(90deg, rgba(143,119,243,.72), transparent); }
.thread-lines span:nth-child(2) { transform: translateX(-22%); }
.thread-lines span:nth-child(3) { transform: translateX(12%); }

.form-panel {
  border-radius: 7px 24px 24px 7px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 30px 70px rgba(28, 40, 72, .1);
  display: grid;
  place-items: center;
}
.form-wrap { width: min(100% - 48px, 410px); padding: 32px 0; }
.step { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .17em; }
.form-wrap h2 { margin: 14px 0 8px; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -.04em; font-weight: 620; }
.form-wrap header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
form { margin-top: 38px; display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: #405077; font-size: 12px; font-weight: 650; }
input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: rgba(249,251,253,.86); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
input:hover { border-color: #c3cddd; background: white; }
input:focus { border-color: #9d89ee; background: white; box-shadow: var(--focus); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px; }
.password-field button { position: absolute; right: 7px; top: 7px; height: 34px; padding: 0 10px; border-radius: 8px; color: #5d6c8b; background: transparent; font-size: 11px; font-weight: 650; }
.password-field button:hover { color: var(--accent-strong); background: #f0edff; }
.login-error { padding: 11px 13px; border: 1px solid #f0cbd2; border-radius: 10px; color: #8e293b; background: #fff5f6; font-size: 12px; line-height: 1.55; }
.login-error[hidden] { display: none; }
.submit-button { height: 50px; padding: 0 16px 0 20px; border-radius: 13px; color: white; background: linear-gradient(135deg, #7048e8, #5230d2); box-shadow: 0 10px 22px rgba(64,49,119,.2); display: flex; align-items: center; justify-content: space-between; font-weight: 650; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(64,49,119,.25); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.submit-button b { width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.13); display: grid; place-items: center; font-size: 18px; font-weight: 400; }
.privacy-note { margin: 24px 0 0; color: #78849c; font-size: 11px; line-height: 1.55; }
.privacy-note span { margin-right: 7px; color: #29a875; font-size: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .identity-copy, .scope-card, .form-wrap { animation: settle .5s cubic-bezier(.16,1,.3,1) both; }
  .scope-card { animation-delay: .07s; }
  .form-wrap { animation-delay: .11s; }
  @keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 760px) {
  .login-shell { padding: 12px; grid-template-columns: 1fr; background: #edf4f8; }
  .identity-panel { min-height: 250px; padding: 24px; border-radius: 20px 20px 7px 7px; }
  .identity-copy { margin: 38px 0 27px; }
  .identity-copy h1 { max-width: none; margin: 14px 0 10px; font-size: 34px; }
  .identity-copy h1 br { display: none; }
  .identity-copy p { font-size: 12px; line-height: 1.6; }
  .scope-card, .thread-lines { display: none; }
  .form-panel { min-height: calc(100vh - 274px); border-radius: 7px 7px 20px 20px; align-items: start; }
  .form-wrap { width: min(100% - 38px, 430px); padding: 34px 0 38px; }
  .form-wrap h2 { font-size: 27px; }
  form { margin-top: 28px; }
  input, .submit-button { min-height: 50px; }
}
