:root {
  --auth-orange: #ff6a22;
  --auth-flare: #ffb25d;
  --auth-ink: #080706;
  --auth-muted: rgba(255, 244, 234, 0.58);
}

body.auth-locked {
  overflow: hidden;
  background: var(--auth-ink);
}

.auth-gate[hidden] {
  display: none;
}

.auth-gate {
  position: fixed;
  z-index: 10000;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff9f4;
  background:
    radial-gradient(circle at 73% 48%, rgba(255, 114, 30, 0.17), transparent 27%),
    linear-gradient(124deg, #060606 0%, #100906 52%, #020202 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  isolation: isolate;
}

.auth-gate::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  content: "";
}

.auth-gate::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8) 0 .55px, transparent .8px 3px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
  content: "";
}

.auth-ambient,
.auth-glow,
.auth-orbit,
.auth-scanline {
  position: absolute;
  pointer-events: none;
}

.auth-ambient { inset: 0; z-index: -1; }
.auth-glow-one {
  top: -23vw;
  right: 4vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb66f 0%, #f95b18 22%, rgba(148, 36, 0, .7) 43%, transparent 70%);
  filter: blur(18px);
  animation: authPulse 7s ease-in-out infinite alternate;
}

.auth-glow-two {
  bottom: -35vw;
  left: -18vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 28, .78), rgba(116, 26, 0, .35) 38%, transparent 68%);
  filter: blur(25px);
}

.auth-orbit {
  border: 1px solid rgba(255, 160, 91, .22);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.auth-orbit-one { top: -15%; right: 17%; width: 36vw; height: 58vw; }
.auth-orbit-two { top: -7%; right: 11%; width: 24vw; height: 47vw; }
.auth-scanline {
  top: 18%;
  right: 0;
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 89, .7), transparent);
  box-shadow: 0 0 28px rgba(255, 113, 39, .85);
}

.auth-brandline,
.auth-footer {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 72px);
  left: clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 244, 234, .54);
}

.auth-brandline { top: clamp(22px, 4vh, 44px); gap: 18px; }
.auth-brandline img { width: 56px; height: 56px; object-fit: contain; }
.auth-footnote i { width: 6px; height: 6px; border-radius: 50%; background: #72f6a4; box-shadow: 0 0 14px #53ef8d; }

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  align-items: center;
  gap: clamp(44px, 7vw, 116px);
  width: min(1180px, calc(100% - 9vw));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 105px 0 78px;
}

.auth-manifesto { position: relative; z-index: 2; min-width: 0; }
.auth-manifesto h1 { margin: 0; font: 800 clamp(72px, 8.7vw, 138px)/.78 Inter, Arial, sans-serif; letter-spacing: -.07em; color: #f8f4ef; text-transform: uppercase; }
.auth-manifesto h1 em { color: var(--auth-orange); font-style: normal; text-shadow: 0 0 54px rgba(255, 92, 18, .36); }
.auth-intro { width: min(520px, 88%); margin: 32px 0 27px; color: var(--auth-muted); font-size: 15px; line-height: 1.75; letter-spacing: .04em; }
.auth-capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-capabilities span { padding: 8px 12px; border: 1px solid rgba(255, 143, 77, .2); border-radius: 999px; color: rgba(255,255,255,.66); background: rgba(255, 91, 17, .06); font-size: 9px; letter-spacing: .15em; }
.auth-kinetic-mark { position: absolute; right: 5%; bottom: -42px; display: flex; gap: 9px; transform: rotate(-19deg); opacity: .7; }
.auth-kinetic-mark b { width: 10px; height: 70px; border-radius: 999px; background: linear-gradient(#ffbc7b, #fa4e0a); box-shadow: 0 0 28px rgba(255, 96, 20, .42); }
.auth-kinetic-mark b:nth-child(2) { height: 108px; transform: translateY(-19px); }
.auth-kinetic-mark b:nth-child(3) { height: 50px; transform: translateY(11px); }

.auth-panel-wrap { position: relative; z-index: 4; }
.auth-panel-wrap::before {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 93, 18, .26), transparent 66%);
  filter: blur(35px);
  content: "";
}

.auth-panel {
  position: relative;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(255, 192, 148, .24);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(58, 39, 31, .72), rgba(11, 10, 11, .82));
  box-shadow: 0 40px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(28px) saturate(125%);
}

.auth-panel-head { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .18em; }
.auth-step { color: #ffaf7b; }
.auth-heading { margin: 36px 0 32px; }
.auth-heading h2 { margin: 0 0 10px; color: #fff; font-size: clamp(27px, 2.4vw, 38px); letter-spacing: -.04em; }
.auth-heading p { margin: 0; color: rgba(255,255,255,.49); font-size: 13px; line-height: 1.6; }
.auth-field { display: grid; gap: 9px; margin-top: 17px; }
.auth-field[hidden] { display: none; }
.auth-field > span:first-child { display: flex; justify-content: space-between; color: rgba(255,255,255,.74); font-size: 12px; }
.auth-field > span:first-child b { color: rgba(255,255,255,.27); font-size: 8px; letter-spacing: .17em; }
.auth-field input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  outline: 0;
  color: #fffaf7;
  background: rgba(3,3,4,.42);
  font: inherit;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-field input::placeholder { color: rgba(255,255,255,.26); }
.auth-field input:focus { border-color: rgba(255, 127, 61, .7); background: rgba(14,8,6,.72); box-shadow: 0 0 0 4px rgba(255, 104, 31, .09), 0 0 30px rgba(255, 82, 11, .09); }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 68px; }
.auth-reveal { position: absolute; top: 50%; right: 14px; padding: 6px; border: 0; transform: translateY(-50%); color: #ff9d68; background: none; font-size: 8px; letter-spacing: .12em; cursor: pointer; }
.auth-error { min-height: 20px; margin: 11px 2px 0; color: #ff9876; font-size: 11px; line-height: 1.5; }
.auth-submit { display: flex; width: 100%; height: 58px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 19px 0 21px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(100deg, #ef3f09, #ff7a2d 60%, #ff9d57); box-shadow: 0 16px 38px rgba(234, 63, 7, .28), inset 0 1px rgba(255,255,255,.3); font: 700 14px/1 inherit; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.auth-submit:hover { transform: translateY(-2px); filter: saturate(1.15) brightness(1.06); }
.auth-submit:disabled { cursor: wait; filter: grayscale(.35); }
.auth-submit b { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; }
.auth-footnote { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; color: rgba(255,255,255,.34); font-size: 9px; }
.auth-footnote span { display: inline-flex; align-items: center; gap: 8px; }
.auth-footnote button { border: 0; color: rgba(255,178,126,.58); background: none; font-size: 9px; cursor: pointer; }
.auth-footnote button:hover { color: #ffb27e; }
.auth-footer { bottom: 28px; justify-content: flex-end; }

@keyframes authPulse {
  from { transform: scale(.94) translate3d(2%, -1%, 0); filter: blur(18px) saturate(.9); }
  to { transform: scale(1.06) translate3d(-2%, 2%, 0); filter: blur(24px) saturate(1.18); }
}

@media (max-width: 900px) {
  .auth-gate { overflow-y: auto; }
  .auth-stage { grid-template-columns: 1fr; align-content: center; gap: 38px; width: min(620px, calc(100% - 40px)); padding: 115px 0 100px; }
  .auth-manifesto h1 { font-size: clamp(62px, 16vw, 108px); }
  .auth-intro { margin-top: 25px; }
  .auth-kinetic-mark { right: 2%; bottom: -5px; transform: rotate(-19deg) scale(.72); }
  .auth-glow-one { width: 90vw; height: 90vw; right: -30vw; }
  .auth-orbit { display: none; }
}

@media (max-width: 560px) {
  .auth-brandline { top: 18px; }
  .auth-brandline img { width: 45px; height: 45px; }
  .auth-footer span:last-child { display: none; }
  .auth-stage { width: calc(100% - 28px); padding-top: 95px; }
  .auth-manifesto h1 { font-size: clamp(54px, 19vw, 82px); }
  .auth-intro { width: 100%; }
  .auth-panel { padding: 25px 20px; border-radius: 23px; }
  .auth-footer { bottom: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-glow-one { animation: none; }
  .auth-submit, .auth-field input { transition: none; }
}
