:root {
  color-scheme: light;
  --orange: #f36a21;
  --orange-dark: #cc4d12;
  --orange-soft: #ffe7d4;
  --ink: #24211f;
  --muted: #6f675f;
  --paper: #fff8f1;
  --line: rgb(232 107 39 / 0.24);
  --green: #24945d;
  --shadow: 0 28px 80px rgb(143 58 12 / 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 87% 9%, rgb(255 218 183 / 0.78), transparent 24rem),
    radial-gradient(circle at 8% 88%, rgb(255 165 99 / 0.22), transparent 24rem),
    linear-gradient(135deg, #fffdf9 0%, #fff8f1 48%, #fff1e6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

body::before,
body::after {
  position: fixed;
  pointer-events: none;
  content: "";
}

body::before {
  top: 0;
  right: 0;
  width: min(34vw, 520px);
  height: min(34vw, 520px);
  opacity: 0.32;
  background-image: radial-gradient(circle, rgb(224 95 28 / 0.58) 1.6px, transparent 1.8px);
  background-position: 0 0;
  background-size: 16px 16px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

body::after {
  left: 0;
  bottom: 0;
  width: min(30vw, 460px);
  height: min(30vw, 460px);
  opacity: 0.24;
  background-image: radial-gradient(circle, rgb(238 106 31 / 0.54) 1.5px, transparent 1.8px);
  background-size: 15px 15px;
  mask-image: linear-gradient(315deg, black, transparent 72%);
}

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

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 2.3vh, 30px);
  padding: clamp(14px, 2vh, 28px) clamp(24px, 4vw, 64px);
}

.site-header {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #272320;
  font-size: clamp(1.16rem, 1.32vw, 2.2rem);
  font-weight: 950;
  text-transform: uppercase;
}

.brand strong {
  color: var(--orange);
}

.brand-mark {
  width: clamp(70px, 4.9vw, 102px);
  height: clamp(70px, 4.9vw, 102px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 16px 26px rgb(238 101 30 / 0.18));
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4.4vw, 84px);
  color: #3d3732;
  font-size: clamp(0.98rem, 1.05vw, 1.6rem);
  font-weight: 820;
}

.nav-links a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a.is-active {
  color: var(--orange);
}

.nav-links a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.header-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: clamp(14px, 1.5vw, 22px);
}

.login-link {
  min-height: 50px;
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(214 101 50 / 0.4);
  border-radius: 8px;
  padding: 0 30px;
  color: #b45622;
  background: rgb(255 248 241 / 0.28);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.64);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.login-link[hidden] {
  display: none;
}

.login-link:hover,
.login-link:focus-visible {
  border-color: rgb(232 107 39 / 0.66);
  color: var(--orange-dark);
  background: rgb(255 247 239 / 0.66);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.72),
    0 10px 22px rgb(143 58 12 / 0.1);
  transform: translateY(-1px);
}

.login-link:focus-visible {
  outline: 3px solid rgb(232 107 39 / 0.2);
  outline-offset: 3px;
}

.login-link:active {
  transform: translateY(0);
}

.icon-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  color: #403a35;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.85;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-trigger {
  border-radius: 999px;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  color: var(--orange-dark);
  background: rgb(232 107 39 / 0.08);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  width: 310px;
  border: 1px solid rgb(232 107 39 / 0.2);
  border-radius: 8px;
  padding: 10px;
  color: #3d3732;
  background: rgb(255 253 249 / 0.98);
  box-shadow:
    0 20px 54px rgb(97 45 16 / 0.16),
    0 2px 8px rgb(97 45 16 / 0.08);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-dropdown::before {
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgb(232 107 39 / 0.2);
  border-left: 1px solid rgb(232 107 39 / 0.2);
  background: rgb(255 253 249 / 0.98);
  content: "";
  transform: rotate(45deg);
}

.profile-dropdown-header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgb(232 107 39 / 0.14);
  padding: 12px 12px 14px;
}

.profile-dropdown-header strong {
  color: #28231f;
  font-size: 0.96rem;
  font-weight: 900;
}

.profile-dropdown-header span {
  color: #746a61;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.35;
}

.profile-dropdown-actions {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
}

.profile-action {
  min-height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.profile-action.is-primary {
  color: white;
  background: linear-gradient(180deg, #ff8135, #e95d18);
  box-shadow: 0 12px 24px rgb(239 93 21 / 0.2);
}

.profile-action.is-secondary {
  border: 1px solid rgb(232 107 39 / 0.34);
  color: var(--orange-dark);
  background: rgb(255 248 241 / 0.78);
}

.profile-action:hover {
  transform: translateY(-1px);
}

.profile-action:focus-visible {
  outline: 3px solid rgb(232 107 39 / 0.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .login-link,
  .profile-dropdown,
  .profile-action {
    transition: none;
  }

  .login-link:hover,
  .profile-dropdown,
  .profile-action:hover {
    transform: none;
  }
}

main {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2vh, 26px);
  margin: 0 auto;
}

.hero-panel {
  position: relative;
  width: min(100%, 82vw, 1640px);
  min-height: 0;
  height: 100%;
  display: grid;
  justify-self: center;
  align-items: center;
  isolation: isolate;
  overflow: visible;
  margin-top: 0;
  border: 1px solid rgb(232 107 39 / 0.26);
  border-radius: clamp(26px, 3.2vw, 52px);
  padding: clamp(22px, 3vh, 42px) clamp(28px, 5vw, 86px);
  background: #fff9f2;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.96),
    var(--shadow);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background-color: #fff7ef;
  background-image: url("./assets/backgroundforsite.png");
  background-position: center 33%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-bg {
  display: none;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.hero-art::before {
  background:
    radial-gradient(circle at 12% 80%, rgb(255 246 235 / 0.38), transparent 20rem),
    radial-gradient(circle at 50% 28%, rgb(255 255 255 / 0.5), transparent 27rem),
    linear-gradient(90deg, rgb(255 252 247 / 0.22), rgb(255 247 238 / 0.14) 52%, rgb(255 241 224 / 0.08));
}

.hero-art::after {
  background:
    linear-gradient(180deg, rgb(255 252 247 / 0.2), transparent 30%, transparent 100%),
    radial-gradient(ellipse at 50% 48%, rgb(255 255 255 / 0.28), transparent 46%);
}

.hero-car {
  position: absolute;
  z-index: 2;
  left: min(-9vw, calc(820px - 50vw));
  bottom: clamp(-52px, -4vh, -30px);
  width: clamp(330px, 25vw, 500px);
  max-width: none;
  height: auto;
  pointer-events: none;
  transform-origin: 48% 62%;
  animation: car-hover 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 34px rgb(105 48 8 / 0.18));
}

@keyframes car-hover {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(-0.35deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-car {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
  transform: translateY(clamp(-42px, -4.5vh, -24px));
}

.hero-badge {
  width: clamp(82px, 7.8vh, 118px);
  height: clamp(82px, 7.8vh, 118px);
  display: grid;
  place-items: center;
  margin: 0 auto clamp(18px, 2.2vh, 28px);
  filter: drop-shadow(0 14px 20px rgb(232 92 19 / 0.18));
}

.hero-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  margin: 0;
  color: #24211f;
  font-family: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 5.65vw, 7.2rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 span,
h1 strong {
  display: block;
  letter-spacing: 0;
  transform: skewX(-9deg);
  white-space: nowrap;
}

h1 strong {
  margin-top: clamp(14px, 1.8vh, 24px);
  color: var(--orange);
  font-size: 1em;
}

.title-rule {
  width: clamp(56px, 5vw, 84px);
  height: 3px;
  display: block;
  margin: clamp(10px, 1.5vh, 18px) auto clamp(10px, 1.4vh, 16px);
  border-radius: 999px;
  background: var(--orange);
}

.hero-content p {
  max-width: 690px;
  margin: 0 auto;
  color: #635d57;
  font-size: clamp(0.96rem, 1.08vw, 1.14rem);
  font-weight: 700;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(14px, 2vh, 24px);
}

.button {
  min-height: clamp(72px, 8.6vh, 96px);
  min-width: clamp(300px, 18vw, 360px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 2px solid rgb(232 107 39 / 0.62);
  border-radius: 9px;
  padding: 0 34px;
  font-size: clamp(1rem, 1vw, 1.22rem);
  font-weight: 700;
  text-transform: uppercase;
}

.button svg,
.button-icon {
  width: clamp(28px, 2.1vw, 38px);
  height: clamp(28px, 2.1vw, 38px);
  flex: 0 0 auto;
}

.button-icon {
  display: block;
  object-fit: contain;
}

.button.is-primary {
  color: white;
  background: linear-gradient(180deg, #ff8135, #e95d18);
  box-shadow: 0 20px 36px rgb(239 93 21 / 0.25);
}

.button.is-secondary {
  color: var(--orange-dark);
  background: rgb(255 251 247 / 0.8); /* 0.8 transparency originally */
}

.stats-grid {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
  margin: 0 auto;
}

.stat-card {
  min-height: clamp(128px, 8vw, 178px);
  display: grid;
  grid-template-columns: clamp(86px, 5.8vw, 116px) minmax(max-content, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 1.9vw, 34px);
  background: rgb(255 250 245 / 0.84);
  box-shadow: 0 18px 42px rgb(150 58 8 / 0.08);
}

.stat-icon {
  position: relative;
  width: clamp(86px, 5.8vw, 112px);
  height: clamp(86px, 5.8vw, 112px);
  display: grid;
  place-items: center;
  border: 2px solid rgb(255 249 241 / 0.98);
  border-radius: 999px;
  color: white;
  background:
    radial-gradient(circle at 34% 24%, #ff933f 0 24%, transparent 42%),
    linear-gradient(180deg, #f57a27 0%, #df5f17 100%);
  box-shadow:
    inset 0 2px 0 rgb(255 207 159 / 0.48),
    inset 0 -10px 18px rgb(137 49 7 / 0.16),
    0 1px 0 rgb(190 76 14 / 0.36),
    0 8px 18px rgb(177 68 8 / 0.1);
}

.stat-icon::before {
  position: absolute;
  inset: 5px;
  border: 2px solid rgb(255 169 88 / 0.52);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgb(255 218 184 / 0.28);
  content: "";
}

.stat-icon img {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.stat-icon .stat-art-people {
  width: 78%;
  height: 78%;
}

.stat-icon .stat-art-database {
  width: 78%;
  height: 78%;
}

.stat-card span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stat-card small {
  color: #5d5752;
  font-size: clamp(0.78rem, 0.82vw, 0.98rem);
  font-weight: 950;
  text-transform: uppercase;
}

.stat-card strong {
  color: #262321;
  font-size: clamp(1.78rem, 2.25vw, 4rem);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.stat-card em {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  color: #67605a;
  font-size: clamp(0.82rem, 0.9vw, 1.06rem);
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.stat-delta {
  color: var(--green);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .stats-grid {
    width: 100%;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    min-height: 100%;
    height: auto;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    min-height: 100vh;
    height: auto;
    display: block;
    padding: 20px;
  }

  main {
    display: block;
    min-height: auto;
  }

  .site-header {
    gap: 18px;
  }

  .brand {
    gap: 10px;
  }

  .header-actions {
    gap: 10px;
  }

  .login-link {
    min-width: 116px;
    min-height: 46px;
    padding: 0 20px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .icon-button svg {
    width: 32px;
    height: 32px;
  }

  .profile-dropdown {
    right: -8px;
    width: 280px;
  }

  .hero-panel {
    min-height: 520px;
    height: auto;
    margin-top: 34px;
    padding: 46px 20px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transform: none;
  }

  .hero-bg {
    object-position: center bottom;
  }

  .hero-car {
    left: -118px;
    bottom: -38px;
    width: 300px;
    opacity: 0.78;
  }

  h1 {
    font-size: clamp(2.55rem, 10vw, 3rem);
    line-height: 0.9;
  }

  h1 span,
  h1 strong {
    white-space: normal;
  }

  .hero-content p {
    max-width: 30ch;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin: 34px auto 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 16px;
    overflow: hidden;
  }

  .site-header {
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .header-actions {
    justify-self: start;
  }

  .profile-dropdown {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 32px));
    transform-origin: top left;
  }

  .profile-dropdown::before {
    right: auto;
    left: 16px;
  }

  .nav-links {
    gap: 24px;
    font-size: 0.92rem;
    width: 100%;
    min-width: 0;
  }

  main {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .hero-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .stat-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .stat-card strong {
    font-size: 2.2rem;
  }
}

body.auth-page {
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  color: #272320;
  background:
    radial-gradient(circle at 78% 10%, rgb(255 196 109 / 0.3), transparent 21rem),
    radial-gradient(circle at 27% 48%, rgb(255 185 101 / 0.24), transparent 24rem),
    linear-gradient(135deg, #d94f0e 0%, #ff7b25 42%, #dc520f 100%);
}

body.auth-page::before {
  top: 0;
  right: 0;
  width: min(32vw, 520px);
  height: min(32vw, 520px);
  opacity: 0.22;
  background-image: radial-gradient(circle, rgb(255 218 154 / 0.7) 1.6px, transparent 1.8px);
  background-size: 17px 17px;
  mask-image: linear-gradient(135deg, black, transparent 76%);
}

body.auth-page::after {
  left: 0;
  bottom: 0;
  width: min(34vw, 560px);
  height: min(34vw, 560px);
  opacity: 0.24;
  background-image: radial-gradient(circle, rgb(255 225 171 / 0.62) 1.5px, transparent 1.8px);
  background-size: 17px 17px;
  mask-image: linear-gradient(315deg, black, transparent 76%);
}

.auth-card a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-page::selection {
  color: white;
  background: var(--orange-dark);
}

.auth-page::marker {
  color: var(--orange-dark);
}

.auth-page::backdrop {
  background: #e45c15;
}

.auth-page .auth-shell::before,
.auth-page .auth-shell::after {
  position: fixed;
  pointer-events: none;
  content: "";
}

.auth-page .auth-shell::before {
  right: -10vw;
  bottom: -24vh;
  width: 92vw;
  height: 64vh;
  border-radius: 50% 0 0 0;
  background: rgb(255 174 82 / 0.2);
  transform: rotate(-12deg);
}

.auth-page .auth-shell::after {
  left: -18vw;
  bottom: -32vh;
  width: 88vw;
  height: 76vh;
  border-radius: 0 55% 0 0;
  background: rgb(158 52 11 / 0.14);
  transform: rotate(10deg);
}

.auth-brand {
  position: fixed;
  top: clamp(16px, 2.4vw, 28px);
  left: clamp(18px, 3vw, 38px);
  z-index: 2;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.55vw, 1.7rem);
  font-weight: 950;
}

.auth-page .auth-brand-link,
.auth-page .auth-brand-link:hover,
.auth-page .auth-brand-link:focus-visible {
  text-decoration: none;
}

.auth-brand-link span {
  color: white;
}

.auth-brand-link img {
  width: clamp(62px, 5.2vw, 86px);
  height: clamp(62px, 5.2vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgb(95 32 7 / 0.22));
}

.auth-brand-link strong {
  color: #ffb247;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(42px, 5vh, 74px) 24px clamp(24px, 4vh, 42px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  border: 1px solid rgb(255 255 255 / 0.82);
  border-radius: 24px;
  padding: clamp(22px, 2vw, 28px) clamp(34px, 3.4vw, 54px);
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.92), transparent 16rem),
    rgb(255 250 245 / 0.94);
  box-shadow:
    0 34px 90px rgb(104 34 6 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.95);
  backdrop-filter: blur(12px);
}

.auth-card.is-verifying {
  width: min(100%, 520px);
  padding: clamp(28px, 3vw, 42px);
}

.auth-crown[hidden],
.auth-heading[hidden],
.auth-form[hidden],
.auth-create[hidden],
.auth-divider[hidden],
.auth-socials[hidden],
.auth-terms[hidden] {
  display: none;
}

.auth-crown {
  width: clamp(72px, 4.8vw, 92px);
  height: clamp(72px, 4.8vw, 92px);
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgb(232 92 19 / 0.2));
}

.auth-heading {
  text-align: center;
  margin-bottom: 18px;
}

.auth-heading h1 {
  margin: 0;
  color: #252321;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2.35vw, 2.32rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1.04;
  text-transform: none;
}

.auth-heading p {
  margin: 5px 0 0;
  color: #68615b;
  font-size: 0.98rem;
  font-weight: 560;
}

.email-verification-view,
.password-reset-view {
  display: grid;
  gap: 22px;
}

.email-verification-view[hidden],
.password-reset-view[hidden] {
  display: none;
}

.verification-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  color: #655d56;
  background: transparent;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 760;
}

.verification-back svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verification-back:hover,
.verification-back:focus-visible {
  color: var(--orange-dark);
}

.verification-back:focus-visible,
.verification-resend:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgb(232 107 39 / 0.22);
  outline-offset: 4px;
}

.verification-heading {
  display: grid;
  gap: 12px;
}

.verification-heading h2 {
  margin: 0;
  color: #24211f;
  font-size: clamp(1.74rem, 2vw, 2.12rem);
  font-weight: 950;
  line-height: 1.05;
}

.verification-heading p {
  max-width: 26rem;
  margin: 0;
  color: #69615b;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.55;
}

.verification-heading strong {
  color: #2f2b27;
  font-weight: 860;
}

.reset-verified-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgb(36 148 93 / 0.22);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgb(36 148 93 / 0.12), rgb(255 255 255 / 0.54)),
    rgb(247 255 250 / 0.84);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.86),
    0 16px 34px rgb(21 94 59 / 0.08);
}

.reset-verified-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #24945d;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    0 12px 24px rgb(36 148 93 / 0.22);
}

.reset-verified-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reset-verified-panel h2 {
  margin: 0;
  color: #203f2d;
  font-size: clamp(1.35rem, 1.7vw, 1.68rem);
  font-weight: 940;
  line-height: 1.08;
}

.reset-verified-panel p {
  margin: 6px 0 0;
  color: #56675d;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.45;
}

.verification-form,
.password-reset-request-form,
.password-reset-confirm-form,
.google-signup-form {
  display: grid;
  gap: 18px;
}

.verification-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.verification-code-grid input {
  width: 100%;
  aspect-ratio: 0.86;
  border: 1px solid rgb(218 111 54 / 0.42);
  border-radius: 13px;
  color: #24211f;
  background: rgb(255 253 250 / 0.76);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.88),
    0 12px 26px rgb(104 34 6 / 0.05);
  text-align: center;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 920;
  line-height: 1;
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.verification-code-grid input:focus {
  border-color: rgb(232 107 39 / 0.86);
  background: white;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 0 0 4px rgb(232 107 39 / 0.14),
    0 14px 28px rgb(104 34 6 / 0.08);
  transform: translateY(-1px);
}

.verification-status {
  margin: -4px 0 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

.verification-status[hidden] {
  display: none;
}

.verification-status.is-error {
  border-color: rgb(188 42 27 / 0.24);
  color: #9f2618;
  background: rgb(188 42 27 / 0.08);
}

.verification-status.is-success {
  border-color: rgb(36 148 93 / 0.24);
  color: #1f744b;
  background: rgb(36 148 93 / 0.08);
}

.verification-submit {
  margin-top: 2px;
}

.verification-resend {
  justify-self: center;
  border: 0;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 760;
}

.verification-resend:disabled {
  color: #81766e;
  cursor: default;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #4c4742;
  font-size: 0.98rem;
  font-weight: 780;
}

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

.auth-label-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-label-row a {
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-input-wrap {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(218 111 54 / 0.36);
  border-radius: 8px;
  padding: 0 16px;
  background: rgb(255 253 250 / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.82);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.auth-input-wrap:focus-within {
  border-color: rgb(232 107 39 / 0.7);
  background: white;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 0 0 4px rgb(232 107 39 / 0.12);
}

.auth-input-wrap svg {
  width: 24px;
  height: 24px;
  color: #8a8580;
  stroke-width: 2;
}

.display-name-input-wrap {
  grid-template-columns: 28px minmax(0, 1fr) 40px;
}

.display-name-verification {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  grid-column: 3;
  color: #8a8580;
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 180ms ease;
}

.display-name-verification svg {
  width: 24px;
  height: 24px;
  color: inherit;
  overflow: visible;
}

.verification-ring,
.verification-spinner,
.verification-check,
.verification-x path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verification-ring {
  opacity: 0.16;
  stroke-width: 2;
}

.verification-spinner {
  opacity: 0;
  stroke-width: 2.2;
  stroke-dasharray: 0.24 0.76;
  transform-origin: center;
}

.verification-check {
  opacity: 0;
  stroke-width: 2.5;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.verification-x path {
  opacity: 0;
  stroke-width: 2.5;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
}

.display-name-input-wrap[data-validation="checking"] .display-name-verification,
.display-name-input-wrap[data-validation="valid"] .display-name-verification,
.display-name-input-wrap[data-validation="invalid"] .display-name-verification {
  opacity: 1;
  transform: scale(1);
}

.display-name-input-wrap[data-validation="checking"] .display-name-verification {
  color: #8a8580;
}

.display-name-input-wrap[data-validation="checking"] .verification-spinner {
  opacity: 1;
  animation: verification-spin 850ms linear infinite;
}

.display-name-input-wrap[data-validation="valid"] .display-name-verification {
  color: #23803a;
  animation: verification-pop 260ms cubic-bezier(0.2, 0.86, 0.3, 1.25);
}

.display-name-input-wrap[data-validation="valid"] .verification-check {
  opacity: 1;
  stroke-dashoffset: 0;
  animation: verification-draw-check 300ms ease-out forwards;
}

.display-name-input-wrap[data-validation="invalid"] .display-name-verification {
  color: #c23a2a;
  animation: verification-shake 260ms ease-out;
}

.display-name-input-wrap[data-validation="invalid"] .verification-x path {
  opacity: 1;
  stroke-dashoffset: 0;
  animation: verification-draw-x 200ms ease-out forwards;
}

.display-name-input-wrap[data-validation="invalid"] .verification-x path:last-child {
  animation-delay: 70ms;
}

.display-name-status {
  min-width: 0;
  color: #c23a2a;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
}

.display-name-status:empty {
  display: none;
}

.password-input-wrap {
  grid-template-columns: 28px minmax(0, 1fr) 40px;
}

.password-lock-icon {
  overflow: visible;
  transform-origin: center;
  transition: color 160ms ease;
}

.password-lock-shackle {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.password-lock-shackle-closed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.password-lock-shackle-open {
  opacity: 0;
  transform: translateY(2px) scale(0.98);
}

.password-input-wrap.is-password-revealed .password-lock-icon {
  color: var(--orange-dark);
}

.password-input-wrap.is-password-revealed .password-lock-shackle-closed {
  opacity: 0;
  transform: translateY(-2px) scale(0.98);
}

.password-input-wrap.is-password-revealed .password-lock-shackle-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.password-lock-icon.is-unlocking {
  animation: lock-body-open 360ms cubic-bezier(0.2, 0.9, 0.28, 1.2);
}

.password-lock-icon.is-locking {
  animation: lock-body-close 300ms ease-out;
}

.password-lock-icon.is-unlocking .password-lock-shackle-open {
  animation: shackle-open 360ms cubic-bezier(0.2, 0.9, 0.28, 1.2);
}

.password-lock-icon.is-unlocking .password-lock-shackle-closed {
  animation: shackle-closed-away 180ms ease-out forwards;
}

.password-lock-icon.is-locking .password-lock-shackle-closed {
  animation: shackle-close 300ms ease-out;
}

.password-lock-icon.is-locking .password-lock-shackle-open {
  animation: shackle-open-away 180ms ease-out forwards;
}

.auth-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #2c2926;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 520;
}

.auth-input-wrap input::placeholder {
  color: #8c8986;
}

.auth-input-trailing {
  justify-self: end;
}

.password-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #8a8580;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.password-toggle svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.password-eye-open,
.password-eye-closed {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 140ms ease,
    transform 160ms ease;
}

.password-eye-open {
  opacity: 0;
  transform: scale(0.88);
}

.password-eye-closed {
  opacity: 1;
  transform: scale(1);
}

.password-input-wrap.is-password-revealed .password-eye-open {
  opacity: 1;
  transform: scale(1);
}

.password-input-wrap.is-password-revealed .password-eye-closed {
  opacity: 0;
  transform: scale(0.88);
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-input-wrap.is-password-revealed .password-toggle {
  color: var(--orange-dark);
}

.password-toggle:hover {
  background: rgb(232 107 39 / 0.08);
}

.password-toggle:focus-visible {
  outline: 3px solid rgb(232 107 39 / 0.2);
  outline-offset: 2px;
}

.password-toggle.is-squishing {
  animation: eye-squish 260ms cubic-bezier(0.2, 0.86, 0.3, 1.25);
}

@keyframes eye-squish {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.17, 0.86);
  }

  72% {
    transform: scale(0.94, 1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lock-body-open {
  0% {
    transform: scale(1) rotate(0deg);
  }

  42% {
    transform: scale(1.06) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes lock-body-close {
  0% {
    transform: scale(1.03) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes shackle-open {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(0.96);
  }

  46% {
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shackle-closed-away {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.98);
  }
}

@keyframes shackle-close {
  0% {
    opacity: 0;
    transform: translateY(-3px) scale(0.96);
  }

  58% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shackle-open-away {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.98);
  }
}

@keyframes verification-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes verification-pop {
  0% {
    transform: scale(0.78);
  }

  65% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes verification-draw-check {
  from {
    stroke-dashoffset: 24;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes verification-draw-x {
  from {
    stroke-dashoffset: 14;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes verification-shake {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  30% {
    transform: translateX(-2px) scale(1);
  }

  60% {
    transform: translateX(2px) scale(1);
  }
}

.auth-submit {
  position: relative;
  z-index: 0;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, #ff7624, #e65a12);
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.auth-submit:disabled {
  cursor: not-allowed;
  filter: saturate(0.82);
  opacity: 0.78;
  transform: none;
}

.auth-submit:not(:disabled):hover,
.auth-submit:not(:disabled):focus-visible {
  box-shadow: none;
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.auth-submit:focus-visible,
.auth-socials button:focus-visible {
  outline: 3px solid rgb(232 107 39 / 0.26);
  outline-offset: 3px;
}

.auth-status {
  margin: -2px 0 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

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

.auth-status.is-error {
  border-color: rgb(188 42 27 / 0.24);
  color: #9f2618;
  background: rgb(188 42 27 / 0.08);
}

.auth-status.is-success {
  border-color: rgb(36 148 93 / 0.24);
  color: #1f744b;
  background: rgb(36 148 93 / 0.08);
}

.auth-create {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #5f5954;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 560;
}

.auth-mode-toggle {
  border: 0;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-mode-toggle:hover,
.auth-mode-toggle:focus-visible {
  color: #9d3d0f;
}

.auth-mode-toggle:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(232 107 39 / 0.2);
  outline-offset: 3px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 17px 0 14px;
  color: #746e68;
}

.auth-divider span {
  height: 1px;
  background: rgb(218 111 54 / 0.28);
}

.auth-divider em {
  font-style: normal;
  font-size: 0.94rem;
  font-weight: 560;
}

.auth-socials {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 12px;
}

.google-signin-shell {
  min-width: 0;
  grid-column: span 2;
  min-height: 50px;
}

.auth-socials button {
  min-height: 50px;
  grid-column: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgb(218 111 54 / 0.28);
  border-radius: 8px;
  color: #2f2b27;
  background: rgb(255 253 250 / 0.74);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.72);
  font-size: 0.96rem;
  font-weight: 780;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.auth-socials button:disabled {
  cursor: not-allowed;
  filter: saturate(0.7);
  opacity: 0.7;
  transform: none;
}

.auth-socials button.is-wide {
  grid-column: span 3;
}

.auth-socials button:not(:disabled):hover {
  border-color: rgb(232 107 39 / 0.48);
  background: white;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 12px 22px rgb(104 34 6 / 0.08);
  transform: translateY(-1px);
}

.google-fallback-button {
  width: 100%;
}

.google-fallback-button.is-busy,
.discord-login-button.is-busy {
  opacity: 0.78;
}

.provider-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
}

.provider-icon.google {
  overflow: hidden;
  background: white;
  box-shadow: none;
}

.provider-icon.google img {
  width: 21px;
  height: 21px;
  display: block;
}

.provider-icon.discord {
  background: #5865f2;
}

.provider-icon.discord img {
  width: 19px;
  height: auto;
  display: block;
}

.provider-icon.steam {
  background: #16345b;
}

.provider-icon.xbox {
  background: #1c8f22;
}

.provider-icon.playstation {
  background: #006fcd;
}

.auth-terms {
  margin: 16px 0 0;
  color: #6f6760;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 540;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit,
  .auth-socials button,
  .auth-input-wrap,
  .display-name-verification,
  .verification-back,
  .verification-resend,
  .verification-code-grid input,
  .password-toggle,
  .password-lock-icon,
  .verification-check,
  .verification-x path,
  .verification-spinner,
  .password-lock-shackle {
    transition: none;
  }

  .auth-submit:hover,
  .auth-socials button:hover {
    transform: none;
  }

  .password-toggle.is-squishing,
  .display-name-input-wrap[data-validation="checking"] .verification-spinner,
  .display-name-input-wrap[data-validation="valid"] .display-name-verification,
  .display-name-input-wrap[data-validation="valid"] .verification-check,
  .display-name-input-wrap[data-validation="invalid"] .display-name-verification,
  .display-name-input-wrap[data-validation="invalid"] .verification-x path,
  .password-lock-icon.is-unlocking,
  .password-lock-icon.is-locking,
  .password-lock-icon.is-unlocking .password-lock-shackle,
  .password-lock-icon.is-locking .password-lock-shackle {
    animation: none;
  }

  .display-name-input-wrap[data-validation="valid"] .verification-check,
  .display-name-input-wrap[data-validation="invalid"] .verification-x path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 760px) {
  body.auth-page {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-brand {
    position: relative;
    top: auto;
    left: auto;
    padding: 18px 18px 0;
  }

  .auth-shell {
    min-height: auto;
    height: auto;
    width: 100%;
    overflow: visible;
    padding: 26px 16px 24px;
  }

  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .auth-label-row a {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .email-verification-view,
  .password-reset-view {
    gap: 18px;
  }

  .verification-code-grid {
    gap: 7px;
  }

  .verification-code-grid input {
    border-radius: 10px;
  }

  .auth-socials {
    grid-template-columns: 1fr;
  }

  .auth-socials button,
  .google-signin-shell,
  .auth-socials button.is-wide {
    grid-column: auto;
  }
}
