html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(91, 141, 239, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(139, 123, 240, 0.08), transparent 55%),
    var(--bg-0);
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-btn {
  background: var(--text);
  color: #0a0e18;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.login-btn:hover {
  opacity: 0.88;
}

.login-btn:active {
  transform: scale(0.97);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(91, 141, 239, 0.7);
}

h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  font-weight: 400;
}

.lede + .lede {
  margin-top: 8px;
}

.coverage-label {
  margin: 56px 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.flags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.flag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.flag:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.flag img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

footer {
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line-soft);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 92vw;
  height: 100%;
  background: #0b0f18;
  border-left: 1px solid var(--line);
  padding: 30px 26px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 31;
}

.panel.open {
  transform: translateX(0);
}

.panel h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}

.panel-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: -8px 0 4px;
  line-height: 1.5;
}

#emailStep,
.code-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.code-box {
  display: none;
}

label.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

#authError {
  color: var(--red);
  font-size: 13px;
  display: none;
}

.resend-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: -2px 0 0;
}

.resend-note.ready {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.resend-note.ready:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  main {
    padding: 64px 20px 60px;
  }

  h1 {
    font-size: 38px;
  }
}
