:root {
  --ink: #071C18;
  --forest: #0E5C4A;
  --emerald: #12946F;
  --mint: #DDF1E8;
  --gold: #D8B65C;
  --cream: #F5F1E8;
  --paper: #FFFDF8;
  --line: #E3DDD0;
  --text: #152A25;
  --muted: #71807A;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: Georgia, "Songti SC", "STSong", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.auth-body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
  min-height: 100vh;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 38px 56px 32px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 600px at 86% 8%, rgba(18, 148, 111, 0.28), transparent 60%),
    radial-gradient(700px 520px at 8% 94%, rgba(216, 182, 92, 0.16), transparent 60%),
    linear-gradient(145deg, #061A16 0%, #0A2A24 58%, #071F1A 100%);
  color: #EDF5F1;
}
.auth-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 40% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}
.auth-visual__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.auth-visual__orb--a {
  width: 420px; height: 420px;
  right: -120px; top: 18%;
  background: rgba(18, 148, 111, 0.55);
  animation: authFloat 12s ease-in-out infinite;
}
.auth-visual__orb--b {
  width: 300px; height: 300px;
  left: -80px; bottom: 6%;
  background: rgba(216, 182, 92, 0.24);
  animation: authFloat 15s ease-in-out infinite reverse;
}
@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 30px, 0) scale(1.06); }
}
.auth-visual__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 42px; height: 42px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)); }
.auth-brand strong { display: block; font-size: 18px; letter-spacing: 0.08em; }
.auth-brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 0.26em; color: rgba(237, 245, 241, 0.45); }
.auth-version {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(237, 245, 241, 0.5);
  border: 1px solid rgba(237, 245, 241, 0.16);
  border-radius: 20px;
  padding: 5px 12px;
}
.auth-visual__content {
  position: relative;
  z-index: 2;
  margin-top: 9vh;
  max-width: 620px;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(216, 182, 92, 0.3);
  background: rgba(216, 182, 92, 0.08);
  padding: 7px 14px;
  border-radius: 30px;
}
.auth-visual h1 {
  margin: 26px 0 20px;
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.auth-visual h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #E9D8A1 0%, #C8A94F 46%, #8FE0C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-visual p {
  margin: 0;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(237, 245, 241, 0.62);
}
.auth-metrics {
  display: flex;
  gap: 46px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(237, 245, 241, 0.12);
  max-width: 540px;
}
.auth-metrics div { display: flex; flex-direction: column; gap: 6px; }
.auth-metrics strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  color: #F4EEDC;
  line-height: 1;
}
.auth-metrics strong small { font-size: 16px; }
.auth-metrics span { font-size: 11px; letter-spacing: 0.1em; color: rgba(237, 245, 241, 0.45); }
.auth-orbit {
  position: absolute;
  right: 2%;
  bottom: -40px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.9;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(237, 245, 241, 0.14);
  border-radius: 50%;
  animation: orbitSpin 26s linear infinite;
}
.orbit--2 { inset: 44px; animation-duration: 20s; animation-direction: reverse; }
.orbit--3 { inset: 88px; animation-duration: 16s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit__node {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0A2A24;
  border: 1px solid rgba(216, 182, 92, 0.42);
  color: var(--gold);
  font-size: 16px;
  box-shadow: 0 0 30px rgba(18, 148, 111, 0.45);
}
.orbit--2 .orbit__node { border-color: rgba(143, 224, 192, 0.4); color: #8FE0C0; }
.orbit--3 .orbit__node { border-color: rgba(237, 245, 241, 0.3); color: #E7EFEA; }
.orbit__core {
  position: absolute;
  inset: 128px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #1B6B57, #08241E 76%);
  border: 1px solid rgba(216, 182, 92, 0.34);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.orbit__core img { width: 32px; height: 32px; }
.auth-visual__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 620px;
}
.auth-quote {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(237, 245, 241, 0.4);
  max-width: 420px;
}
.auth-company { font-size: 10px; letter-spacing: 0.1em; color: rgba(237, 245, 241, 0.28); white-space: nowrap; }

.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 44px clamp(32px, 5vw, 74px) 28px;
  background:
    radial-gradient(560px 360px at 100% 0%, rgba(216, 182, 92, 0.12), transparent 62%),
    radial-gradient(480px 360px at 0% 100%, rgba(18, 148, 111, 0.08), transparent 60%),
    var(--cream);
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(227, 221, 208, 0.9);
  border-radius: 24px;
  padding: 38px 38px 30px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px rgba(21, 42, 37, 0.09),
    0 6px 18px rgba(21, 42, 37, 0.04);
  backdrop-filter: blur(14px);
}
.auth-card__kicker { font-size: 10px; letter-spacing: 0.26em; color: var(--emerald); font-weight: 600; }
.auth-card__head h2 { margin: 12px 0 8px; font-size: 27px; letter-spacing: 0.02em; font-weight: 600; }
.auth-card__head p { margin: 0 0 24px; font-size: 12.5px; color: var(--muted); }
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.auth-alert i { font-size: 15px; margin-top: 1px; }
.auth-alert--error { background: #FBEDEC; color: #A93A34; border: 1px solid #F1D3D0; }
.auth-alert--ok { background: #EAF6F0; color: #106B52; border: 1px solid #CFEADF; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field > span { font-size: 12px; color: #4C5B55; font-weight: 500; letter-spacing: 0.02em; }
.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #FFFEFB;
  border-radius: 11px;
  padding: 0 13px;
  height: 46px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.auth-input > i { font-size: 16px; color: #93A19B; }
.auth-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
  height: 100%;
}
.auth-input input::placeholder { color: #ABB5B0; }
.auth-input:focus-within {
  border-color: #2A8C72;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 148, 111, 0.1);
}
.auth-eye { border: 0; background: transparent; color: #93A19B; cursor: pointer; padding: 4px; font-size: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.auth-check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #5D6B65; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check span {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1px solid #C9D2CC;
  background: #fff;
  position: relative;
  transition: all 0.16s;
}
.auth-check input:checked + span { background: var(--forest); border-color: var(--forest); }
.auth-check input:checked + span::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.auth-check--full { grid-column: 1 / -1; margin-top: 2px; }
.auth-link { color: var(--forest); font-weight: 500; }
.auth-submit {
  margin-top: 4px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #0C4F40, #0F6B54 60%, #148064);
  color: #FFFDF7;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 26px rgba(14, 92, 74, 0.22);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(14, 92, 74, 0.27); filter: brightness(1.03); }
.auth-submit:active { transform: translateY(0); }
.auth-submit--full { grid-column: 1 / -1; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-switch a { color: var(--forest); font-weight: 600; margin-left: 4px; }
.auth-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  color: #9AA49F;
  letter-spacing: 0.03em;
  padding-top: 22px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.auth-shell--register { grid-template-columns: minmax(0, 1fr) minmax(590px, 0.95fr); }
.auth-shell--register .auth-panel { padding-left: clamp(26px, 4vw, 56px); padding-right: clamp(26px, 4vw, 56px); }
.auth-shell--register .auth-card { max-width: 560px; }
.auth-field { min-width: 0; }
.auth-shell--register .auth-visual__content { margin-top: 6vh; }
.auth-visual__content--compact h1 { font-size: clamp(32px, 2.7vw, 46px); }
.auth-steps { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.auth-step { display: flex; gap: 14px; align-items: center; }
.auth-step > span {
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
  width: 40px;
  border-bottom: 1px solid rgba(216, 182, 92, 0.35);
  padding-bottom: 4px;
}
.auth-step strong { display: block; font-size: 13px; font-weight: 500; }
.auth-step small { display: block; margin-top: 3px; font-size: 11px; color: rgba(237, 245, 241, 0.45); }
.toast-layer { position: fixed; z-index: 9999; top: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #10231F;
  color: #F3F7F4;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.24s ease;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 22px; }
  .auth-card { padding: 30px 24px; }
  .auth-form--grid { grid-template-columns: 1fr; }
}
