:root {
  --gold: #fdca22;
  --gold-mid: #d4af37;
  --gold-deep: #b8860b;
  --ink: #1a1408;
  --font: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  --auth-cut: 20px;
  --auth-step: 7px;
  --auth-border: 3px;
  --auth-mid: 1.5px;
  --page-x: max(12px, env(safe-area-inset-left));
  --page-xr: max(12px, env(safe-area-inset-right));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: #fff;
  background: #050505;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guest-shell--auth-center {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #050505;
  background-image:
    radial-gradient(ellipse 55% 42% at 50% 28%, rgba(253, 202, 34, 0.16), transparent 62%),
    radial-gradient(ellipse 40% 30% at 12% 70%, rgba(184, 134, 11, 0.1), transparent 60%),
    radial-gradient(ellipse 36% 28% at 88% 78%, rgba(212, 175, 55, 0.1), transparent 58%),
    linear-gradient(165deg, #0c0c0c 0%, #050505 45%, #080705 100%);
}

.guest-card {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  margin: 0 auto;
  padding:
    max(8px, env(safe-area-inset-top))
    var(--page-x)
    max(16px, env(safe-area-inset-bottom) + 8px)
    var(--page-xr);
}

/* ===== Stage ===== */
.auth-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, 0.5) 100%);
}

.auth-stage__mesh {
  position: absolute;
  inset: -10%;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(253, 202, 34, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 18%, rgba(255, 236, 170, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 58%, rgba(253, 202, 34, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 64%, rgba(255, 220, 120, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 82%, rgba(212, 175, 55, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 36%, rgba(253, 202, 34, 0.3) 0 1px, transparent 1.5px),
    repeating-linear-gradient(
      -32deg,
      transparent 0 110px,
      rgba(253, 202, 34, 0.04) 110px,
      rgba(255, 236, 170, 0.06) 112px,
      transparent 114px,
      transparent 200px
    ),
    repeating-linear-gradient(
      28deg,
      transparent 0 130px,
      rgba(184, 134, 11, 0.035) 130px,
      rgba(253, 202, 34, 0.05) 132px,
      transparent 134px,
      transparent 220px
    );
  background-size:
    180px 180px,
    220px 220px,
    160px 160px,
    200px 200px,
    240px 240px,
    170px 170px,
    auto,
    auto;
  animation: authStageMesh 22s ease-in-out infinite;
}

.auth-stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
}

.auth-stage__glow--tl {
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 224, 130, 0.22), transparent 72%);
  animation: authStageOrb 8s ease-in-out infinite;
}

.auth-stage__glow--br {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  right: -12%;
  bottom: -14%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 72%);
  animation: authStageOrb 9.5s ease-in-out infinite reverse;
}

.auth-stage__fb-sweep {
  position: absolute;
  left: -60%;
  width: 38%;
  height: 120%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 248, 220, 0.1) 48%,
    rgba(253, 202, 34, 0.16) 50%,
    rgba(255, 248, 220, 0.09) 52%,
    transparent
  );
  transform: skew(-22deg);
  opacity: 0;
}

.auth-stage__fb-sweep--1 {
  top: -38%;
  animation: authFbSweepTop 5.8s ease-in-out infinite;
}

.auth-stage__fb-sweep--2 {
  width: 26%;
  top: 18%;
  animation: authFbSweepBottom 7.6s ease-in-out infinite 2.6s;
}

.auth-stage__beam {
  position: absolute;
  width: 140vmax;
  height: 2px;
  margin-left: -70vmax;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 236, 170, 0.18) 40%,
    rgba(255, 248, 220, 0.32) 50%,
    rgba(255, 236, 170, 0.18) 60%,
    transparent
  );
  filter: blur(0.55px);
  opacity: 0.45;
}

.auth-stage__beam--a { left: 28%; top: 18%; animation: authBeamSweepA 9s ease-in-out infinite; }
.auth-stage__beam--b { left: 72%; top: 26%; opacity: 0.35; animation: authBeamSweepB 11s ease-in-out infinite; }
.auth-stage__beam--c { left: 22%; top: 72%; opacity: 0.4; animation: authBeamSweepC 10s ease-in-out infinite; }
.auth-stage__beam--d { left: 78%; top: 78%; opacity: 0.28; animation: authBeamSweepD 12.5s ease-in-out infinite; }

.auth-stage__shard {
  position: absolute;
  border: 1px solid rgba(253, 202, 34, 0.28);
  background: linear-gradient(145deg, rgba(253, 202, 34, 0.12), transparent 70%);
  clip-path: polygon(18% 0%, 100% 12%, 82% 100%, 0% 78%);
  opacity: 0.5;
}

.auth-stage__shard--1 { width: 72px; height: 100px; top: 12%; left: 3%; transform: rotate(-18deg); }
.auth-stage__shard--2 { width: 58px; height: 82px; top: 64%; right: 4%; transform: rotate(24deg); }

.auth-stage__spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #fdca22 55%, transparent 70%);
  box-shadow: 0 0 8px #fdca22aa;
  animation: authSpark 3.2s ease-in-out infinite;
}

.auth-stage__spark--1 { top: 16%; left: 22%; }
.auth-stage__spark--2 { top: 28%; right: 18%; animation-delay: 0.6s; }
.auth-stage__spark--3 { top: 48%; left: 10%; animation-delay: 1.1s; }
.auth-stage__spark--4 { top: 70%; right: 22%; animation-delay: 1.7s; }

/* ===== Brand / Banner ===== */
.brand-block {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 6px;
  isolation: isolate;
}

.brand-glow {
  position: absolute;
  inset: 22% 10% 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(253, 202, 34, 0.45), rgba(212, 175, 55, 0.14) 45%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
  animation: brandGlowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: min(200px, 52vw);
  margin: 0 auto;
  filter:
    drop-shadow(0 6px 14px rgba(90, 60, 0, 0.22))
    drop-shadow(0 0 12px rgba(253, 202, 34, 0.28));
  animation: brandFloat 4.5s ease-in-out infinite;
}

.brand-logo__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.brand-logo.is-fallback .brand-logo__img {
  display: none;
}

.brand-logo__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 10px 10px;
}

.brand-logo.is-fallback .brand-logo__fallback {
  display: flex;
}

.brand-logo__th {
  font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff6c8 0%, #fdca22 28%, #ffe9a0 48%, #d4af37 72%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5a4208) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.brand-logo__en {
  margin-top: 2px;
  font-size: clamp(0.7rem, 2.8vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #a67c00;
  text-shadow: 0 0 8px rgba(253, 202, 34, 0.35);
}

.brand-logo__tag {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a5a38;
}

.brand-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.brand-shine::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 35%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 248, 220, 0.45) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent
  );
  transform: skew(-20deg);
  animation: brandShine 3.8s ease-in-out infinite;
}

/* ===== Panel ===== */
.login-page {
  position: relative;
  width: calc(100% + 16px);
  max-width: calc(100% + 16px);
  margin: 4px -8px 0;
  isolation: isolate;
}

.auth-tech-panel {
  padding: 0;
}

.auth-tech-panel__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(253, 202, 34, 0.4))
    drop-shadow(0 0 28px rgba(184, 134, 11, 0.25));
}

.auth-tech-panel__frame-outer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    #fff6c8,
    #fdca22 12%,
    #8b6914 28%,
    #c9a227 42%,
    #ffe9a0,
    #a67c00 58%,
    #fdca22 72%,
    #6b4e0f 88%,
    #ffe08a
  );
  background-size: 240% 240%;
  animation: authTechBorderShine 6.5s ease-in-out infinite;
  clip-path: polygon(
    0 var(--auth-cut),
    var(--auth-step) var(--auth-cut),
    var(--auth-step) var(--auth-step),
    var(--auth-cut) var(--auth-step),
    var(--auth-cut) 0,
    calc(100% - var(--auth-cut)) 0,
    calc(100% - var(--auth-cut)) var(--auth-step),
    calc(100% - var(--auth-step)) var(--auth-step),
    calc(100% - var(--auth-step)) var(--auth-cut),
    100% var(--auth-cut),
    100% calc(100% - var(--auth-cut)),
    calc(100% - var(--auth-step)) calc(100% - var(--auth-cut)),
    calc(100% - var(--auth-step)) calc(100% - var(--auth-step)),
    calc(100% - var(--auth-cut)) calc(100% - var(--auth-step)),
    calc(100% - var(--auth-cut)) 100%,
    var(--auth-cut) 100%,
    var(--auth-cut) calc(100% - var(--auth-step)),
    var(--auth-step) calc(100% - var(--auth-step)),
    var(--auth-step) calc(100% - var(--auth-cut)),
    0 calc(100% - var(--auth-cut))
  );
}

.auth-tech-panel__frame-mid {
  position: absolute;
  inset: var(--auth-border);
  background: linear-gradient(160deg, #28200cf2, #141008fa 40%, #1c160af5);
  clip-path: polygon(
    0 calc(var(--auth-cut) - 2px),
    calc(var(--auth-step) - 1px) calc(var(--auth-cut) - 2px),
    calc(var(--auth-step) - 1px) calc(var(--auth-step) - 1px),
    calc(var(--auth-cut) - 2px) calc(var(--auth-step) - 1px),
    calc(var(--auth-cut) - 2px) 0,
    calc(100% - (var(--auth-cut) - 2px)) 0,
    calc(100% - (var(--auth-cut) - 2px)) calc(var(--auth-step) - 1px),
    calc(100% - (var(--auth-step) - 1px)) calc(var(--auth-step) - 1px),
    calc(100% - (var(--auth-step) - 1px)) calc(var(--auth-cut) - 2px),
    100% calc(var(--auth-cut) - 2px),
    100% calc(100% - (var(--auth-cut) - 2px)),
    calc(100% - (var(--auth-step) - 1px)) calc(100% - (var(--auth-cut) - 2px)),
    calc(100% - (var(--auth-step) - 1px)) calc(100% - (var(--auth-step) - 1px)),
    calc(100% - (var(--auth-cut) - 2px)) calc(100% - (var(--auth-step) - 1px)),
    calc(100% - (var(--auth-cut) - 2px)) 100%,
    calc(var(--auth-cut) - 2px) 100%,
    calc(var(--auth-cut) - 2px) calc(100% - (var(--auth-step) - 1px)),
    calc(var(--auth-step) - 1px) calc(100% - (var(--auth-step) - 1px)),
    calc(var(--auth-step) - 1px) calc(100% - (var(--auth-cut) - 2px)),
    0 calc(100% - (var(--auth-cut) - 2px))
  );
  box-shadow: inset 0 0 0 1px #fdca228c, inset 0 0 12px #fdca2214;
}

.auth-tech-panel__frame-inner {
  position: absolute;
  inset: calc(var(--auth-border) + var(--auth-mid) + 1px);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(253, 202, 34, 0.12), transparent 55%),
    linear-gradient(180deg, #12100c, #0a0a0c, #070708);
  clip-path: polygon(
    0 calc(var(--auth-cut) - 4px),
    calc(var(--auth-step) - 2px) calc(var(--auth-cut) - 4px),
    calc(var(--auth-step) - 2px) calc(var(--auth-step) - 2px),
    calc(var(--auth-cut) - 4px) calc(var(--auth-step) - 2px),
    calc(var(--auth-cut) - 4px) 0,
    calc(100% - (var(--auth-cut) - 4px)) 0,
    calc(100% - (var(--auth-cut) - 4px)) calc(var(--auth-step) - 2px),
    calc(100% - (var(--auth-step) - 2px)) calc(var(--auth-step) - 2px),
    calc(100% - (var(--auth-step) - 2px)) calc(var(--auth-cut) - 4px),
    100% calc(var(--auth-cut) - 4px),
    100% calc(100% - (var(--auth-cut) - 4px)),
    calc(100% - (var(--auth-step) - 2px)) calc(100% - (var(--auth-cut) - 4px)),
    calc(100% - (var(--auth-step) - 2px)) calc(100% - (var(--auth-step) - 2px)),
    calc(100% - (var(--auth-cut) - 4px)) calc(100% - (var(--auth-step) - 2px)),
    calc(100% - (var(--auth-cut) - 4px)) 100%,
    calc(var(--auth-cut) - 4px) 100%,
    calc(var(--auth-cut) - 4px) calc(100% - (var(--auth-step) - 2px)),
    calc(var(--auth-step) - 2px) calc(100% - (var(--auth-step) - 2px)),
    calc(var(--auth-step) - 2px) calc(100% - (var(--auth-cut) - 4px)),
    0 calc(100% - (var(--auth-cut) - 4px))
  );
}

.panel-body {
  position: relative;
  z-index: 1;
  padding: 24px 16px 22px;
}

.login-hero {
  text-align: center;
  margin-bottom: 2px;
}

.login-title-crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 8px;
}

.login-title-crest__glow {
  position: absolute;
  inset: -8px 12% auto;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(253, 202, 34, 0.2), transparent 72%);
  animation: loginTitleGlow 3.6s ease-in-out infinite;
}

.login-title-crest__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 440px;
}

.login-title-crest__wing {
  flex: 1 1 0;
  max-width: 88px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(253, 202, 34, 0.35));
  transform-origin: right center;
  animation: loginWingPulseL 2.8s ease-in-out infinite;
}

.login-title-crest__wing--right {
  transform-origin: left center;
  animation-name: loginWingPulseR;
  animation-delay: 0.35s;
}

.login-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(1.4rem, 5.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.login-title__text {
  display: inline-block;
  background: linear-gradient(180deg, #fffef8, #ffe9a0 38%, #fff 55%, #fdca22);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(253, 202, 34, 0.22));
}

.login-title-crest__jewel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(220px, 70%);
  margin-top: 6px;
}

.login-title-crest__rail {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 202, 34, 0.75), rgba(255, 233, 160, 0.95));
  box-shadow: 0 0 6px #fdca2238;
}

.login-title-crest__jewel .login-title-crest__rail:last-child {
  background: linear-gradient(90deg, rgba(255, 233, 160, 0.95), rgba(253, 202, 34, 0.75), transparent);
}

.login-title-crest__diamond {
  width: 14px;
  height: 14px;
  background: linear-gradient(145deg, #fff6c8, #fdca22 40%, #b8860b);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(253, 202, 34, 0.5));
  animation: loginDiamondPulse 2.8s ease-in-out infinite;
}

.login-section {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffffe6;
}

/* Fields */
.login-field {
  margin-bottom: 12px;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 10px 0 12px;
  background: #fff !important;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #d4af3773, 0 0 12px #d4af371f;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.login-input:focus-within {
  box-shadow: inset 0 0 0 1px #fdca22d9, 0 0 0 1px #fdca2240, 0 0 18px #d4af3759;
  transform: translateY(-1px);
}

.login-input__icon {
  color: #fdca22 !important;
  font-size: 1.35rem !important;
  opacity: 0.95;
}

.login-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #1a1408;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 0;
}

.login-input input::placeholder {
  color: rgba(26, 20, 8, 0.42);
  font-weight: 400;
}

.login-input__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fdca22;
  cursor: pointer;
  font-size: 1.3rem;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
}

.login-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #fff6d0, #fdca22 48%, #e0a820);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(253, 202, 34, 0.28));
}

.login-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #fdca22 20%, #ffe9a0 50%, #fdca22 80%, transparent);
  opacity: 0.45;
  transform: scaleX(0.55);
}

.login-submit-wrap {
  position: relative;
  border-radius: 16px;
}

.login-submit-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(110deg, #fdca22, #b8860b, #fdca22);
  background-size: 200% 100%;
  opacity: 0.55;
  filter: blur(5px);
  animation: loginCtaGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.login-submit {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #f0c84f, #d4af37 42%, #b8860b) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px #d4af376b, inset 0 1px #ffffff47;
}

.login-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skew(-18deg);
  animation: loginCtaShine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.login-payrate {
  position: relative;
  display: block;
  margin: 14px 0 0;
  padding: 15px 16px;
  overflow: hidden;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 230, 150, 0.28);
  background: linear-gradient(105deg, #8f1518, #c43a1a 32%, #d4af37 68%, #f0c84f);
  background-size: 180% 100%;
  animation: loginPayrateShift 4.5s ease-in-out infinite;
  box-shadow: 0 8px 20px #00000061, 0 0 22px #d4af3738;
}

.login-payrate-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-payrate-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skew(-18deg);
  animation: loginPayrateShine 2.8s ease-in-out infinite;
}

.login-payrate-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #fdca22 45%, transparent 70%);
  box-shadow: 0 0 8px #fdca22cc;
  animation: loginPayrateSpark 2.4s ease-in-out infinite;
}

.login-payrate-spark--1 { top: 18%; left: 14%; }
.login-payrate-spark--2 { top: 62%; right: 18%; animation-delay: 0.7s; }

.login-payrate-title {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.login-payrate-sub {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  color: #fffffff2;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-register {
  margin-top: 18px;
  text-align: center;
}

.login-register__label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #ffffffc7;
}

.login-register__cta {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  animation: loginRegisterFloat 3.2s ease-in-out infinite;
}

.login-register__ring {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, #fdca22, #fff8dc, #ff9f43, #fdca22, #b8860b, #fdca22);
  animation: loginRegisterSpin 12s linear infinite;
  pointer-events: none;
}

.login-register__glow {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(253, 202, 34, 0.55), transparent 72%);
  filter: blur(6px);
  opacity: 0.75;
  animation: loginMobileGlow 3.8s ease-in-out infinite;
  pointer-events: none;
}

.login-register__cta::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff4b8, #f5c842 28%, #e6a812 62%, #c98f00);
  box-shadow: inset 0 2px #ffffffa6, inset 0 -3px 6px #7850002e;
  pointer-events: none;
}

.login-register__shine {
  position: absolute;
  inset: 2px;
  z-index: 2;
  overflow: hidden;
  border-radius: 14px;
  pointer-events: none;
}

.login-register__shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skew(-18deg);
  animation: loginRegisterShine 2.2s ease-in-out infinite;
}

.login-register__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px;
  padding: 13px 14px;
  min-height: 62px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff38, #ffffff0f);
}

.login-register__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
  text-align: left;
}

.login-register__text strong {
  color: #120a00;
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-register__text small {
  color: #3a2800d9;
  font-size: 0.82rem;
  font-weight: 600;
}

.login-register__arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #1a10001f;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #1a1000;
  font-size: 1.35rem;
  animation: loginRegisterArrow 1.5s ease-in-out infinite;
}

.login-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 18px 0 0;
}

.login-tagline__item {
  position: relative;
  display: inline-flex;
  padding: 7px 14px 8px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #3a2800;
  background: linear-gradient(180deg, #fff3c0, #ffdb4a 16%, #f5c518, #e0a820 68%, #c9920a);
  border: 1px solid rgba(255, 220, 120, 0.8);
  box-shadow:
    inset 0 1px #fffc,
    inset 0 -2px 3px #a0640052,
    0 4px #a67c00,
    0 8px 18px #00000073;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.login-tagline__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: loginTaglineShine 3.6s ease-in-out infinite;
}

.login-tagline__sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe9a0, #f0c020 48%, #c9920a);
  box-shadow: 0 0 12px #d4af37bf;
}

.site-copy {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 236, 170, 0.45);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 18px 0 0;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(12, 10, 6, 0.72);
  border: 1px solid rgba(253, 202, 34, 0.18);
}

.site-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 236, 170, 0.82);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fdca22;
}

.subpage {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #f5edd4;
}

.subpage__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fdca22;
}

.subpage h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  color: #ffe9a0;
}

.subpage p,
.subpage li {
  line-height: 1.75;
  color: rgba(255, 248, 220, 0.82);
}

.subpage section {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 22, 10, 0.92), rgba(12, 10, 6, 0.94));
  border: 1px solid rgba(253, 202, 34, 0.22);
}

.subpage h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: #fdca22;
}

.subpage ul,
.subpage ol {
  margin: 0;
  padding-left: 1.2rem;
}

.subpage li + li {
  margin-top: 8px;
}

.seo-article {
  position: relative;
  z-index: 2;
  margin: 22px 0 0;
  padding: 20px 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 22, 10, 0.92), rgba(12, 10, 6, 0.94));
  border: 1px solid rgba(253, 202, 34, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.08);
  color: #f5edd4;
}

.seo-article__header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.seo-article.is-collapsed .seo-article__header {
  margin-bottom: 0;
}

.seo-article__body {
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.seo-article.is-collapsed .seo-article__body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.seo-article:not(.is-collapsed) .seo-article__body {
  max-height: 6000px;
  opacity: 1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(253, 202, 34, 0.22);
  pointer-events: auto;
}

.seo-article__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(253, 202, 34, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff3c0, #ffdb4a 16%, #f5c518, #e0a820 68%, #c9920a);
  color: #3a2800;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px #fffc,
    inset 0 -2px 3px #a0640052,
    0 4px #a67c00,
    0 8px 18px #00000073;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.seo-article__toggle:active {
  transform: scale(0.99);
}

.seo-article__toggle:hover {
  filter: brightness(1.03);
}

.seo-article__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdca22;
}

.seo-article h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 5.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
  color: #ffe9a0;
}

.seo-article__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 248, 220, 0.82);
}

.seo-article section {
  margin-top: 18px;
}

.seo-article h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fdca22;
}

.seo-article h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #ffe9a0;
}

.seo-article p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 248, 220, 0.78);
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.seo-article li {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 248, 220, 0.78);
}

.seo-article strong {
  color: #ffe08a;
  font-weight: 800;
}

.seo-kw {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(253, 202, 34, 0.55);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.seo-kw:hover,
.seo-kw:focus-visible {
  color: #fdca22;
  text-decoration-color: #fdca22;
}

.seo-kw strong {
  color: inherit;
}

.site-copy .seo-kw {
  color: rgba(255, 236, 170, 0.55);
  text-decoration-color: rgba(253, 202, 34, 0.35);
}

.seo-faq {
  margin-top: 20px;
  padding-top: 4px;
}

@media (min-width: 768px) {
  .seo-article {
    padding: 28px 28px 24px;
  }

  .seo-article h1 {
    font-size: 1.7rem;
  }

  .seo-article h2 {
    font-size: 1.2rem;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 16, 8, 0.94);
  border: 1px solid rgba(253, 202, 34, 0.45);
  color: #ffe9a0;
  font-size: 0.92rem;
  font-weight: 600;
}

.login-enter {
  opacity: 0;
  transform: translateY(14px);
  animation: loginFadeUp 0.55s ease forwards;
}

.login-enter--1 { animation-delay: 0.02s; }
.login-enter--2 { animation-delay: 0.08s; }
.login-enter--3 { animation-delay: 0.14s; }
.login-enter--4 { animation-delay: 0.18s; }
.login-enter--5 { animation-delay: 0.24s; }
.login-enter--6 { animation-delay: 0.3s; }
.login-enter--7 { animation-delay: 0.36s; }
.login-enter--8 { animation-delay: 0.42s; }

@keyframes authStageMesh {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 8px); }
}
@keyframes authStageOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, 16px) scale(1.08); }
}
@keyframes authFbSweepTop {
  0%, 20% { left: -60%; opacity: 0; }
  35% { opacity: 0.7; }
  55%, 100% { left: 120%; opacity: 0; }
}
@keyframes authFbSweepBottom {
  0%, 25% { left: -50%; opacity: 0; }
  40% { opacity: 0.55; }
  65%, 100% { left: 130%; opacity: 0; }
}
@keyframes authBeamSweepA {
  0%, 100% { transform: rotate(-18deg); opacity: 0.35; }
  50% { transform: rotate(-12deg); opacity: 0.6; }
}
@keyframes authBeamSweepB {
  0%, 100% { transform: rotate(16deg); opacity: 0.25; }
  50% { transform: rotate(22deg); opacity: 0.45; }
}
@keyframes authBeamSweepC {
  0%, 100% { transform: rotate(8deg); opacity: 0.3; }
  50% { transform: rotate(14deg); opacity: 0.5; }
}
@keyframes authBeamSweepD {
  0%, 100% { transform: rotate(-24deg); opacity: 0.2; }
  50% { transform: rotate(-16deg); opacity: 0.4; }
}
@keyframes authSpark {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes brandGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes brandShine {
  0%, 40% { left: -45%; opacity: 0; }
  50% { opacity: 1; }
  72%, 100% { left: 120%; opacity: 0; }
}
@keyframes authTechBorderShine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes loginTitleGlow {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes loginWingPulseL {
  0%, 100% { opacity: 0.82; transform: translate(0) scale(1); }
  50% { opacity: 1; transform: translate(-3px) scale(1.06); }
}
@keyframes loginWingPulseR {
  0%, 100% { opacity: 0.82; transform: translate(0) scale(1); }
  50% { opacity: 1; transform: translate(3px) scale(1.06); }
}
@keyframes loginDiamondPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.1); }
}
@keyframes loginCtaShine {
  0%, 45% { left: -40%; opacity: 0; }
  55% { opacity: 1; }
  70%, 100% { left: 120%; opacity: 0; }
}
@keyframes loginCtaGlow {
  0%, 100% { opacity: 0.4; background-position: 0% 50%; }
  50% { opacity: 0.75; background-position: 100% 50%; }
}
@keyframes loginPayrateShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes loginPayrateShine {
  0%, 35% { left: -50%; opacity: 0; }
  45% { opacity: 1; }
  70%, 100% { left: 130%; opacity: 0; }
}
@keyframes loginPayrateSpark {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes loginRegisterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes loginRegisterSpin {
  to { transform: rotate(360deg); }
}
@keyframes loginRegisterShine {
  0%, 30% { left: -50%; opacity: 0; }
  45% { opacity: 1; }
  70%, 100% { left: 130%; opacity: 0; }
}
@keyframes loginRegisterArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes loginTaglineShine {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  65% { opacity: 0.9; }
  80%, 100% { transform: translateX(120%); opacity: 0; }
}
@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginMobileGlow {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.72; }
}

@media (min-width: 768px) {
  .brand-logo {
    width: min(240px, 32vw);
  }

  .login-page {
    width: 100%;
    max-width: 640px;
    margin: 12px auto 0;
  }

  .panel-body {
    padding: 30px 28px 32px;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .login-title-crest__wing {
    max-width: 120px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .login-enter {
    opacity: 1;
    transform: none;
  }
}
