/*
 * Festival da Aprovação — entrada pública do Concurseiro RPG.
 * O cenário é decorativo; formulário, erros, foco e navegação continuam HTML.
 * Nenhum comportamento de acesso depende de JavaScript.
 */

body.theme-auth {
  --auth-berry: #1b0d25;
  --auth-berry-deep: #120817;
  --auth-plum: #2a1233;
  --auth-plum-soft: #46184d;
  --auth-cream: #fff7f0;
  --auth-muted: #dec7d8;
  --auth-coral: #ff5c6c;
  --auth-fuchsia: #ff2d8d;
  --auth-lime: #b7f34a;
  --auth-emerald: #38e89f;
  --auth-violet: #a23dff;
  --auth-terracotta: #b94f42;
  --auth-danger: #ff595e;
  --game-focus: var(--auth-fuchsia);
  --game-accent: var(--auth-coral);
  --game-accent-rgb: 255, 92, 108;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--auth-cream);
  background: var(--auth-berry);
}

body.theme-auth::before,
body.theme-auth::after,
body.theme-auth .sky-glow,
body.theme-auth .auth-particles {
  display: none;
}

.auth-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--auth-berry-deep);
  border: 2px solid var(--auth-cream);
  border-radius: 999px;
  background: var(--auth-lime);
  box-shadow: 0 8px 24px rgba(18, 8, 23, .34);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

.auth-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(14px, 2vw, 30px) clamp(16px, 3vw, 52px) 12px;
  overflow: clip;
}

.auth-stage__picture,
.auth-stage__picture img,
.auth-stage__shade,
.auth-stage__runes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-stage__picture {
  z-index: -5;
  display: block;
  overflow: hidden;
  background: var(--auth-berry);
}

.auth-stage__picture img {
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.03);
  animation: auth-scene-breathe 24s ease-in-out infinite alternate;
}

.auth-stage__shade {
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 24%, rgba(183, 243, 74, .08), transparent 25%),
    radial-gradient(circle at 73% 72%, rgba(255, 45, 141, .18), transparent 34%),
    linear-gradient(90deg, rgba(27, 13, 37, .88) 0%, rgba(42, 18, 51, .64) 28%, rgba(27, 13, 37, .12) 52%, rgba(42, 18, 51, .58) 75%, rgba(18, 8, 23, .9) 100%),
    linear-gradient(180deg, rgba(27, 13, 37, .3), transparent 28%, transparent 64%, rgba(18, 8, 23, .8));
}

.auth-stage__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(255, 92, 108, .72) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(183, 243, 74, .56) 0 1.5px, transparent 2px);
  background-position: 0 0, 34px 37px;
  background-size: 74px 74px, 91px 91px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.auth-stage__runes {
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.auth-stage__runes::before,
.auth-stage__runes::after {
  content: "";
  position: absolute;
  border: 2px dashed rgba(255, 45, 141, .34);
  border-radius: 50%;
  box-shadow: inset 0 0 46px rgba(162, 61, 255, .1), 0 0 48px rgba(255, 92, 108, .12);
}

.auth-stage__runes::before {
  width: 34vw;
  height: 34vw;
  min-width: 380px;
  min-height: 380px;
  left: 37%;
  top: -24vw;
  animation: auth-rune-spin 38s linear infinite;
}

.auth-stage__runes::after {
  width: 240px;
  height: 240px;
  right: -130px;
  bottom: -110px;
  border-color: rgba(56, 232, 159, .3);
  animation: auth-rune-spin 30s linear infinite reverse;
}

.auth-stage__runes > i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 58% 42% 65% 35%;
  background: var(--auth-lime);
  box-shadow: 0 0 13px 3px rgba(183, 243, 74, .42);
  animation: auth-spark 5s ease-in-out infinite;
}

.auth-stage__runes > i:nth-child(1) { left: 9%; top: 21%; animation-delay: -1s; background: var(--auth-coral); }
.auth-stage__runes > i:nth-child(2) { left: 31%; top: 68%; animation-delay: -3.4s; }
.auth-stage__runes > i:nth-child(3) { left: 51%; top: 14%; animation-delay: -2s; background: var(--auth-fuchsia); }
.auth-stage__runes > i:nth-child(4) { left: 63%; top: 76%; animation-delay: -.4s; background: var(--auth-emerald); }
.auth-stage__runes > i:nth-child(5) { left: 81%; top: 30%; animation-delay: -4.1s; background: var(--auth-violet); }
.auth-stage__runes > i:nth-child(6) { left: 93%; top: 62%; animation-delay: -2.7s; background: var(--auth-coral); }

.auth-stage__header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  color: var(--auth-cream);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(18, 8, 23, .86);
}

.auth-brand__mark {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(62px, 6vw, 88px);
  height: clamp(62px, 6vw, 88px);
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--auth-cream);
  border: 2px solid rgba(255, 247, 240, .78);
  border-radius: 56% 44% 61% 39% / 46% 58% 42% 54%;
  background: linear-gradient(145deg, var(--auth-coral), var(--auth-fuchsia) 58%, var(--auth-violet));
  box-shadow: 0 10px 28px rgba(255, 45, 141, .3);
  transform: rotate(-3deg);
}

.auth-brand__mark::before,
.auth-brand__mark::after,
.auth-brand__mark i {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.auth-brand__mark::before { width: 22px; height: 22px; top: -4px; right: -2px; background: var(--auth-lime); }
.auth-brand__mark::after { width: 17px; height: 17px; bottom: 2px; left: -5px; background: var(--auth-emerald); }
.auth-brand__mark i { width: 46px; height: 46px; border: 2px dashed rgba(255, 247, 240, .48); }
.auth-brand__mark b { font: 900 21px/1 system-ui, sans-serif; letter-spacing: -.04em; transform: rotate(3deg); }

.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand strong {
  color: var(--auth-cream);
  font: 400 clamp(24px, 2.4vw, 36px)/1.05 "Marcellus", Georgia, serif;
  letter-spacing: .015em;
}
.auth-brand small {
  margin-top: 3px;
  color: var(--auth-muted);
  font: 500 11px/1.2 "Oswald", sans-serif;
  letter-spacing: .12em;
  text-transform: none;
}

.auth-gateway-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--auth-cream);
  border: 1px solid rgba(255, 247, 240, .3);
  border-radius: 999px;
  clip-path: none;
  background: rgba(42, 18, 51, .72);
  box-shadow: 0 10px 26px rgba(18, 8, 23, .28);
  backdrop-filter: blur(12px) saturate(1.15);
  font: 500 12px/1 "Oswald", sans-serif;
  letter-spacing: .07em;
  text-transform: none;
}

.auth-gateway-status i,
.auth-form__status > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--auth-emerald);
  box-shadow: 0 0 12px rgba(56, 232, 159, .68);
}
.auth-gateway-status b { color: var(--auth-lime); font-weight: 750; }

.auth-shell {
  position: relative;
  z-index: 3;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
  align-items: center;
  gap: clamp(38px, 6vw, 104px);
  width: min(100%, 1500px);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px, 2vh, 28px) 0;
}

body.game-ui.theme-auth .auth-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: clamp(20px, 3vh, 32px);
  min-height: 0;
  padding: clamp(8px, 1.4vw, 22px) 0;
  overflow: visible;
  border: 0;
  border-image: none;
  border-radius: 1px;
  clip-path: none;
  background-image: linear-gradient(transparent, transparent), var(--game-hero-art);
  background-position: 0 0, -9999px -9999px;
  background-size: 1px 1px, 1px 1px;
  background-repeat: no-repeat;
  box-shadow: none;
}

.auth-hero__copy { max-width: 680px; }

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--auth-lime);
  font: 700 12px/1.2 "Oswald", sans-serif;
  letter-spacing: .07em;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(18, 8, 23, .92);
}
.auth-kicker::before {
  content: "";
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-fuchsia));
  box-shadow: 0 0 12px rgba(255, 45, 141, .38);
}

body.game-ui.theme-auth .auth-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--auth-cream);
  font: 400 clamp(38px, 4.2vw, 68px)/1.01 "Marcellus", Georgia, serif;
  letter-spacing: -.01em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(18, 8, 23, .9), 0 0 34px rgba(255, 45, 141, .17);
}

.auth-prologue {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--auth-cream);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.58;
  text-shadow: 0 2px 12px rgba(18, 8, 23, .95);
}

.auth-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 720px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-journey::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 20px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-fuchsia), var(--auth-lime));
  box-shadow: 0 0 15px rgba(255, 45, 141, .3);
}

.auth-journey li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  min-width: 0;
  padding-right: 18px;
}
.auth-journey li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--auth-berry-deep);
  border: 2px solid var(--auth-cream);
  border-radius: 58% 42% 54% 46% / 44% 56% 44% 56%;
  clip-path: none;
  background: var(--auth-lime);
  box-shadow: 0 9px 22px rgba(18, 8, 23, .3);
  font: 850 12px/1 "Oswald", sans-serif;
  transform: rotate(-3deg);
}
.auth-journey li:nth-child(2) > span { background: var(--auth-coral); transform: rotate(3deg); }
.auth-journey li:nth-child(3) > span { background: var(--auth-emerald); }
.auth-journey strong,
.auth-journey small { display: block; text-shadow: 0 2px 9px rgba(18, 8, 23, .94); }
.auth-journey strong { color: var(--auth-cream); font: 400 14px/1.25 "Marcellus", Georgia, serif; }
.auth-journey small { margin-top: 5px; color: var(--auth-muted); font: 500 11px/1.35 "Oswald", sans-serif; }

/* Trajetória até a posse: seis marcos reais da plataforma e o concurseiro
   caminhando sobre a trilha — do edital publicado ao nome no Diário Oficial. */
.auth-journey--posse { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 0; width: min(100%, 780px); }
.auth-journey--posse li { margin-top: 6px; }
.auth-journey--posse li > span { font-size: 20px; }
.auth-journey--posse li:nth-child(4) > span { background: var(--auth-fuchsia); color: var(--auth-cream); transform: rotate(2deg); }
.auth-journey--posse li:nth-child(5) > span { background: var(--auth-coral); transform: rotate(-2deg); }
.auth-journey--posse li:nth-child(6) > span { background: var(--auth-violet); color: var(--auth-cream); }

@media (min-width: 1021px) {
  .auth-journey--posse::after {
    content: "🎓";
    position: absolute;
    z-index: 2;
    top: -26px;
    left: 2%;
    font-size: 26px;
    filter: drop-shadow(0 5px 10px rgba(18, 8, 23, .85));
    animation: auth-jornada-posse 18s ease-in-out infinite;
  }
}

@keyframes auth-jornada-posse {
  0%   { left: 2%;  transform: translateY(0) rotate(0deg) scale(1); }
  7%   { left: 9%;  transform: translateY(-8px) rotate(-7deg) scale(1); }
  14%  { left: 17%; transform: translateY(0) rotate(0deg) scale(1); }
  17%  { left: 17%; transform: translateY(0) rotate(3deg) scale(1); }
  26%  { left: 31%; transform: translateY(-8px) rotate(-7deg) scale(1); }
  34%  { left: 45%; transform: translateY(0) rotate(0deg) scale(1); }
  37%  { left: 45%; transform: translateY(0) rotate(3deg) scale(1); }
  48%  { left: 59%; transform: translateY(-8px) rotate(-7deg) scale(1); }
  58%  { left: 70%; transform: translateY(0) rotate(0deg) scale(1); }
  61%  { left: 70%; transform: translateY(0) rotate(3deg) scale(1); }
  72%  { left: 82%; transform: translateY(-8px) rotate(-7deg) scale(1); }
  82%  { left: 92%; transform: translateY(0) rotate(0deg) scale(1); }
  88%  { left: 92%; transform: translateY(-10px) rotate(0deg) scale(1.22); }
  94%  { left: 92%; transform: translateY(0) rotate(0deg) scale(1.22); }
  100% { left: 92%; transform: translateY(0) rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-journey--posse::after { animation: none; left: 92%; }
}

.auth-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 550px;
  margin: 0;
}
.auth-guide__portrait {
  position: relative;
  width: 80px;
  height: 90px;
  flex: 0 0 80px;
  overflow: hidden;
  border: 3px solid var(--auth-lime);
  border-radius: 52% 48% 45% 55% / 47% 56% 44% 53%;
  clip-path: none;
  background: var(--auth-plum);
  box-shadow: 0 9px 24px rgba(18, 8, 23, .5), 0 0 0 5px rgba(255, 45, 141, .16);
  transform: rotate(-2deg);
}
.auth-guide__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.auth-guide p { margin: 0; text-shadow: 0 2px 10px rgba(18, 8, 23, .94); }
.auth-guide small { display: block; color: var(--auth-lime); font: 700 11.5px/1.3 "Oswald", sans-serif; letter-spacing: .11em; }
.auth-guide strong { display: block; margin-top: 4px; color: var(--auth-cream); font: 400 15px/1.35 "Marcellus", serif; }

.auth-portal {
  position: relative;
  isolation: isolate;
  top: auto;
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: 46px clamp(24px, 2.4vw, 38px) 30px;
  overflow: visible;
  border: 2px solid rgba(255, 92, 108, .68);
  border-image: none;
  border-radius: 38px 38px 38px 14px;
  clip-path: none;
  background:
    radial-gradient(circle at 50% 0, rgba(183, 243, 74, .12), transparent 35%),
    radial-gradient(circle at 100% 82%, rgba(255, 45, 141, .13), transparent 36%),
    linear-gradient(145deg, rgba(70, 24, 77, .91), rgba(27, 13, 37, .97) 58%, rgba(42, 18, 51, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 247, 240, .07), inset 0 -30px 64px rgba(18, 8, 23, .28), 0 26px 48px rgba(18, 8, 23, .52), 0 0 32px rgba(255, 45, 141, .14);
  filter: none;
  backdrop-filter: blur(18px) saturate(1.18);
}

.auth-portal::before,
.auth-portal::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.auth-portal::before {
  inset: 8px;
  border: 1px dashed rgba(183, 243, 74, .22);
  border-radius: 30px 30px 30px 10px;
}
.auth-portal::after {
  right: 42px;
  bottom: 13px;
  left: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--auth-fuchsia), var(--auth-lime), transparent);
}

.auth-portal__beam {
  position: absolute;
  z-index: -2;
  inset: -26% 23% 72%;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from 205deg, transparent 0 38%, rgba(255, 45, 141, .26), rgba(56, 232, 159, .18), transparent 62%);
  filter: blur(11px);
  animation: auth-beam 5.5s ease-in-out infinite alternate;
}

.auth-portal__seal {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%) rotate(-4deg);
  border: 3px solid var(--auth-cream);
  border-radius: 56% 44% 58% 42% / 47% 57% 43% 53%;
  background:
    radial-gradient(circle, var(--auth-cream) 0 6%, var(--auth-lime) 7% 18%, transparent 19%),
    linear-gradient(145deg, var(--auth-coral), var(--auth-fuchsia));
  box-shadow: 0 0 22px rgba(255, 45, 141, .36), inset 0 0 0 6px rgba(255, 247, 240, .1);
}
.auth-portal__seal::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px dashed rgba(255, 247, 240, .74);
  border-radius: 50%;
}

.auth-portal__heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--auth-muted);
  font: 650 11.5px/1 "Oswald", sans-serif;
  letter-spacing: .06em;
}
.auth-portal__heading span { height: 4px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(56, 232, 159, .6)); }
.auth-portal__heading span:last-child { transform: scaleX(-1); }

body.game-ui .auth-tabs.game-nav-silhouette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  overflow: visible;
  border: 1px solid rgba(255, 247, 240, .16);
  border-radius: 999px;
  background: rgba(18, 8, 23, .54);
  box-shadow: inset 0 2px 12px rgba(18, 8, 23, .34);
}

body.game-ui .auth-tabs.game-nav-silhouette::before,
body.game-ui .auth-tabs.game-nav-silhouette::after { display: none; }

body.game-ui .auth-tabs.game-nav-silhouette > a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 48px;
  padding: 10px 15px;
  color: var(--auth-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  clip-path: none;
  background: transparent;
  box-shadow: none;
  font: 700 13px/1 "Oswald", sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: none;
  transition: color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

body.game-ui .auth-tabs.game-nav-silhouette > a:hover {
  color: var(--auth-cream);
  border-color: rgba(255, 92, 108, .52);
  background: rgba(255, 92, 108, .13);
  transform: translateY(-1px);
}
body.game-ui .auth-tabs.game-nav-silhouette > a.is-active,
body.game-ui .auth-tabs.game-nav-silhouette > a[aria-current="page"] {
  color: var(--auth-berry-deep);
  border-color: var(--auth-cream);
  background: linear-gradient(135deg, var(--auth-lime), var(--auth-emerald));
  box-shadow: 0 7px 20px rgba(56, 232, 159, .23);
}

.auth-portal__content { min-width: 0; }
body.screen-page-registro .auth-portal__content {
  max-height: clamp(330px, calc(100svh - 350px), 580px);
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--auth-fuchsia) rgba(27, 13, 37, .46);
  scrollbar-width: thin;
}

.auth-form { display: grid; gap: 15px; }
.auth-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.auth-title__sigil {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--auth-cream);
  border: 2px solid rgba(255, 247, 240, .62);
  border-radius: 58% 42% 62% 38% / 43% 57% 43% 57%;
  clip-path: none;
  background: linear-gradient(145deg, var(--auth-violet), var(--auth-fuchsia));
  box-shadow: 0 8px 22px rgba(255, 45, 141, .22);
  transform: rotate(-3deg);
}
.auth-title__sigil .ico { width: 24px; height: 24px; }
.auth-title__sigil .ico,
.auth-input > .ico,
body.theme-auth .loading-screen__seal .ico {
  filter: brightness(0) saturate(100%) invert(98%);
}
.auth-title small { display: block; color: var(--auth-lime); font: 750 11px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .035em; }
body.game-ui.theme-auth .auth-title h2 { margin: 3px 0 0; color: var(--auth-cream); font: 750 clamp(23px, 2vw, 30px)/1.08 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.025em; text-transform: none; }
.auth-title p { margin: 5px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.35; }

.auth-form__intro { margin: -2px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.55; }
.auth-form-alert {
  margin: 0;
  padding: 12px 16px;
  color: var(--auth-cream);
  border: 2px solid var(--auth-danger);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(255, 89, 94, .32), rgba(70, 24, 77, .28));
  font-size: 13px;
  line-height: 1.4;
}

.auth-form .field { display: grid; gap: 6px; margin: 0; }
.auth-form .field > span:first-child,
.auth-form .field > label,
.auth-form .form-label {
  color: var(--auth-cream);
  font: 700 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .015em;
  text-transform: none;
}

.auth-form .field input,
.auth-input {
  width: 100%;
  min-width: 0;
}

.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > .ico {
  position: absolute;
  left: 15px;
  z-index: 2;
  width: 17px;
  height: 17px;
  pointer-events: none;
  opacity: .95;
}

body.game-ui.theme-auth .auth-form input:not([type="radio"]):not([type="checkbox"]),
body.game-ui.theme-auth .auth-form select,
body.game-ui.theme-auth .auth-form textarea {
  min-height: 50px;
  padding: 12px 15px;
  color: var(--auth-cream);
  border: 2px solid rgba(222, 199, 216, .36);
  border-radius: 999px;
  clip-path: none;
  background: linear-gradient(110deg, rgba(27, 13, 37, .96), rgba(70, 24, 77, .88));
  box-shadow: inset 5px 0 0 rgba(255, 92, 108, .5), inset 0 0 18px rgba(18, 8, 23, .2);
  caret-color: var(--auth-lime);
}
.auth-input > input { padding-left: 44px !important; }
.auth-input--password > input { padding-right: 114px !important; }

body.game-ui.theme-auth .auth-form input::placeholder { color: #b998b0; opacity: 1; }
body.game-ui.theme-auth .auth-form input:hover { border-color: rgba(255, 92, 108, .72); }
body.game-ui.theme-auth .auth-form input:focus,
body.game-ui.theme-auth .auth-form select:focus,
body.game-ui.theme-auth .auth-form textarea:focus {
  outline: 0;
  border-color: var(--auth-lime);
  box-shadow: inset 5px 0 0 var(--auth-fuchsia), 0 0 0 4px rgba(183, 243, 74, .18), 0 0 24px rgba(255, 45, 141, .15);
}
body.game-ui.theme-auth .auth-form [aria-invalid="true"] {
  border-color: var(--auth-danger);
  box-shadow: inset 5px 0 0 var(--auth-danger), 0 0 0 3px rgba(255, 89, 94, .14);
}

.auth-password-toggle {
  position: absolute;
  right: 5px;
  z-index: 3;
  min-width: 96px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--auth-cream);
  border: 1px solid rgba(255, 92, 108, .34);
  border-radius: 999px;
  background: rgba(255, 45, 141, .12);
  font: 750 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .005em;
  cursor: pointer;
}
.auth-password-toggle:hover { color: var(--auth-berry-deep); background: var(--auth-lime); }
.auth-password-toggle[aria-pressed="true"] { color: var(--auth-berry-deep); background: var(--auth-emerald); }
.auth-password-toggle[hidden] { display: none !important; }

.field-error { color: #ff9b9f; font-size: 12px; font-style: normal; }
.form-hint { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.45; }

.auth-form__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  color: var(--auth-muted);
  font: 550 11px/1.35 "Oswald", sans-serif;
  letter-spacing: .035em;
}
.auth-form__status > span { width: 7px; height: 7px; flex-basis: 7px; }

body.game-ui.theme-auth .auth-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 11px 13px 11px 24px;
  color: var(--auth-cream);
  border: 2px solid rgba(255, 247, 240, .82);
  border-radius: 999px;
  clip-path: none;
  background: linear-gradient(110deg, var(--auth-coral), var(--auth-fuchsia) 58%, var(--auth-violet));
  box-shadow: inset 0 1px rgba(255, 247, 240, .28), 0 9px 0 rgba(112, 20, 82, .58), 0 16px 30px rgba(18, 8, 23, .32), 0 0 24px rgba(255, 45, 141, .2);
  font: 850 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .005em;
  text-shadow: none;
  text-transform: none;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
body.game-ui.theme-auth .auth-submit::after { display: none; }
body.game-ui.theme-auth .auth-submit b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--auth-cream);
  border: 2px solid rgba(255, 247, 240, .66);
  border-radius: 50%;
  clip-path: none;
  background: var(--auth-berry);
  font-size: 19px;
  transition: transform .16s ease;
}
body.game-ui.theme-auth .auth-submit:hover:not(:disabled) {
  filter: brightness(1.07) saturate(1.08);
  transform: translateY(-2px) rotate(-.3deg);
  box-shadow: inset 0 1px rgba(255, 247, 240, .32), 0 7px 0 rgba(112, 20, 82, .58), 0 18px 32px rgba(18, 8, 23, .36), 0 0 30px rgba(255, 45, 141, .3);
}
body.game-ui.theme-auth .auth-submit:hover:not(:disabled) b { transform: translateX(3px); }
body.game-ui.theme-auth .auth-submit:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 rgba(112, 20, 82, .68), 0 8px 18px rgba(18, 8, 23, .3); }
body.game-ui.theme-auth .auth-submit:disabled { opacity: .5; filter: grayscale(.45); cursor: not-allowed; box-shadow: none; }
.auth-form.is-submitting .auth-submit { filter: saturate(.72); }

.auth-form__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 16px;
  color: var(--auth-muted);
  font-size: 12px;
}
.auth-form__links a,
.auth-form .text-link { color: var(--auth-lime); text-decoration: none; font-weight: 750; }
.auth-form__links a:hover,
.auth-form .text-link:hover { color: var(--auth-coral); text-decoration: underline; text-underline-offset: 4px; }

.auth-submit-state:empty { display: none; }
.auth-submit-state { margin: -6px 0 0; color: var(--auth-lime); font-size: 12px; }
.auth-noscript {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--auth-muted);
  border: 1px dashed rgba(183, 243, 74, .42);
  border-radius: 16px;
  background: rgba(27, 13, 37, .32);
  font-size: 12px;
  line-height: 1.45;
}

.form-two-columns { gap: 10px; }
.ranking-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
}
.ranking-consent input { width: 19px; height: 19px; margin: 0; accent-color: var(--auth-fuchsia); }

.auth-recruitment {
  gap: 9px;
  margin: 2px 0;
  padding: 14px 0 4px;
  border-top: 3px solid rgba(255, 92, 108, .3);
  border-radius: 3px;
}
.auth-recruitment .form-label { margin: 0; color: var(--auth-lime); font-size: 13px; }
body.theme-auth .hero-picker--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: none;
}
body.theme-auth .hero-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 92, 108, .42);
  border-radius: 22px 22px 22px 8px;
  clip-path: none;
  background: linear-gradient(160deg, rgba(70, 24, 77, .94), rgba(27, 13, 37, .96));
  box-shadow: none;
}
body.theme-auth .hero-card__art { min-height: 92px; background-color: var(--auth-plum); }
body.theme-auth .hero-card__body { min-width: 0; }
body.theme-auth .hero-card__body strong,
body.theme-auth .hero-card__body small { overflow-wrap: anywhere; }
body.theme-auth .hero-card__body strong { color: var(--auth-cream); }
body.theme-auth .hero-card:has(input:checked) {
  border-color: var(--auth-lime);
  box-shadow: 0 0 0 2px rgba(183, 243, 74, .34), 0 14px 28px rgba(18, 8, 23, .4);
}
body.theme-auth .hero-card input:checked ~ .hero-card__art { box-shadow: inset 0 0 0 3px var(--auth-lime); }
body.theme-auth .rarity-badge {
  color: var(--auth-berry-deep);
  border-radius: 999px;
  clip-path: none;
  text-transform: none;
}
body.theme-auth .rarity-badge--1 { background: var(--auth-cream); }
body.theme-auth .rarity-badge--2 { background: var(--auth-emerald); }
body.theme-auth .rarity-badge--3 { background: var(--auth-coral); }
body.theme-auth .rarity-badge--4 { background: var(--auth-violet); color: var(--auth-cream); }
body.theme-auth .rarity-badge--5 { background: var(--auth-lime); }
body.theme-auth .hero-card.rarity-2 { border-color: rgba(56, 232, 159, .58); }
body.theme-auth .hero-card.rarity-3 { border-color: rgba(255, 92, 108, .58); }
body.theme-auth .hero-card.rarity-4 { border-color: rgba(162, 61, 255, .6); }
body.theme-auth .hero-card.rarity-5 { border-color: rgba(183, 243, 74, .66); }
body.theme-auth .hero-card__lock { color: var(--auth-cream); background: linear-gradient(180deg, transparent, rgba(27, 13, 37, .94)); }

.auth-stage__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  color: rgba(255, 247, 240, .7);
  font: 500 11.5px/1.3 "Oswald", sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(18, 8, 23, .92);
}

body.theme-auth .toast-stack { top: 14px; right: 14px; z-index: 90; }
body.theme-auth .toast {
  color: var(--auth-cream);
  border: 2px solid rgba(255, 92, 108, .68);
  border-radius: 22px 22px 22px 8px;
  clip-path: none;
  background: rgba(42, 18, 51, .97);
  box-shadow: 0 18px 36px rgba(18, 8, 23, .48), inset 5px 0 var(--auth-emerald);
}
body.theme-auth .toast--error { box-shadow: 0 18px 36px rgba(18, 8, 23, .48), inset 5px 0 var(--auth-danger); }

/* A cortina compartilhada recebe a mesma festa quando nasce no shell público. */
body.theme-auth .loading-screen { background: var(--auth-berry-deep) !important; }
body.theme-auth .loading-screen::before {
  background:
    linear-gradient(90deg, rgba(27, 13, 37, .26), rgba(42, 18, 51, .7) 54%, rgba(18, 8, 23, .96)),
    url('../img/auth/login-academy-desktop-v1.png') center / cover no-repeat !important;
}
body.theme-auth .loading-screen::after {
  background:
    radial-gradient(circle at 28% 46%, rgba(255, 45, 141, .18), transparent 28%),
    linear-gradient(180deg, rgba(27, 13, 37, .38), transparent 36%, rgba(18, 8, 23, .72));
}
body.theme-auth .loading-screen__leonatica {
  content: url('../img/auth/leonatica-festival-v1.png');
  filter: saturate(1.08) contrast(1.03) drop-shadow(18px 0 28px rgba(18, 8, 23, .44));
}
body.theme-auth .loading-screen__title,
body.theme-auth .loading-screen__term { color: var(--auth-cream) !important; }
body.theme-auth .loading-screen__eyebrow small,
body.theme-auth .loading-screen__label { color: var(--auth-lime) !important; }
body.theme-auth .loading-screen__eyebrow b,
body.theme-auth .loading-screen__tip,
body.theme-auth .loading-screen__signature { color: var(--auth-cream) !important; }
body.theme-auth .loading-screen__seal {
  border: 2px solid rgba(255, 247, 240, .72) !important;
  background: radial-gradient(circle at 34% 28%, var(--auth-coral), var(--auth-fuchsia) 54%, var(--auth-plum) 100%) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 247, 240, .08), 0 0 24px rgba(255, 45, 141, .34) !important;
  animation-name: auth-seal-bloom !important;
}
body.theme-auth .loading-screen__seal .ico { color: var(--auth-cream) !important; }
body.theme-auth .loading-screen__bar { border-radius: 999px !important; background: rgba(255, 92, 108, .18) !important; }
body.theme-auth .loading-screen__bar i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-fuchsia), var(--auth-lime)) !important;
  box-shadow: 0 0 18px rgba(255, 45, 141, .48);
}
body.theme-auth .loading-screen__lesson {
  border-left-color: var(--auth-coral) !important;
  border-radius: 18px 18px 18px 7px !important;
  background: linear-gradient(90deg, rgba(70, 24, 77, .78), transparent) !important;
}

@keyframes auth-scene-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}
@keyframes auth-seal-bloom {
  50% {
    transform: translateY(-2px) rotate(3deg);
    box-shadow: inset 0 0 0 4px rgba(255, 247, 240, .12), 0 0 30px rgba(183, 243, 74, .3);
  }
}
@keyframes auth-rune-spin { to { transform: rotate(360deg); } }
@keyframes auth-spark {
  0%, 100% { opacity: .22; transform: translateY(8px) rotate(0) scale(.72); }
  50% { opacity: .92; transform: translateY(-9px) rotate(110deg) scale(1.16); }
}
@keyframes auth-beam {
  from { opacity: .42; transform: scaleX(.86); }
  to { opacity: .9; transform: scaleX(1.08); }
}

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(370px, 445px); gap: 36px; }
  .auth-journey { grid-template-columns: 1fr; gap: 9px; max-width: 440px; }
  .auth-journey::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 5px; height: auto; }
  .auth-journey li { grid-template-columns: 42px 1fr; }
  .auth-journey li > span { width: 40px; height: 40px; }
}

@media (max-width: 860px) {
  body.theme-auth { overflow-y: auto; }
  .auth-stage {
    display: block;
    min-height: 100svh;
    padding: 10px 12px 14px;
    overflow: visible;
  }
  .auth-stage__picture img { object-position: center top; }
  .auth-stage__shade {
    background:
      linear-gradient(180deg, rgba(27, 13, 37, .13) 0%, rgba(42, 18, 51, .2) 24%, rgba(27, 13, 37, .78) 49%, rgba(18, 8, 23, .97) 100%),
      radial-gradient(circle at 50% 43%, rgba(255, 45, 141, .11), transparent 31%);
  }
  .auth-stage__header { min-height: 58px; }
  .auth-brand { gap: 9px; min-height: 48px; }
  .auth-brand__mark { width: 46px; height: 46px; }
  .auth-brand__mark b { font-size: 14px; }
  .auth-brand strong { font-size: 16px; }
  .auth-brand small { font-size: 10.5px; letter-spacing: .09em; }
  .auth-gateway-status { padding: 7px 11px; font-size: 11.5px; }
  .auth-gateway-status b { display: none; }
  .auth-shell {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 0 0;
  }
  body.game-ui.theme-auth .auth-hero { display: block; padding: 8px 6px 14px; }
  .auth-kicker { margin-bottom: 7px; font-size: 11.5px; letter-spacing: .1em; }
  .auth-kicker::before { width: 22px; }
  body.game-ui.theme-auth .auth-hero h1 { max-width: 16ch; font-size: clamp(28px, 8.2vw, 38px); line-height: 1.04; }
  .auth-prologue { max-width: 42ch; margin-top: 9px; font-size: 13px; line-height: 1.42; }
  .auth-journey,
  .auth-guide { display: none; }
  .auth-portal {
    width: 100%;
    margin-top: 8px;
    padding: 42px 17px 24px;
    border-radius: 30px 30px 30px 11px;
    clip-path: none;
    backdrop-filter: blur(13px) saturate(1.12);
  }
  .auth-portal::before { border-radius: 23px 23px 23px 8px; }
  .auth-portal__seal { top: -21px; width: 48px; height: 48px; }
  body.screen-page-registro .auth-portal__content { max-height: none; padding-right: 0; overflow: visible; }
  .auth-stage__footer { margin-top: 12px; padding: 0 4px; flex-direction: column; align-items: flex-start; gap: 3px; }
  body.theme-auth .toast-stack { top: 8px; right: 8px; left: 8px; max-width: none; }
  body.theme-auth .loading-screen::before {
    background:
      linear-gradient(180deg, rgba(27, 13, 37, .18), rgba(42, 18, 51, .65) 44%, rgba(18, 8, 23, .98) 79%),
      url('../img/auth/login-academy-mobile-v1.png') center / cover no-repeat !important;
  }
}

@media (max-width: 520px) {
  .auth-stage { padding-inline: 9px; }
  .auth-stage__header { gap: 8px; }
  .auth-gateway-status { max-width: 118px; }
  .auth-brand small { display: none; }
  .auth-title { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .auth-title__sigil { width: 44px; height: 44px; }
  body.game-ui.theme-auth .auth-title h2 { font-size: 22px; }
  .auth-title p { font-size: 12px; }
  body.game-ui .auth-tabs.game-nav-silhouette > a { padding-inline: 9px; font-size: 12px; }
  .form-two-columns { grid-template-columns: 1fr; }
  body.game-ui.theme-auth .auth-form input:not([type="radio"]):not([type="checkbox"]),
  body.game-ui.theme-auth .auth-form select,
  body.game-ui.theme-auth .auth-form textarea { font-size: 16px; }
  .auth-form__links { align-items: flex-start; flex-direction: column; }
  body.theme-auth .hero-picker--compact {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(154px, 64%);
    max-width: 100%;
    padding: 4px 3px 13px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--auth-fuchsia) rgba(27, 13, 37, .46);
    scrollbar-width: thin;
  }
  body.theme-auth .hero-picker--compact .hero-card { scroll-snap-align: start; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .auth-stage { padding-top: 10px; }
  .auth-stage__header { transform: scale(.9); transform-origin: left top; }
  .auth-shell { padding-block: 8px; }
  .auth-hero { gap: 16px !important; }
  body.game-ui.theme-auth .auth-hero h1 { font-size: clamp(34px, 3.5vw, 54px); }
  .auth-prologue { margin-top: 9px; }
  .auth-guide { display: none; }
  .auth-portal { padding-top: 39px; padding-bottom: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-stage__picture img,
  .auth-stage__runes::before,
  .auth-stage__runes::after,
  .auth-stage__runes > i,
  .auth-portal__beam,
  body.theme-auth .toast {
    animation: none !important;
  }
  .auth-skip-link,
  body.game-ui .auth-tabs.game-nav-silhouette > a,
  body.game-ui.theme-auth .auth-submit,
  body.game-ui.theme-auth .auth-submit b { transition: none !important; }
}

@media (forced-colors: active) {
  .auth-stage__picture,
  .auth-stage__shade,
  .auth-stage__runes { display: none; }
  .auth-stage { background: Canvas; color: CanvasText; }
  .auth-portal,
  .auth-form-alert,
  body.game-ui.theme-auth .auth-form input,
  body.game-ui .auth-tabs.game-nav-silhouette > a,
  body.game-ui.theme-auth .auth-submit,
  .auth-password-toggle { border: 2px solid CanvasText; forced-color-adjust: auto; }
}

.auth-brand:focus-visible,
.auth-password-toggle:focus-visible,
.auth-form__links a:focus-visible,
body.game-ui .auth-tabs.game-nav-silhouette > a:focus-visible,
body.game-ui.theme-auth .auth-submit:focus-visible {
  outline: 3px solid var(--auth-lime);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 45, 141, .26), 0 0 26px rgba(255, 45, 141, .38);
}

/* ---- Elementos de concurso (13/08): cartao-resposta, carimbo e selo ---- */
.auth-concurso { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 2px; }

.auth-concurso__cartao {
  display: grid; grid-template-columns: auto repeat(5, 15px); gap: 5px 6px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 244, 223, .93);
  box-shadow: 0 10px 24px rgba(18, 8, 23, .4);
  transform: rotate(-2deg);
}
.auth-concurso__cartao b { font: 800 11px/1 "Oswald", sans-serif; color: #4e243d; }
.auth-concurso__cartao i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #4e243d; background: transparent;
}
.auth-concurso__cartao i.is-marcada { background: #4e243d; box-shadow: inset 0 0 0 2px rgba(255, 244, 223, .9); }

.auth-concurso__carimbo {
  padding: 7px 16px; border-radius: 10px;
  border: 3px double var(--auth-lime);
  color: var(--auth-lime);
  font: 800 19px/1 "Oswald", sans-serif; letter-spacing: .16em;
  transform: rotate(-8deg);
  text-shadow: 0 2px 10px rgba(18, 8, 23, .8);
  animation: auth-carimbada .5s cubic-bezier(.2, 1.6, .4, 1) both;
  animation-delay: .9s;
}
@keyframes auth-carimbada {
  0% { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

.auth-concurso__selo {
  padding: 6px 14px; border-radius: 999px;
  color: var(--auth-cream);
  border: 1px dashed rgba(255, 244, 223, .55);
  background: rgba(78, 36, 61, .55);
  font: 700 11.5px/1 "Oswald", sans-serif; letter-spacing: .12em;
}

.auth-bancas { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.auth-bancas span {
  padding: 5px 13px; border-radius: 999px;
  color: var(--auth-cream);
  background: linear-gradient(145deg, rgba(183, 47, 103, .6), rgba(78, 36, 61, .7));
  border: 1px solid rgba(255, 103, 93, .35);
  font: 700 11.5px/1 "Oswald", sans-serif; letter-spacing: .08em;
}

@media (prefers-reduced-motion: reduce) {
  .auth-concurso__carimbo { animation: none; }
}
@media (max-width: 860px) {
  .auth-concurso, .auth-bancas { display: none; }
}

/* ---- Academia de campanha: leitura calma, fantasia e concurso em equilíbrio. */
body.theme-auth {
  --auth-berry: #181519;
  --auth-berry-deep: #100e12;
  --auth-plum: #282228;
  --auth-plum-soft: #3b3037;
  --auth-cream: #f2ede6;
  --auth-muted: #cabfbc;
  --auth-coral: #bd756a;
  --auth-fuchsia: #a05f76;
  --auth-lime: #d0b979;
  --auth-emerald: #7ea18a;
  --auth-violet: #786578;
  --auth-terracotta: #9c6258;
  --auth-danger: #c86d6d;
  --game-focus: var(--auth-lime);
  --game-accent: var(--auth-coral);
  --game-accent-rgb: 189, 117, 106;
  background: var(--auth-berry-deep);
}

.auth-stage__picture { background: var(--auth-berry-deep); }
.auth-stage__picture img {
  filter: saturate(.56) brightness(.72) contrast(1.06) sepia(.06);
}
.auth-stage__shade {
  background:
    radial-gradient(circle at 59% 28%, rgba(208, 185, 121, .07), transparent 28%),
    radial-gradient(circle at 76% 73%, rgba(160, 95, 118, .1), transparent 37%),
    linear-gradient(90deg, rgba(24, 21, 25, .94) 0%, rgba(40, 34, 40, .74) 30%, rgba(24, 21, 25, .27) 54%, rgba(40, 34, 40, .65) 75%, rgba(16, 14, 18, .94) 100%),
    linear-gradient(180deg, rgba(24, 21, 25, .45), transparent 28%, transparent 61%, rgba(16, 14, 18, .88));
}
.auth-stage__shade::after {
  opacity: .07;
  background-image:
    radial-gradient(circle, rgba(189, 117, 106, .58) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(208, 185, 121, .42) 0 1px, transparent 1.5px);
}
.auth-stage__runes { opacity: .4; }
.auth-stage__runes::before,
.auth-stage__runes::after {
  border-color: rgba(208, 185, 121, .2);
  box-shadow: inset 0 0 42px rgba(120, 101, 120, .06), 0 0 38px rgba(189, 117, 106, .06);
}
.auth-stage__runes > i {
  width: 6px;
  height: 6px;
  background: var(--auth-lime);
  box-shadow: 0 0 9px 1px rgba(208, 185, 121, .25);
}

.auth-brand { text-shadow: 0 2px 12px rgba(16, 14, 18, .9); }
.auth-brand__mark {
  border-color: rgba(242, 237, 230, .62);
  background: linear-gradient(145deg, #76515d, #9d6175 58%, #67586b);
  box-shadow: 0 9px 24px rgba(16, 14, 18, .4), inset 0 0 0 1px rgba(242, 237, 230, .1);
}
.auth-brand__mark::before { background: var(--auth-lime); }
.auth-brand__mark::after { background: var(--auth-emerald); }
.auth-brand__mark i { border-color: rgba(242, 237, 230, .4); }
.auth-brand small { color: rgba(242, 237, 230, .76); }

.auth-gateway-status {
  color: var(--auth-cream);
  border-color: rgba(202, 191, 188, .24);
  background: rgba(40, 34, 40, .8);
  box-shadow: 0 9px 22px rgba(16, 14, 18, .3);
  backdrop-filter: blur(12px) saturate(.8);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
}
.auth-gateway-status i,
.auth-form__status > span {
  background: var(--auth-emerald);
  box-shadow: 0 0 8px rgba(126, 161, 138, .42);
}
.auth-gateway-status b { color: var(--auth-lime); }
.auth-gateway-mobile { display: none; }

.auth-kicker {
  color: var(--auth-lime);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 750;
  text-shadow: 0 2px 11px rgba(16, 14, 18, .94);
}
.auth-kicker::before {
  height: 3px;
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-lime));
  box-shadow: none;
}
body.game-ui.theme-auth .auth-hero h1 {
  max-width: 13ch;
  text-shadow: 0 4px 28px rgba(16, 14, 18, .94);
}
.auth-prologue {
  color: rgba(242, 237, 230, .92);
  text-shadow: 0 2px 11px rgba(16, 14, 18, .96);
}

.auth-mobile-quest { display: none; }
.auth-journey::before {
  height: 3px;
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-fuchsia), var(--auth-lime));
  box-shadow: none;
}
.auth-journey li > span {
  color: var(--auth-berry-deep);
  border-color: rgba(242, 237, 230, .72);
  background: var(--auth-lime);
  box-shadow: 0 7px 18px rgba(16, 14, 18, .34);
}
.auth-journey li:nth-child(2) > span,
.auth-journey--posse li:nth-child(5) > span { background: var(--auth-coral); }
.auth-journey li:nth-child(3) > span { background: var(--auth-emerald); }
.auth-journey--posse li:nth-child(4) > span { color: var(--auth-cream); background: var(--auth-fuchsia); }
.auth-journey--posse li:nth-child(6) > span { color: var(--auth-cream); background: var(--auth-violet); }
.auth-journey li > span .ico {
  width: 23px;
  height: 23px;
  filter: saturate(.35) sepia(.18) brightness(.9) contrast(1.08);
}
.auth-journey strong,
.auth-journey small { text-shadow: 0 2px 8px rgba(16, 14, 18, .96); }
.auth-journey strong { font-size: 15px; }
.auth-journey small {
  margin-top: 4px;
  color: rgba(242, 237, 230, .76);
  font: 500 12.5px/1.42 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  text-transform: none;
}
.auth-journey--posse::after {
  content: "◆";
  color: var(--auth-lime);
  font-size: 17px;
  text-shadow: 0 3px 10px rgba(16, 14, 18, .9);
}

.auth-guide__portrait {
  border-color: var(--auth-lime);
  background: var(--auth-plum);
  box-shadow: 0 8px 22px rgba(16, 14, 18, .48), 0 0 0 4px rgba(208, 185, 121, .1);
}
.auth-guide__portrait img { filter: saturate(.62) brightness(.84) contrast(1.04); }
.auth-guide p { text-shadow: 0 2px 9px rgba(16, 14, 18, .96); }
.auth-guide small { color: var(--auth-lime); }

.auth-portal {
  border-color: rgba(189, 117, 106, .48);
  background:
    radial-gradient(circle at 50% 0, rgba(208, 185, 121, .07), transparent 37%),
    radial-gradient(circle at 100% 82%, rgba(160, 95, 118, .07), transparent 38%),
    linear-gradient(145deg, rgba(59, 48, 55, .95), rgba(24, 21, 25, .98) 58%, rgba(40, 34, 40, .96));
  box-shadow: inset 0 0 0 1px rgba(242, 237, 230, .06), inset 0 -26px 54px rgba(16, 14, 18, .22), 0 24px 46px rgba(16, 14, 18, .5);
  backdrop-filter: blur(18px) saturate(.82);
}
.auth-portal::before { border-color: rgba(208, 185, 121, .16); }
.auth-portal::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--auth-fuchsia), var(--auth-lime), transparent);
  opacity: .64;
}
.auth-portal__beam {
  opacity: .3;
  background: conic-gradient(from 205deg, transparent 0 39%, rgba(160, 95, 118, .18), rgba(126, 161, 138, .12), transparent 61%);
  filter: blur(14px);
}
.auth-portal__seal {
  border-color: rgba(242, 237, 230, .78);
  background:
    radial-gradient(circle, var(--auth-cream) 0 6%, var(--auth-lime) 7% 18%, transparent 19%),
    linear-gradient(145deg, var(--auth-coral), var(--auth-fuchsia));
  box-shadow: 0 8px 20px rgba(16, 14, 18, .38), inset 0 0 0 6px rgba(242, 237, 230, .08);
}
.auth-portal__heading {
  color: rgba(242, 237, 230, .7);
  font: 650 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .035em;
}
.auth-portal__heading span {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 161, 138, .48));
}

body.game-ui .auth-tabs.game-nav-silhouette {
  border-color: rgba(202, 191, 188, .14);
  background: rgba(16, 14, 18, .5);
}
body.game-ui .auth-tabs.game-nav-silhouette > a {
  color: rgba(242, 237, 230, .72);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  letter-spacing: .015em;
}
body.game-ui .auth-tabs.game-nav-silhouette > a:hover {
  border-color: rgba(189, 117, 106, .42);
  background: rgba(189, 117, 106, .1);
}
body.game-ui .auth-tabs.game-nav-silhouette > a.is-active,
body.game-ui .auth-tabs.game-nav-silhouette > a[aria-current="page"] {
  color: var(--auth-berry-deep);
  border-color: rgba(242, 237, 230, .7);
  background: linear-gradient(135deg, #d0b979, #99aa7b);
  box-shadow: 0 6px 16px rgba(16, 14, 18, .24);
}

.auth-title__sigil {
  border-color: rgba(242, 237, 230, .55);
  background: linear-gradient(145deg, #735d73, #9d6175);
  box-shadow: 0 7px 18px rgba(16, 14, 18, .28);
}
.auth-title__sigil .ico,
.auth-input > .ico { filter: saturate(.32) sepia(.12) brightness(1.38) contrast(.86); }
.auth-title small {
  color: var(--auth-lime);
  font-size: 12px;
  font-weight: 720;
}
.auth-title p { color: rgba(242, 237, 230, .7); font-size: 13.5px; }
.auth-form .field > span:first-child,
.auth-form .field > label,
.auth-form .form-label { color: rgba(242, 237, 230, .9); font-size: 12.5px; }

body.game-ui.theme-auth .auth-form input:not([type="radio"]):not([type="checkbox"]),
body.game-ui.theme-auth .auth-form select,
body.game-ui.theme-auth .auth-form textarea {
  color: var(--auth-cream);
  border-color: rgba(202, 191, 188, .28);
  background: linear-gradient(110deg, rgba(24, 21, 25, .96), rgba(59, 48, 55, .86));
  box-shadow: inset 4px 0 0 rgba(189, 117, 106, .38), inset 0 0 16px rgba(16, 14, 18, .18);
}
body.game-ui.theme-auth .auth-form input::placeholder { color: #a99da0; }
body.game-ui.theme-auth .auth-form input:hover { border-color: rgba(189, 117, 106, .56); }
body.game-ui.theme-auth .auth-form input:focus,
body.game-ui.theme-auth .auth-form select:focus,
body.game-ui.theme-auth .auth-form textarea:focus {
  border-color: var(--auth-lime);
  box-shadow: inset 4px 0 0 var(--auth-coral), 0 0 0 4px rgba(208, 185, 121, .14), 0 0 20px rgba(16, 14, 18, .18);
}
.auth-password-toggle {
  color: rgba(242, 237, 230, .9);
  border-color: rgba(189, 117, 106, .3);
  background: rgba(160, 95, 118, .1);
}
.auth-password-toggle:hover,
.auth-password-toggle[aria-pressed="true"] { color: var(--auth-berry-deep); background: var(--auth-lime); }
.auth-form__status {
  color: rgba(242, 237, 230, .66);
  font: 550 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em;
}

body.game-ui.theme-auth .auth-submit {
  color: var(--auth-cream);
  border-color: rgba(242, 237, 230, .74);
  background: linear-gradient(110deg, #9c6258, #a05f76 60%, #786578);
  box-shadow: inset 0 1px rgba(242, 237, 230, .2), 0 6px 0 rgba(66, 41, 51, .78), 0 14px 27px rgba(16, 14, 18, .34);
}
body.game-ui.theme-auth .auth-submit b {
  border-color: rgba(242, 237, 230, .54);
  background: var(--auth-berry-deep);
}
body.game-ui.theme-auth .auth-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: inset 0 1px rgba(242, 237, 230, .24), 0 5px 0 rgba(66, 41, 51, .78), 0 17px 30px rgba(16, 14, 18, .38);
}
body.game-ui.theme-auth .auth-submit:active:not(:disabled) { box-shadow: 0 2px 0 rgba(66, 41, 51, .82), 0 7px 16px rgba(16, 14, 18, .3); }
.auth-form__links { color: rgba(242, 237, 230, .67); font-size: 12.5px; }
.auth-form__links a,
.auth-form .text-link { color: var(--auth-lime); }
.auth-form__links a:hover,
.auth-form .text-link:hover { color: var(--auth-coral); }

.auth-concurso__cartao {
  background: rgba(242, 237, 230, .93);
  box-shadow: 0 9px 20px rgba(16, 14, 18, .36);
}
.auth-concurso__carimbo {
  border-color: var(--auth-lime);
  color: var(--auth-lime);
  text-shadow: 0 2px 8px rgba(16, 14, 18, .84);
}
.auth-concurso__selo {
  color: rgba(242, 237, 230, .9);
  border-color: rgba(242, 237, 230, .34);
  background: rgba(59, 48, 55, .58);
}
.auth-bancas span {
  color: rgba(242, 237, 230, .9);
  background: linear-gradient(145deg, rgba(124, 73, 89, .58), rgba(59, 48, 55, .76));
  border-color: rgba(189, 117, 106, .3);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: .04em;
}
.auth-stage__footer {
  color: rgba(242, 237, 230, .62);
  font: 500 12px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em;
}

body.theme-auth .loading-screen { background: var(--auth-berry-deep) !important; }
body.theme-auth .loading-screen::before {
  filter: saturate(.58) brightness(.72);
  background:
    linear-gradient(90deg, rgba(24, 21, 25, .4), rgba(40, 34, 40, .78) 54%, rgba(16, 14, 18, .97)),
    url('../img/auth/login-academy-desktop-v1.png') center / cover no-repeat !important;
}
body.theme-auth .loading-screen::after {
  background:
    radial-gradient(circle at 28% 46%, rgba(160, 95, 118, .1), transparent 28%),
    linear-gradient(180deg, rgba(24, 21, 25, .45), transparent 36%, rgba(16, 14, 18, .8));
}
body.theme-auth .loading-screen__leonatica { filter: saturate(.62) brightness(.84) contrast(1.04) drop-shadow(18px 0 28px rgba(16, 14, 18, .44)); }
body.theme-auth .loading-screen__seal {
  background: radial-gradient(circle at 34% 28%, var(--auth-coral), var(--auth-fuchsia) 54%, var(--auth-plum) 100%) !important;
  box-shadow: inset 0 0 0 4px rgba(242, 237, 230, .07), 0 0 20px rgba(160, 95, 118, .22) !important;
}
body.theme-auth .loading-screen__bar { background: rgba(189, 117, 106, .12) !important; }
body.theme-auth .loading-screen__bar i {
  background: linear-gradient(90deg, var(--auth-coral), var(--auth-fuchsia), var(--auth-lime)) !important;
  box-shadow: 0 0 12px rgba(160, 95, 118, .28);
}

.auth-brand:focus-visible,
.auth-password-toggle:focus-visible,
.auth-form__links a:focus-visible,
body.game-ui .auth-tabs.game-nav-silhouette > a:focus-visible,
body.game-ui.theme-auth .auth-submit:focus-visible {
  outline-color: var(--auth-lime);
  box-shadow: 0 0 0 5px rgba(208, 185, 121, .2), 0 0 18px rgba(16, 14, 18, .32);
}

@media (max-width: 860px) {
  .auth-stage__shade {
    background:
      linear-gradient(180deg, rgba(24, 21, 25, .34) 0%, rgba(40, 34, 40, .42) 24%, rgba(24, 21, 25, .86) 49%, rgba(16, 14, 18, .98) 100%),
      radial-gradient(circle at 50% 43%, rgba(160, 95, 118, .07), transparent 31%);
  }
  body.screen-page-login .auth-mobile-quest {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    max-width: 360px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
  }
  body.screen-page-login .auth-mobile-quest::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 10%;
    left: 10%;
    height: 2px;
    background: rgba(208, 185, 121, .38);
  }
  .auth-mobile-quest li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; }
  .auth-mobile-quest b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--auth-berry-deep);
    border: 1px solid rgba(242, 237, 230, .68);
    border-radius: 50%;
    background: var(--auth-lime);
    font: 750 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .auth-mobile-quest li:nth-child(2) b { background: var(--auth-coral); }
  .auth-mobile-quest li:nth-child(3) b { background: var(--auth-emerald); }
  .auth-mobile-quest li:nth-child(4) b { color: var(--auth-cream); background: var(--auth-violet); }
  .auth-mobile-quest span {
    color: rgba(242, 237, 230, .76);
    font: 650 11px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .auth-portal { backdrop-filter: blur(13px) saturate(.78); }
  body.theme-auth .loading-screen::before {
    background:
      linear-gradient(180deg, rgba(24, 21, 25, .34), rgba(40, 34, 40, .76) 44%, rgba(16, 14, 18, .98) 79%),
      url('../img/auth/login-academy-mobile-v1.png') center / cover no-repeat !important;
  }
}

@media (max-width: 520px) {
  .auth-gateway-status {
    max-width: none;
    padding-inline: 10px;
    white-space: nowrap;
  }
  .auth-gateway-label,
  .auth-gateway-status b { display: none; }
  .auth-gateway-mobile { display: inline; }
  .auth-shell { padding-top: 9px; }
  body.game-ui.theme-auth .auth-hero { padding-block: 4px 9px; }
  .auth-prologue { font-size: 12.5px; line-height: 1.38; }
  body.screen-page-login .auth-mobile-quest { margin-top: 9px; }
  body.screen-page-login .auth-portal { margin-top: 5px; padding-top: 39px; }
  body.screen-page-login .auth-form { gap: 13px; }
}
