:root {
  --ink: #2a251f;
  --muted: #776e64;
  --paper: #f4efe6;
  --gold: #ae7b48;
  --line: rgba(54, 46, 38, .17);
  --serif: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
}
button, input { font: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(410px, .82fr);
}

.auth-visual {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 5.2vw, 84px);
  color: #fffaf1;
  background:
    linear-gradient(110deg, rgba(25, 22, 19, .88), rgba(25, 22, 19, .4)),
    url("../assets/hainan-hotel-hero.png") center / cover;
}
.auth-visual__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.14), transparent 23%),
    linear-gradient(0deg, rgba(14,12,10,.42), transparent 48%);
}
.auth-visual__copy {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  padding-top: 26px;
  border-top: 1px solid rgba(255,250,241,.32);
}
.auth-kicker,
.auth-eyebrow {
  margin: 0 0 18px;
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .26em;
}
.auth-kicker { color: rgba(255,250,241,.72); }
.auth-visual h1 {
  margin: 0;
  font-size: clamp(42px, 4.25vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.auth-manifesto {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.45vw, 23px);
  letter-spacing: .08em;
  color: rgba(255,250,241,.72);
}
.auth-energy {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 5vw, 68px);
  right: clamp(28px, 5vw, 68px);
  width: 110px;
  height: 110px;
}
.auth-energy span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--size);
  height: var(--size);
  border: 1px solid color-mix(in srgb, var(--tone), white 35%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone), transparent 65%);
  box-shadow: inset 10px 12px 22px rgba(255,255,255,.18);
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 86px);
  background:
    radial-gradient(circle at 84% 10%, rgba(174,123,72,.15), transparent 25%),
    var(--paper);
}
.auth-panel__inner { width: min(420px, 100%); }
.auth-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
}
.auth-eyebrow { color: var(--gold); }
.auth-panel h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.08;
  font-weight: 400;
  white-space: nowrap;
}
.auth-intro {
  margin: 20px 0 38px;
  color: var(--muted);
  font: 14px/1.9 var(--sans);
}
.auth-form { display: grid; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-form label {
  color: var(--muted);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .12em;
}
.auth-form input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: rgba(255,253,248,.72);
  font-family: var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
#otp {
  font-size: 26px;
  letter-spacing: .32em;
  text-align: center;
}
.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(174,123,72,.12);
}
.auth-form button {
  min-height: 56px;
  margin-top: 5px;
  padding: 0 20px;
  border: 1px solid #2d2822;
  border-radius: 999px;
  cursor: pointer;
  color: #fffaf1;
  background: #2d2822;
  transition: transform .2s, opacity .2s;
}
.auth-form button:hover { transform: translateY(-1px); }
.auth-form button:disabled { cursor: wait; opacity: .58; transform: none; }
.auth-form .auth-secondary {
  min-height: 44px;
  margin-top: 0;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}
.auth-feedback {
  min-height: 24px;
  margin: 18px 0 0;
  color: #8a513e;
  font: 13px/1.6 var(--sans);
}
.auth-feedback.is-success { color: #567257; }
.auth-note {
  margin: 26px 0 0;
  color: #9b9288;
  font: 11px/1.6 var(--sans);
  letter-spacing: .08em;
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: 38vh;
    padding: 34px 26px;
  }
  .auth-visual__copy { padding-top: 18px; }
  .auth-visual h1 { font-size: clamp(34px, 10.5vw, 52px); }
  .auth-energy { width: 74px; height: 74px; top: 24px; right: 24px; }
  .auth-panel { min-height: 62vh; padding: 48px 26px 56px; }
  .auth-mark { display: none; }
}
