body.auth {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan {
  to {
    background-position: 56px 56px;
  }
}

.orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(223, 255, 88, 0.22), transparent 65%);
  animation: orb-a 14s var(--ease-in-out) infinite alternate;
}

.orb-2 {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(223, 255, 88, 0.1), transparent 65%);
  animation: orb-b 18s var(--ease-in-out) infinite alternate;
}

@keyframes orb-a {
  to {
    transform: translate(180px, 120px) scale(1.15);
  }
}

@keyframes orb-b {
  to {
    transform: translate(-160px, -90px) scale(1.2);
  }
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px;
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rise 0.6s var(--ease) both;
}

.auth-brand img {
  width: 40px;
}

.auth-brand b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand span {
  color: var(--lime);
}

.hero-copy {
  max-width: 560px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--lime-soft);
  box-shadow: inset 0 0 0 1px var(--lime-line);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: rise 0.6s var(--ease) 0.1s both;
}

.hero-copy .eyebrow .dot {
  width: 6px;
  height: 6px;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-copy h1 .line > span {
  display: inline-block;
  animation: line-up 0.9s var(--ease) both;
}

.hero-copy h1 .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero-copy h1 .line:nth-child(3) > span {
  animation-delay: 0.24s;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--lime);
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

.hero-copy p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-2);
  max-width: 470px;
  animation: rise 0.7s var(--ease) 0.35s both;
}

.hero-platforms {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  animation: rise 0.7s var(--ease) 0.45s both;
}

.hero-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 650;
  font-size: 13px;
}

.hero-platforms .i {
  width: 18px;
  height: 18px;
}

.auth-stage {
  position: relative;
  width: min(420px, 100%);
}

.floaters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.floater {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(23, 23, 26, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line-2);
  white-space: nowrap;
  animation: floater-in 0.8s var(--spring) both, bob 6s var(--ease-in-out) infinite alternate;
}

.floater .pf-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.floater .pf-icon .i {
  width: 18px;
  height: 18px;
}

.floater b {
  display: block;
  font-size: 13px;
}

.floater span {
  font-size: 12px;
  color: var(--text-3);
}

.floater .ok {
  color: var(--lime);
  width: 18px;
  height: 18px;
}

.floater:nth-child(1) {
  top: 64px;
  left: -170px;
  animation-delay: 0.7s, 0.7s;
}

.floater:nth-child(2) {
  top: 44%;
  left: -200px;
  animation-delay: 0.9s, 1.8s;
}

.floater:nth-child(3) {
  bottom: 70px;
  left: -160px;
  animation-delay: 1.1s, 1.1s;
}

@keyframes floater-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
}

@keyframes bob {
  to {
    transform: translateY(-12px);
  }
}

.hero-foot {
  display: flex;
  gap: 28px;
  color: var(--text-3);
  font-size: 13px;
  animation: fade-in 1s var(--ease) 0.6s both;
}

.hero-foot b {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.auth-side {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 36px 32px;
  border-radius: 28px;
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line-2);
  animation: card-in 0.8s var(--ease) 0.15s both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

.auth-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  animation: logo-in 1s var(--spring) 0.3s both;
}

.auth-logo img {
  width: 64px;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: rotate(-25deg) scale(0.6);
  }
}

.auth-card h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.auth-card > p {
  margin-top: 8px;
  color: var(--text-2);
}

.tg-btn {
  position: relative;
  width: 100%;
  margin-top: 28px;
  height: 54px;
  border-radius: 16px;
  font-size: 15px;
  overflow: hidden;
}

.tg-btn .i {
  width: 22px;
  height: 22px;
}

.tg-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 3.2s var(--ease) 1.2s infinite;
}

@keyframes sheen {
  0% {
    transform: translateX(-100%);
  }
  40%,
  100% {
    transform: translateX(100%);
  }
}

.auth-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--text-2);
}

.auth-note .i {
  width: 18px;
  height: 18px;
  color: var(--lime);
  margin-top: 1px;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(240, 82, 79, 0.1);
  box-shadow: inset 0 0 0 1px rgba(240, 82, 79, 0.25);
  color: #ff9c99;
  font-size: 13px;
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.dev-login {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}

.dev-login summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-3);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-login summary::-webkit-details-marker {
  display: none;
}

.dev-login form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dev-login .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-legal {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.pending-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.pending-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 40px 32px 32px;
}

.pending-rings {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
}

.pending-rings::before,
.pending-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--lime-line);
  animation: ring 2.6s var(--ease) infinite;
}

.pending-rings::after {
  animation-delay: 1.3s;
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.pending-rings .core {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 20px 50px -12px rgba(223, 255, 88, 0.5);
  animation: core 3s var(--ease-in-out) infinite;
}

.pending-rings .core .i {
  width: 34px;
  height: 34px;
}

@keyframes core {
  50% {
    transform: rotate(180deg);
  }
}

.pending-card.is-rejected .pending-rings .core {
  background: var(--surface-3);
  color: var(--bad);
  box-shadow: none;
  animation: none;
}

.pending-card.is-rejected .pending-rings::before,
.pending-card.is-rejected .pending-rings::after {
  display: none;
}

.pending-card.is-approved .pending-rings .core {
  animation: approved 0.7s var(--spring) both;
}

@keyframes approved {
  from {
    transform: scale(0.5) rotate(-30deg);
  }
}

.pending-card h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.pending-card > p {
  margin-top: 10px;
  color: var(--text-2);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}

.who .avatar {
  width: 42px;
  height: 42px;
}

.who b {
  display: block;
}

.who span {
  font-size: 13px;
  color: var(--text-3);
}

.who .pill {
  margin-left: auto;
}

.application {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.application .textarea {
  min-height: 96px;
}

.application .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poll-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-3);
}

.poll-status .dot {
  width: 6px;
  height: 6px;
  color: var(--lime);
}

.pending-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nf {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.nf h1 {
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--lime);
  animation: rise 0.7s var(--ease) both;
}

.nf p {
  margin: 12px 0 26px;
  color: var(--text-2);
  font-size: 16px;
}

@media (max-width: 1180px) {
  .floaters {
    display: none;
  }
}

@media (max-width: 1000px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-hero {
    min-height: auto;
    padding: 28px 20px 8px;
    gap: 36px;
  }
  .floaters,
  .hero-foot {
    display: none;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .auth-side {
    padding: 16px 16px 40px;
  }
  .auth-card {
    padding: 28px 22px;
  }
}

@media (max-width: 420px) {
  .hero-platforms {
    flex-wrap: wrap;
  }
}


.legal {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.legal-card {
  padding: 40px 44px;
  border-radius: 28px;
  background: rgba(17, 17, 19, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line-2);
  animation: card-in 0.7s var(--ease) both;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-card h1 {
  color: var(--text);
  font-size: 34px;
  letter-spacing: -0.035em;
  margin: 6px 0 18px;
}

.legal-card h2 {
  color: var(--text);
  font-size: 18px;
  margin: 32px 0 10px;
  scroll-margin-top: 24px;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-card b {
  color: var(--text);
  font-weight: 650;
}

.legal-card a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: var(--lime-line);
  text-underline-offset: 3px;
}

.legal-date {
  font-size: 13px;
  color: var(--text-3);
}

.legal-links {
  margin-top: 36px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.auth-legal a {
  color: var(--text-2);
  transition: color 0.2s;
}

.auth-legal a:hover {
  color: var(--lime);
}

@media (max-width: 600px) {
  .legal {
    padding: 24px 12px 48px;
  }
  .legal-card {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .legal-card h1 {
    font-size: 24px;
  }
}
