:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: rgba(16, 22, 32, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f3ec;
  --muted: #8a96a9;
  --accent: #ff6842;
  --gold: #d8b474;
  --teal: #58d7bf;
  --danger: #ff8b94;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 82% 8%, rgba(218, 125, 64, 0.13), transparent 27%),
    radial-gradient(circle at 8% 92%, rgba(47, 125, 122, 0.11), transparent 28%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  color: inherit;
  font: inherit;
}

.auth-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.auth-glow-one {
  top: -240px;
  right: 8%;
  width: 520px;
  height: 520px;
  background: rgba(217, 116, 62, 0.1);
}

.auth-glow-two {
  bottom: -300px;
  left: 10%;
  width: 560px;
  height: 560px;
  background: rgba(37, 114, 113, 0.08);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.auth-shell {
  display: grid;
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 14, 21, 0.72);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(22px);
}

.auth-intro {
  position: relative;
  padding: 54px 58px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%),
    radial-gradient(circle at 85% 72%, rgba(224, 148, 73, 0.15), transparent 31%);
}

.auth-intro::after {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.018),
    0 0 0 96px rgba(255, 255, 255, 0.012);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.auth-brand > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  background: linear-gradient(145deg, #ff754f, #a62f20);
  box-shadow: 0 12px 24px rgba(173, 55, 28, 0.3);
}

.auth-brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.auth-overline,
.card-kicker {
  margin: 70px 0 17px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.auth-intro h1 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.auth-lead {
  max-width: 430px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.auth-features span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aa5b6;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-card {
  display: flex;
  min-height: 570px;
  flex-direction: column;
  justify-content: center;
  padding: 50px 46px;
  background: rgba(6, 9, 14, 0.34);
}

.auth-card .card-kicker {
  margin: 0 0 11px;
}

.auth-card h2,
.setup-card h2 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 600;
}

.card-help {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.auth-form,
.setup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label > span {
  color: #8995a8;
  font-size: 10px;
}

label > span em {
  margin-left: 5px;
  color: #59667a;
  font-size: 8px;
  font-style: normal;
}

input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: #eef0f1;
  font-size: 12px;
  background: rgba(2, 5, 9, 0.45);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: rgba(255, 104, 66, 0.52);
  box-shadow: 0 0 0 3px rgba(255, 104, 66, 0.08);
}

.auth-form button,
.setup-form button {
  display: flex;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #ff7350, #d63c24);
  box-shadow: 0 13px 28px rgba(195, 55, 29, 0.25);
  cursor: pointer;
}

.auth-form button:hover,
.setup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(195, 55, 29, 0.34);
}

.form-error {
  margin-bottom: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 109, 122, 0.2);
  border-radius: 10px;
  color: #ff9da5;
  font-size: 10px;
  line-height: 1.6;
  background: rgba(255, 109, 122, 0.07);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #596679;
  font-size: 8px;
}

.security-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(88, 215, 191, 0.65);
}

.setup-page {
  min-height: 100vh;
  padding: 28px;
}

.setup-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 8px 24px;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #657185;
  font-size: 9px;
}

.setup-step i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(216, 180, 116, 0.25);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: normal;
}

.setup-step b {
  width: 42px;
  height: 1px;
  background: var(--line);
}

.setup-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 16, 24, 0.88);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.setup-aside {
  padding: 52px 40px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 95%, rgba(50, 125, 120, 0.16), transparent 35%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), transparent 50%);
}

.setup-aside .auth-overline {
  margin: 0 0 14px;
}

.setup-aside h1 {
  margin: 0 0 23px;
  font-family: "STSong", "SimSun", serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.setup-aside > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.setup-aside code,
.card-help code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #d9c296;
  font-family: Consolas, monospace;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.setup-aside ul {
  display: grid;
  gap: 12px;
  margin: 29px 0;
  padding: 0;
  list-style: none;
}

.setup-aside li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9aa5b6;
  font-size: 10px;
}

.setup-aside li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.setup-tip {
  margin-top: 28px;
  padding: 12px 13px;
  border: 1px solid rgba(216, 180, 116, 0.15);
  border-radius: 10px;
  color: #9a8b70;
  font-size: 9px;
  line-height: 1.7;
  background: rgba(216, 180, 116, 0.04);
}

.setup-card {
  padding: 42px 48px;
}

.setup-card .card-kicker {
  margin: 0 0 9px;
}

.setup-card h2 {
  font-size: 28px;
}

.setup-form {
  gap: 12px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0 2px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #cbd1da;
  font-size: 10px;
  font-weight: 650;
}

.form-section-title:first-of-type {
  margin-top: 0;
  border-top: 0;
}

.form-section-title span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 9px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 11px;
}

.setup-form input {
  height: 41px;
}

@media (max-width: 860px) {
  .auth-page {
    padding: 16px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    padding: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-overline {
    margin-top: 38px;
  }

  .auth-intro h1 {
    font-size: 38px;
  }

  .auth-lead,
  .auth-features {
    display: none;
  }

  .auth-card {
    min-height: auto;
    padding: 32px;
  }

  .setup-page {
    padding: 16px;
  }

  .setup-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-aside {
    padding: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .setup-aside h1 {
    font-size: 34px;
  }

  .setup-aside ul,
  .setup-tip {
    display: none;
  }

  .setup-card {
    padding: 32px;
  }
}

@media (max-width: 520px) {
  .auth-intro,
  .auth-card,
  .setup-aside,
  .setup-card {
    padding: 24px;
  }

  .auth-intro h1 {
    font-size: 31px;
  }

  .setup-step span {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
