:root {
  color: #1f2329;
  background: #eef1f5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --blue: #3370ff;
  --blue-dark: #245bdb;
  --ink: #15233e;
  --muted: #667085;
  --line: #dee3ec;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
}
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-shell {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  background: #fff;
  overflow: hidden;
}

.product-panel {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding: clamp(34px, 4vw, 60px) clamp(42px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  color: #f8fbff;
  background:
    radial-gradient(circle at 78% 18%, rgba(70, 142, 255, .22), transparent 28%),
    #172b4d;
  overflow: hidden;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.product-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: 8%;
  border: 72px solid rgba(76, 139, 245, .13);
  border-radius: 50%;
  z-index: -1;
}

.brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
}
.brand span { display: grid; gap: 3px; }
.brand strong { font-size: 16px; letter-spacing: .01em; }
.brand small { font: 600 9px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #99a8c1; letter-spacing: .18em; }

.product-copy {
  max-width: 610px;
  margin: auto 0 36px;
}
.status-line {
  width: fit-content;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b8c5da;
  font-size: 13px;
  font-weight: 600;
}
.status-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c78a;
  box-shadow: 0 0 0 5px rgba(52, 199, 138, .13);
}
.product-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.35vw, 68px);
  line-height: 1.11;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.product-copy p {
  max-width: 540px;
  margin: 26px 0 0;
  color: #b9c5d8;
  font-size: 16px;
  line-height: 1.85;
  text-wrap: pretty;
}

.workflow-card {
  max-width: 590px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.065);
  box-shadow: 0 22px 70px rgba(5, 18, 39, .2);
  backdrop-filter: blur(12px);
}
.workflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 600;
}
.workflow-head b { color: #68d5a9; font-size: 12px; }
.workflow-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 20px; }
.workflow-step { position: relative; display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 29px;
  right: -10px;
  height: 1px;
  background: rgba(255,255,255,.17);
}
.workflow-step i {
  position: relative;
  z-index: 1;
  flex: 0 0 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #aebbd0;
  background: #22395e;
  font-size: 11px;
  font-style: normal;
}
.workflow-step.done i { border-color: #46c798; color: #fff; background: #258563; }
.workflow-step.active i { border-color: #78a4ff; color: #fff; background: #3370ff; box-shadow: 0 0 0 5px rgba(51,112,255,.16); }
.workflow-step span { position: relative; z-index: 1; min-width: 0; color: #f4f7fb; font-size: 12px; font-weight: 600; }
.workflow-step small { display: block; margin-top: 5px; color: #91a1bb; font-size: 10px; line-height: 1.4; font-weight: 400; }
.product-panel footer { margin-top: 28px; color: #7185a4; font-size: 11px; letter-spacing: .04em; }

.auth-panel {
  position: relative;
  min-height: 100dvh;
  padding: 48px clamp(36px, 6vw, 92px) 34px;
  display: grid;
  align-content: center;
  background: #f8f9fb;
}
.auth-card { width: min(420px, 100%); margin: 0 auto; }
.mobile-brand { display: none; }
.auth-heading > span { display: block; margin-bottom: 10px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.auth-heading h2 { margin: 0; color: var(--ink); font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.auth-heading p { margin: 12px 0 34px; color: var(--muted); font-size: 14px; line-height: 1.7; }

form { display: grid; gap: 21px; }
.field { display: grid; gap: 9px; }
.field > span { color: #344054; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #98a2b3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 46px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  outline: none;
  color: #172b4d;
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-wrap input::placeholder { color: #a6adba; }
.input-wrap input:hover { border-color: #b8c0ce; }
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
.input-wrap.has-error input { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.09); }
.reveal {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  color: #8b95a5;
  background: transparent;
  cursor: pointer;
}
.reveal:hover { color: #344054; background: #f1f3f6; }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.form-message { min-height: 0; margin-top: -8px; color: #d92d20; font-size: 12px; line-height: 1.5; }
.form-message:not(:empty) { min-height: 18px; }
.submit-button {
  height: 50px;
  margin-top: -5px;
  padding: 0 17px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(51,112,255,.22);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.submit-button:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(51,112,255,.28); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.submit-button:hover svg { transform: translateX(2px); }
.submit-button.loading svg { animation: spin .8s linear infinite; }
.submit-button.loading svg path { d: path("M12 3a9 9 0 1 1-9 9"); }

.auth-meta { margin-top: 24px; padding-top: 19px; display: flex; justify-content: space-between; border-top: 1px solid #e4e7ec; color: #8a94a4; font-size: 11px; }
.auth-meta span { display: flex; align-items: center; gap: 6px; }
.lock-icon { width: 10px; height: 8px; border: 1.5px solid #7b8798; border-radius: 2px; position: relative; }
.lock-icon::before { content: ""; position: absolute; width: 6px; height: 5px; left: 1px; top: -6px; border: 1.5px solid #7b8798; border-bottom: 0; border-radius: 5px 5px 0 0; }
.copyright { position: absolute; bottom: 20px; left: 0; right: 0; margin: 0; text-align: center; color: #a1a9b5; font-size: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr; }
  .product-panel { display: none; }
  .auth-panel { min-height: 100dvh; padding: 34px 24px 48px; }
  .auth-card { width: min(440px, 100%); }
  .mobile-brand { margin-bottom: 64px; display: flex; align-items: center; gap: 11px; color: var(--ink); }
  .mobile-brand img { width: 38px; height: 38px; border-radius: 10px; }
  .mobile-brand strong { font-size: 15px; }
}

@media (max-width: 520px) {
  .auth-panel { align-content: start; padding-top: max(28px, env(safe-area-inset-top)); background: #fff; }
  .mobile-brand { margin-bottom: 58px; }
  .auth-heading h2 { font-size: 30px; }
  .auth-heading p { margin-bottom: 30px; }
  .auth-meta { align-items: flex-start; gap: 12px; flex-direction: column; }
}

@media (max-height: 720px) and (min-width: 981px) {
  .product-panel { padding-top: 30px; padding-bottom: 30px; }
  .product-copy { margin-bottom: 24px; }
  .product-copy h1 { font-size: clamp(38px, 4.3vw, 58px); }
  .product-copy p { margin-top: 16px; line-height: 1.65; }
  .workflow-card { padding: 17px 20px 19px; }
  .auth-heading p { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
