:root {
  color-scheme: dark;
  --canvas: #050507;
  --panel: #111318;
  --ink: #f6f8fb;
  --muted: #99a4b5;
  --dim: #657083;
  --line: rgba(255, 255, 255, 0.11);
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --danger: #ff6b78;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button { color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

[hidden] { display: none !important; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
  min-height: 100vh;
}

.brand-stage {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 30%, rgba(37, 244, 238, 0.12), transparent 30%),
    radial-gradient(circle at 86% 74%, rgba(254, 44, 85, 0.14), transparent 32%),
    linear-gradient(140deg, #090a0f, #050507 58%, #0b0b10);
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 2%, #000 28%, #000 75%, transparent 100%);
}

.stage-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.stage-glow.cyan { top: 8%; left: 22%; background: var(--cyan); }
.stage-glow.pink { right: 4%; bottom: 8%; background: var(--pink); }

.brand,
.mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
}

.brand-mark::before,
.brand-mark i {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  content: "";
}

.brand-mark::before { transform: translate(-3px, 3px); background: var(--cyan); }
.brand-mark i { transform: translate(3px, -3px); background: var(--pink); mix-blend-mode: screen; }

.brand-mark b {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #07080b;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.brand strong,
.brand small,
.mobile-brand strong,
.mobile-brand small { display: block; }

.brand strong,
.mobile-brand strong { font-size: 20px; letter-spacing: 0.12em; }

.brand small,
.mobile-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.stage-copy {
  position: relative;
  z-index: 1;
  max-width: 710px;
  margin: auto 0;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c9d0dc;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.eyebrow i,
.stage-foot span i,
.form-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(37, 244, 238, 0.75);
}

.stage-copy h1 {
  margin: 28px 0 22px;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.stage-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.capability-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #c8cfda;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.capability-row i { color: var(--cyan); font-style: normal; }
.capability-row span:nth-child(3) i { color: #ff7691; }
.capability-row span:nth-child(4) i { color: #f2a93b; }

.stage-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  font-size: 9px;
}

.stage-foot span { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 0.12em; }

.login-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 38px;
  place-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(254, 44, 85, 0.06), transparent 32%),
    #08090d;
}

.mobile-brand { display: none; }

.login-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 19, 24, 0.92);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

.login-kicker {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.login-card h2 {
  margin: 14px 0 0;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.login-card header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

form { margin-top: 34px; }

.field { display: block; margin-top: 20px; }
.field:first-child { margin-top: 0; }

.field > span {
  display: block;
  margin: 0 0 9px 2px;
  color: #c9d0db;
  font-size: 11px;
  font-weight: 800;
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 50px;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: 150ms ease;
}

.input-wrap:focus-within {
  border-color: rgba(37, 244, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.07);
}

.input-wrap > i {
  color: var(--dim);
  font-size: 14px;
  font-style: normal;
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.input-wrap input::placeholder { color: #596476; }

.password-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  color: var(--dim);
  font-size: 11px;
}

.form-note span { display: inline-flex; align-items: center; gap: 7px; }
.form-note i { width: 5px; height: 5px; }

.form-error {
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 120, 0.24);
  border-radius: 9px;
  background: rgba(255, 107, 120, 0.08);
  color: #ff9aa5;
  font-size: 12px;
  line-height: 1.5;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 51px;
  margin-top: 22px;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 16px 34px rgba(254, 44, 85, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  transition: 150ms ease;
}

.login-button:hover { transform: translateY(-1px); background: #ff456a; }
.login-button:disabled { transform: none; opacity: 0.64; cursor: wait; }
.login-button i { font-size: 17px; font-style: normal; }

.login-card footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.shield {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(37, 244, 238, 0.08);
  color: var(--cyan);
  font-size: 10px;
}

.login-card footer p { margin: 0; }
.login-card footer strong,
.login-card footer small { display: block; }
.login-card footer strong { font-size: 11px; }
.login-card footer small { margin-top: 4px; color: var(--dim); font-size: 10px; line-height: 1.45; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-stage { display: none; }
  .login-stage { align-content: center; gap: 42px; padding: 28px; }
  .mobile-brand { display: flex; width: min(440px, 100%); }
}

@media (max-width: 520px) {
  .login-stage { align-content: start; gap: 36px; padding: 24px 16px; }
  .mobile-brand { margin-top: 8px; }
  .login-card { padding: 29px 22px; border-radius: 18px; }
  .login-card h2 { font-size: 28px; }
  .form-note,
  .form-error,
  .login-card footer small { font-size: 12px; }
  .form-note span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Fluid login scale shared across ultrawide, laptop, tablet and phone */
.login-shell {
  grid-template-columns: minmax(0, 1.18fr) minmax(540px, 0.82fr);
}

.brand-stage {
  padding: clamp(38px, 4.2vw, 82px);
}

.brand small,
.mobile-brand small {
  font-size: 11px;
}

.stage-copy {
  max-width: 840px;
}

.eyebrow {
  font-size: clamp(11px, 0.65vw, 13px);
}

.stage-copy h1 {
  max-width: 820px;
  margin: 30px 0 24px;
  font-size: clamp(52px, 4.6vw, 86px);
}

.stage-copy p {
  max-width: 680px;
  font-size: clamp(16px, 0.9vw, 18px);
  line-height: 1.8;
}

.capability-row {
  margin-top: 38px;
}

.capability-row span {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 13px;
}

.stage-foot {
  font-size: 11px;
}

.login-stage {
  padding: clamp(32px, 3.4vw, 68px);
  background:
    linear-gradient(90deg, rgba(37, 244, 238, 0.025), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(254, 44, 85, 0.06), transparent 32%),
    #08090d;
}

.login-card {
  width: clamp(480px, 29vw, 560px);
  padding: clamp(40px, 2.6vw, 54px);
  border-radius: 16px;
  background: #111318;
  box-shadow: 6px 6px 0 rgba(37, 244, 238, 0.035), -4px -4px 0 rgba(254, 44, 85, 0.025), 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.login-kicker {
  font-size: 12px;
}

.login-card h2 {
  margin-top: 17px;
  font-size: clamp(34px, 2vw, 40px);
}

.login-card header p {
  margin-top: 12px;
  font-size: 15px;
}

form {
  margin-top: 40px;
}

.field {
  margin-top: 23px;
}

.field > span {
  margin-bottom: 10px;
  font-size: 14px;
}

.input-wrap {
  height: 58px;
  padding-inline: 16px;
  border-radius: 10px;
}

.input-wrap input {
  font-size: 16px;
}

.password-toggle,
.form-note {
  font-size: 13px;
}

.login-button {
  height: 58px;
  margin-top: 26px;
  padding-inline: 22px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(37, 244, 238, 0.2), 0 16px 34px rgba(254, 44, 85, 0.18);
  font-size: 16px;
}

.login-card footer {
  margin-top: 32px;
  padding-top: 24px;
}

.shield {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.login-card footer strong {
  font-size: 14px;
}

.login-card footer small {
  font-size: 12px;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-stage {
    display: none;
  }

  .login-stage {
    align-content: center;
    gap: 42px;
    padding: 36px 28px;
  }

  .mobile-brand {
    display: flex;
    width: min(520px, 100%);
  }

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

@media (max-width: 520px) {
  .login-stage {
    align-content: start;
    gap: 34px;
    padding: 24px 16px;
  }

  .login-card {
    width: 100%;
    padding: 32px 22px;
    border-radius: 14px;
  }

  .login-card h2 {
    font-size: 32px;
  }

  .login-card header p {
    font-size: 14px;
  }

  form {
    margin-top: 34px;
  }

  .input-wrap,
  .login-button {
    height: 56px;
  }

  .form-note,
  .form-error,
  .login-card footer small {
    font-size: 12px;
  }
}
