:root {
  color-scheme: light dark;
  --canvas: light-dark(#eef2ec, #0d1310);
  --surface: light-dark(#ffffff, #161e19);
  --surface-soft: light-dark(#f5f8f4, #1c2620);
  --text: light-dark(#18221d, #eef3ef);
  --text-soft: light-dark(#68746d, #98a69d);
  --text-faint: light-dark(#929e97, #75827a);
  --line: light-dark(#dfe6df, #2b3931);
  --line-strong: light-dark(#ccd7ce, #3b4c42);
  --accent: #e36b39;
  --accent-dark: #c95526;
  --green: light-dark(#2d7d5b, #7ac9a5);
  --green-soft: light-dark(#e6f3ec, #1d3529);
  --danger: light-dark(#b8423b, #f0938c);
  --danger-soft: light-dark(#fcebea, #3a2321);
  --sidebar: #13221b;
  --shadow: 0 30px 80px light-dark(rgba(23, 38, 29, .16), rgba(0, 0, 0, .48));
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, light-dark(rgba(227, 107, 57, .10), rgba(227, 107, 57, .08)), transparent 30%),
    radial-gradient(circle at 90% 88%, light-dark(rgba(45, 125, 91, .12), rgba(45, 125, 91, .10)), transparent 34%),
    var(--canvas);
  color: var(--text);
  font-family: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 540px);
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(227, 107, 57, .19), transparent 24%),
    radial-gradient(circle at 12% 86%, rgba(122, 201, 165, .13), transparent 27%),
    linear-gradient(145deg, #15261e 0%, #101b15 58%, #0c1511 100%);
  color: #f2f7f3;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand::before { width: 420px; height: 420px; right: -210px; top: 92px; }
.auth-brand::after { width: 270px; height: 270px; right: -118px; top: 168px; }

.auth-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-logo-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ef7f4d, #d75c29);
  box-shadow: 0 12px 26px rgba(208, 80, 34, .28);
  color: #fff;
  font-size: 19px;
  font-weight: 750;
}

.auth-logo strong { display: block; font-size: 20px; letter-spacing: .08em; }
.auth-logo span { display: block; margin-top: 2px; color: #91a49a; font-size: 10px; letter-spacing: .16em; }

.auth-brand-copy { position: relative; z-index: 1; max-width: 470px; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #f2a17c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-kicker::before { content: ""; width: 20px; height: 1.5px; background: currentColor; }
.auth-brand h2 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.auth-brand-copy > p {
  max-width: 420px;
  margin: 20px 0 0;
  color: #a9b8af;
  font-size: 14px;
  line-height: 1.8;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #d9e3dc;
  font-size: 12px;
}

.auth-point i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(122, 201, 165, .11);
  color: #8ed3b2;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.auth-brand-foot { position: relative; z-index: 1; color: #70847a; font-size: 10px; letter-spacing: .06em; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  background: var(--surface);
}

.auth-card { width: min(100%, 382px); }
.auth-eyebrow {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.auth-card h1 { margin: 18px 0 7px; font-size: 30px; font-weight: 680; letter-spacing: -.035em; }
.auth-intro { margin: 0 0 28px; color: var(--text-soft); font-size: 12.5px; line-height: 1.7; }

.auth-form { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.auth-field small { color: var(--text-faint); font-size: 9.5px; font-weight: 400; }
.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.auth-field input::placeholder { color: var(--text-faint); }
.auth-field input:focus { border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  line-height: 1.55;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid var(--accent-dark);
  border-radius: 10px;
  background: linear-gradient(180deg, #ee7c4b, #df6634);
  box-shadow: 0 10px 22px rgba(207, 86, 37, .20);
  color: #fffaf7;
  font-size: 12.5px;
  font-weight: 680;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(207, 86, 37, .26); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }

.auth-switch { margin: 22px 0 0; color: var(--text-soft); font-size: 11.5px; text-align: center; }
.auth-switch a { color: var(--green); font-weight: 650; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-hint {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .auth-page { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand { min-height: auto; padding: 28px 30px 32px; }
  .auth-brand-copy { margin-top: 36px; }
  .auth-brand h2 { font-size: 34px; }
  .auth-brand-copy > p, .auth-brand-foot { display: none; }
  .auth-points { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
  .auth-point { padding: 10px; font-size: 10.5px; }
  .auth-panel { padding: 38px 30px 42px; }
}

@media (max-width: 620px) {
  .auth-page { padding: 0; }
  .auth-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .auth-brand { padding: 24px 22px 27px; }
  .auth-logo-mark { width: 39px; height: 39px; border-radius: 11px; }
  .auth-brand-copy { margin-top: 30px; }
  .auth-brand h2 { font-size: 30px; }
  .auth-points { display: none; }
  .auth-panel { align-items: flex-start; padding: 32px 22px 48px; }
  .auth-card { width: 100%; }
  .auth-card h1 { font-size: 27px; }
}

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