:root {
  --bg: #050614;
  --text: #F6F8FF;
  --muted: #AAB3D2;
  --line: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.075);
  --blue: #0A84FF;
  --cyan: #55F2FF;
  --violet: #7B61FF;
  --pink: #B15CFF;
  --green: #4DFFB2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(85,242,255,.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(177,92,255,.18), transparent 30%),
    linear-gradient(180deg, #050614 0%, #080B21 52%, #050614 100%);
  overflow-x: hidden;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 74%);
}

.aurora {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .26;
  pointer-events: none;
  z-index: -1;
}

.aurora-a {
  left: -170px;
  top: -170px;
  background: var(--cyan);
}

.aurora-b {
  right: -190px;
  bottom: -190px;
  background: var(--pink);
}

.auth-shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 1000;
  letter-spacing: -.11em;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--pink));
  box-shadow: 0 0 38px rgba(85,242,255,.34);
}

.brand b {
  display: block;
  font-size: 20px;
  letter-spacing: -.04em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 16% 12%, rgba(85,242,255,.13), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(177,92,255,.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow: 0 34px 120px rgba(0,0,0,.42);
  padding: 36px;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  pointer-events: none;
}

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

.kicker,
.mini-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(85,242,255,.24);
  background: rgba(85,242,255,.08);
  color: #D9F7FF;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

h1 {
  margin: 18px 0 0;
  max-width: 740px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .92;
  letter-spacing: -.075em;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #D8FBFF 14%, #55F2FF 36%, #2F8DFF 58%, #7B61FF 80%, #B15CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 34px rgba(85,242,255,.18));
}

.auth-head p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.auth-actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.auth-btn {
  min-height: 108px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: #fff;
  font: inherit;
}

.auth-btn-primary {
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(0,0,0,.24), rgba(0,0,0,.08)),
    linear-gradient(135deg, #078DFF 0%, #315BFF 44%, #7A35E8 72%, #9B2DFF 100%);
  box-shadow: 0 18px 58px rgba(59,167,255,.26);
  transition: .2s ease;
}

.auth-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 76px rgba(123,97,255,.34);
}

.auth-btn-disabled {
  cursor: not-allowed;
  opacity: .72;
  background: rgba(255,255,255,.065);
}

.btn-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 25px;
}

.auth-btn b,
.auth-btn small {
  display: block;
}

.auth-btn b {
  font-size: 19px;
  letter-spacing: -.02em;
}

.auth-btn small {
  margin-top: 5px;
  color: rgba(255,255,255,.74);
  line-height: 1.35;
}

.no-tg {
  margin-top: 18px;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,6,20,.42);
}

.no-tg h2 {
  margin: 15px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .98;
  letter-spacing: -.055em;
}

.no-tg p {
  max-width: 760px;
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.help-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.help-card {
  min-height: 98px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 17px;
  background: rgba(255,255,255,.065);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: rgba(85,242,255,.28);
  background: rgba(255,255,255,.09);
}

.help-card b,
.help-card span {
  display: block;
}

.help-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.note {
  font-size: 14px;
}

.auth-footer {
  margin-top: 22px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 760px) {
  .auth-card {
    padding: 24px;
    border-radius: 32px;
  }

  .auth-actions,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .auth-btn {
    min-height: 96px;
  }

  .no-tg {
    padding: 20px;
  }
}
