:root {
  --ink: #17201e;
  --paper: #fffdf8;
  --canvas: #f3f0e9;
  --accent: #ef5b38;
  --line: #d8d2c6;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; color: var(--ink); background: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }

.auth-shell {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(430px, .92fr);
}

.auth-story {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  padding: 50px clamp(42px, 6vw, 92px);
  overflow: hidden;
  color: #fff8eb;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .1), transparent 25%),
    radial-gradient(circle at 18% 80%, rgba(70, 133, 107, .23), transparent 28%),
    #17201e;
}

.auth-story::before {
  position: absolute;
  top: 15%;
  right: -190px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018);
  content: "";
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  letter-spacing: .08em;
}

.brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f0c84d;
  border-radius: 10px 10px 10px 3px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
}

.story-copy {
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #e6bd49;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.05em;
}

.lead {
  max-width: 530px;
  margin: 23px 0 0;
  color: rgba(255,255,255,.49);
  font-size: 14px;
  line-height: 1.9;
}

.proof-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.proof-grid div {
  padding: 18px;
  background: rgba(19, 29, 26, .78);
}

.proof-grid strong {
  display: block;
  color: #f2cb59;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.proof-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.4);
  font-size: 10px;
}

.local-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(255,255,255,.37);
  font-size: 10px;
}

.local-note i {
  width: 7px;
  height: 7px;
  background: #6eb18c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110,177,140,.11);
}

.auth-panel {
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 40px 26px;
  background:
    linear-gradient(rgba(30,40,36,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,40,36,.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 28px 28px;
}

.auth-box {
  width: min(438px, 100%);
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 24px 70px rgba(23, 32, 30, .13);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  padding: 4px;
  background: #eeebe4;
  border-radius: 9px;
}

.auth-tabs button {
  height: 35px;
  color: #73776f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.auth-tabs button.active {
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 2px 7px rgba(35,42,38,.08);
}

.auth-heading > span {
  color: #9a9a91;
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.auth-heading h2 {
  margin: 6px 0 7px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.auth-heading p {
  margin: 0 0 24px;
  color: #878a82;
  font-size: 10px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: #525a54;
  font-size: 9px;
  font-weight: 600;
}

.auth-form input {
  height: 43px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid #d7d2c6;
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  transition: 140ms ease;
}

.auth-form input:focus {
  border-color: #98958c;
  box-shadow: 0 0 0 3px rgba(53,93,206,.07);
}

.auth-form input::placeholder { color: #aaa89f; }

.primary-button {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  color: white;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(239,91,56,.19);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.primary-button:hover { background: #d94725; }
.primary-button:disabled { cursor: wait; opacity: .65; }

.form-status {
  padding: 9px 11px;
  color: #812e1c;
  background: #f8ded5;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.6;
}

.first-user-note {
  margin: 2px 0 0;
  color: #99988f;
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
  padding-top: 16px;
  color: #a1a097;
  border-top: 1px solid #e8e3d9;
  font-size: 8px;
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 390px; padding: 32px 24px; }
  .story-copy { margin: 50px 0 25px; }
  h1 { font-size: 42px; }
  .proof-grid { display: none; }
  .auth-panel { min-height: auto; padding: 24px 15px 45px; }
  .auth-box { padding: 26px 22px; }
}
