:root {
  --paper: #f4f2ea;
  --paper-soft: #d9d7ce;
  --muted: #92968c;
  --quiet: #5d6259;
  --gold: #d7b86f;
  --gold-soft: #f0d99c;
  --mint: #8ce3d2;
  --danger: #e98273;
  --ink: #050706;
  --deep: #090b09;
  --surface: rgba(14, 17, 14, 0.86);
  --surface-soft: rgba(19, 22, 18, 0.72);
  --line: rgba(232, 224, 195, 0.1);
  --line-strong: rgba(215, 184, 111, 0.26);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 22%, rgba(215, 184, 111, 0.06), transparent 28rem),
    radial-gradient(circle at 84% 76%, rgba(90, 144, 124, 0.07), transparent 26rem),
    #050706;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.auth-field,
.auth-noise,
.auth-halo {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-field {
  z-index: 0;
  opacity: 0.58;
}

.auth-noise {
  z-index: 5;
  opacity: 0.025;
  background:
    repeating-radial-gradient(circle at 17% 29%, #fff 0 0.32px, transparent 0.7px 4px),
    repeating-radial-gradient(circle at 71% 63%, #fff 0 0.28px, transparent 0.62px 5px);
  background-size: 9px 11px, 13px 15px;
  mix-blend-mode: soft-light;
}

.auth-halo {
  z-index: 0;
  inset: 8% 8% auto auto;
  width: 36vw;
  height: 36vw;
  border: 1px solid rgba(215, 184, 111, 0.035);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(215, 184, 111, 0.012),
    0 0 0 14vw rgba(215, 184, 111, 0.009);
  animation: halo-breathe 7s ease-in-out infinite;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(430px, 0.96fr) minmax(520px, 1.04fr);
  min-height: 100vh;
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(32px, 5vw, 68px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(20, 23, 19, 0.86), rgba(7, 9, 7, 0.76)),
    radial-gradient(circle at 48% 48%, rgba(215, 184, 111, 0.05), transparent 38%);
  backdrop-filter: blur(22px);
}

.auth-story::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(215, 184, 111, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 184, 111, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.auth-story::after {
  position: absolute;
  right: -18vw;
  bottom: -20vw;
  width: 45vw;
  height: 45vw;
  content: "";
  border: 1px solid rgba(215, 184, 111, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 5vw rgba(215, 184, 111, 0.014),
    0 0 0 11vw rgba(215, 184, 111, 0.01);
}

.product-lockup,
.story-copy,
.signal-card,
.story-footer {
  position: relative;
  z-index: 1;
}

.product-lockup,
.mobile-lockup {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
}

.tpl-glyph {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 184, 111, 0.23);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(240, 217, 156, 0.09), transparent 56%),
    rgba(9, 12, 10, 0.72);
  box-shadow:
    inset 0 0 20px rgba(215, 184, 111, 0.045),
    0 0 24px rgba(215, 184, 111, 0.03);
}

.tpl-glyph span {
  position: absolute;
  display: block;
}

.glyph-top {
  top: 12px;
  left: 12px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  box-shadow: 0 0 7px rgba(240, 217, 156, 0.4);
}

.glyph-axis {
  top: 12px;
  left: 23px;
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--gold-soft), rgba(215, 184, 111, 0.2));
}

.glyph-left,
.glyph-right {
  bottom: 12px;
  width: 12px;
  height: 10px;
  border-bottom: 1px solid var(--gold);
}

.glyph-left {
  left: 12px;
  border-left: 1px solid var(--gold);
  transform: skewY(27deg);
}

.glyph-right {
  right: 12px;
  border-right: 1px solid var(--gold);
  transform: skewY(-27deg);
}

.glyph-core {
  top: 21px;
  left: 21px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 11px rgba(140, 227, 210, 0.68);
  animation: core-breathe 4.8s ease-in-out infinite;
}

.product-copy {
  display: grid;
  gap: 3px;
}

.product-copy strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.product-copy small {
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-copy {
  max-width: 690px;
  margin: auto 0 42px;
}

.system-label,
.auth-kicker,
.signal-eyebrow,
.access-code {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--gold);
}

.system-label span {
  width: 24px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(215, 184, 111, 0.36);
}

.story-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 5.7rem);
  font-weight: 550;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.story-copy > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 1.75;
}

.signal-card {
  width: min(100%, 660px);
  margin-bottom: 38px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 20, 16, 0.76), rgba(8, 10, 8, 0.68));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.signal-head,
.signal-metrics,
.story-footer,
.auth-card-head,
.auth-card-footer,
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-head > div {
  display: grid;
  gap: 5px;
}

.signal-eyebrow {
  color: var(--quiet);
  font-size: 8px;
}

.signal-head strong {
  font-size: 13px;
  font-weight: 550;
}

.live-state,
.secure-channel,
.redirect-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.live-state i,
.secure-channel i,
.redirect-state i,
.auth-card-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(140, 227, 210, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.signal-visual {
  position: relative;
  height: 46px;
  margin: 12px 0;
  overflow: hidden;
}

.signal-line {
  position: absolute;
  top: 23px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 184, 111, 0.22), transparent);
}

.signal-node {
  position: absolute;
  top: 20px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(215, 184, 111, 0.46);
  border-radius: 50%;
  background: #11140f;
}

.node-one { left: 20%; }
.node-two { left: 50%; }
.node-three { left: 80%; }

.signal-sweep {
  position: absolute;
  top: 21px;
  left: 0;
  width: 74px;
  height: 4px;
  border-radius: 50%;
  opacity: 0.75;
  background: radial-gradient(ellipse, var(--gold-soft), transparent 68%);
  filter: blur(1px);
  animation: signal-sweep 5.4s var(--ease) infinite;
}

.signal-metrics {
  gap: 22px;
}

.signal-metrics div {
  display: grid;
  gap: 4px;
}

.signal-metrics span {
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-metrics strong {
  color: #c7c7bd;
  font-size: 10px;
  font-weight: 500;
}

.story-footer {
  gap: 20px;
  color: var(--quiet);
}

.story-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.story-footer a > span:last-child {
  display: grid;
  gap: 3px;
}

.story-footer small,
.story-index {
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.15em;
}

.story-footer strong {
  color: #868a81;
  font-size: 10px;
  font-weight: 500;
}

.sorvyra-nexus {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(215, 184, 111, 0.25);
  border-radius: 50%;
}

.sorvyra-nexus::before,
.sorvyra-nexus::after {
  position: absolute;
  width: 18px;
  height: 8px;
  content: "";
  border: 1px solid rgba(215, 184, 111, 0.42);
  border-radius: 50%;
  transform: rotate(28deg);
}

.sorvyra-nexus::after {
  transform: rotate(-28deg);
}

.sorvyra-nexus i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px rgba(240, 217, 156, 0.52);
}

.auth-main {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px clamp(24px, 5vw, 86px) 24px;
}

.mobile-lockup {
  display: none;
}

.auth-card {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(18, 21, 17, 0.94), rgba(9, 11, 9, 0.91)),
    var(--deep);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(28px);
}

.auth-card::before {
  position: absolute;
  inset: 0 auto auto 12%;
  width: 76%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(240, 217, 156, 0.58), transparent);
  box-shadow: 0 0 17px rgba(215, 184, 111, 0.12);
}

.auth-card::after {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(215, 184, 111, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(215, 184, 111, 0.011);
  pointer-events: none;
}

.auth-card-head {
  position: relative;
  z-index: 1;
}

.access-code {
  color: var(--quiet);
  font-size: 8px;
}

.auth-heading {
  position: relative;
  z-index: 1;
  margin: 38px 0 30px;
}

.auth-kicker {
  margin: 0 0 11px;
  color: var(--gold);
}

.auth-heading h2,
.auth-success h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 580;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.auth-heading > p:last-child,
.auth-success > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-message {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 11px;
  margin: -9px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 130, 115, 0.25);
  border-radius: 11px;
  background: rgba(233, 130, 115, 0.06);
  color: #f1aaa0;
  font-size: 12px;
}

.auth-message span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 9px rgba(233, 130, 115, 0.48);
}

.auth-message p {
  margin: 0;
}

.auth-message[data-tone="success"] {
  border-color: rgba(140, 227, 210, 0.22);
  background: rgba(140, 227, 210, 0.055);
  color: #a9e8dc;
}

.auth-message[data-tone="success"] span {
  background: var(--mint);
  box-shadow: 0 0 9px rgba(140, 227, 210, 0.54);
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  animation: form-enter 420ms var(--ease) both;
}

.compact-form {
  gap: 22px;
}

.field-pair {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  color: #b4b5ad;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 6, 0.58);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.field-control:focus-within {
  border-color: rgba(215, 184, 111, 0.48);
  background: rgba(8, 10, 8, 0.88);
  box-shadow:
    0 0 0 3px rgba(215, 184, 111, 0.045),
    inset 0 0 22px rgba(215, 184, 111, 0.018);
  transform: translateY(-1px);
}

.field-control input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 46px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
}

.field-control input::placeholder {
  color: #4e534b;
}

.field-control input:-webkit-autofill,
.field-control input:-webkit-autofill:hover,
.field-control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  box-shadow: 0 0 0 1000px #090b09 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.field-control > i {
  position: absolute;
  right: 16px;
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.reveal-password {
  position: absolute;
  right: 13px;
  padding: 7px 4px;
  color: #6e7369;
  background: transparent;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.reveal-password:hover {
  color: var(--gold-soft);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.remember-choice,
.terms-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #777c73;
  cursor: pointer;
  font-size: 10px;
}

.remember-choice input,
.terms-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.remember-choice > span,
.terms-choice > span {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid rgba(215, 184, 111, 0.24);
  border-radius: 4px;
  background: rgba(5, 7, 6, 0.58);
}

.remember-choice input:checked + span::after,
.terms-choice input:checked + span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 1px solid var(--gold-soft);
  border-left: 1px solid var(--gold-soft);
  transform: rotate(-45deg);
}

.remember-choice input:focus-visible + span,
.terms-choice input:focus-visible + span {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.terms-choice {
  align-items: flex-start;
  line-height: 1.55;
}

.terms-choice small {
  font-size: 10px;
}

.terms-choice a,
.form-switch button,
.text-button {
  color: var(--gold);
}

.terms-choice a:hover,
.form-switch button:hover,
.text-button:hover {
  color: var(--gold-soft);
}

.text-button,
.form-switch button {
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
}

.text-button {
  font-size: 10px;
}

.primary-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 18px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(240, 217, 156, 0.25);
  border-radius: 12px;
  color: #17170f;
  background:
    linear-gradient(110deg, #c8a757, var(--gold-soft) 52%, #c8a757);
  background-size: 180% 100%;
  box-shadow:
    0 13px 30px rgba(139, 109, 42, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.36);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms ease,
    background-position 400ms ease;
}

.primary-action::before {
  position: absolute;
  top: -80%;
  left: -20%;
  width: 16%;
  height: 260%;
  content: "";
  opacity: 0;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(5px);
  transform: rotate(18deg);
  transition: left 650ms var(--ease), opacity 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow:
    0 16px 36px rgba(139, 109, 42, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.4);
}

.primary-action:hover::before {
  left: 115%;
  opacity: 0.7;
}

.primary-action:active {
  transform: translateY(0);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.primary-action i {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  transition: transform 200ms ease;
}

.primary-action:hover i {
  transform: translateX(3px);
}

.form-switch {
  margin: 0;
  color: #6f746b;
  font-size: 11px;
  text-align: center;
}

.form-switch button {
  margin-left: 4px;
}

.password-signal {
  display: grid;
  gap: 7px;
  margin-top: -8px;
}

.password-signal > span {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.password-signal i {
  height: 2px;
  border-radius: 2px;
  background: #252923;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.password-signal small {
  color: var(--quiet);
  font-size: 8px;
}

.password-signal[data-strength="1"] i:nth-child(-n + 1),
.password-signal[data-strength="2"] i:nth-child(-n + 2) {
  background: #cf8d62;
}

.password-signal[data-strength="3"] i:nth-child(-n + 3) {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(215, 184, 111, 0.22);
}

.password-signal[data-strength="4"] i {
  background: var(--mint);
  box-shadow: 0 0 6px rgba(140, 227, 210, 0.2);
}

.code-control input {
  padding-right: 15px;
  font-family: "DM Mono", monospace;
  font-size: 20px;
  letter-spacing: 0.32em;
  text-align: center;
}

.security-note {
  margin: -4px 0 0;
  padding-left: 13px;
  border-left: 1px solid rgba(215, 184, 111, 0.3);
  color: #777b73;
  font-size: 10px;
  line-height: 1.65;
}

.auth-success {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 12px 0 22px;
  text-align: center;
  animation: form-enter 500ms var(--ease) both;
}

.success-orbit {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(140, 227, 210, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 227, 210, 0.08), transparent 64%);
}

.success-orbit::before,
.success-orbit::after {
  position: absolute;
  width: 66px;
  height: 24px;
  content: "";
  border: 1px solid rgba(215, 184, 111, 0.34);
  border-radius: 50%;
  animation: success-orbit 9s linear infinite;
}

.success-orbit::after {
  transform: rotate(60deg);
  animation-direction: reverse;
  animation-duration: 12s;
}

.success-orbit b {
  color: var(--mint);
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(140, 227, 210, 0.5);
}

.auth-success > p {
  max-width: 390px;
}

.redirect-state {
  margin-top: 28px;
}

.auth-card-footer {
  position: relative;
  z-index: 1;
  gap: 14px;
  margin-top: 30px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: #565b53;
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-card-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-footer {
  width: min(100%, 560px);
  margin-top: 22px;
  color: #4f544c;
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
}

.legal-footer a:hover {
  color: var(--gold);
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid rgba(233, 130, 115, 0.3);
  border-radius: 10px;
  background: #16110f;
  color: #f1aaa0;
  font-size: 12px;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes core-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.22); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes signal-sweep {
  0% { transform: translateX(-110px); opacity: 0; }
  16% { opacity: 0.8; }
  76% { opacity: 0.8; }
  100% { transform: translateX(670px); opacity: 0; }
}

@keyframes form-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes success-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: minmax(360px, 0.82fr) minmax(500px, 1.18fr);
  }

  .story-copy h1 {
    font-size: clamp(2.3rem, 4.4vw, 4.2rem);
  }

  .signal-metrics {
    gap: 12px;
  }
}

@media (max-width: 940px) {
  body {
    overflow-y: auto;
  }

  .auth-shell {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-main {
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 28px;
  }

  .mobile-lockup {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 28px;
  }

  .mobile-lockup > span:last-child {
    display: grid;
    gap: 2px;
  }

  .mobile-lockup strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 17px;
    letter-spacing: 0.22em;
  }

  .mobile-lockup small {
    color: var(--quiet);
    font-family: "DM Mono", monospace;
    font-size: 7px;
    letter-spacing: 0.15em;
  }

  .tpl-glyph-small {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    transform: scale(0.82);
    transform-origin: center;
  }

  .legal-footer {
    padding-bottom: 16px;
  }
}

@media (max-width: 620px) {
  .auth-main {
    padding: 20px 14px 18px;
  }

  .mobile-lockup {
    margin-left: 8px;
  }

  .auth-card {
    padding: 28px 21px 24px;
    border-radius: 21px;
  }

  .auth-heading {
    margin: 31px 0 26px;
  }

  .auth-heading h2 {
    font-size: 2rem;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-options,
  .auth-card-footer,
  .legal-footer {
    align-items: flex-start;
  }

  .form-options {
    flex-wrap: wrap;
  }

  .auth-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-card-footer span:last-child {
    display: none;
  }

  .legal-footer {
    gap: 14px;
    flex-direction: column;
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .auth-field {
    display: none;
  }
}
