:root {
  --bg-left: #6b1cff;
  --bg-right: #1721a9;
  --text-main: #f4f7ff;
  --text-dim: rgba(229, 236, 255, 0.75);
  --text-muted: rgba(229, 236, 255, 0.6);
  --magenta: #ba47ff;
  --cyan-strong: #00a7ff;
  --panel-border: rgba(255, 255, 255, 0.16);
  --panel-bg: rgba(9, 12, 40, 0.56);
  --field-bg: rgba(255, 255, 255, 0.08);
  --field-border: rgba(255, 255, 255, 0.14);
  --error: #ff9ca8;
  --success: #87ffd2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 42%, rgba(186, 71, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 42%, rgba(56, 215, 255, 0.16), transparent 30%),
    linear-gradient(90deg, #05031a 0%, var(--bg-left) 34%, var(--bg-right) 70%, #140120 100%);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.5) 18%, rgba(0, 0, 0, 0.18) 34%, transparent 52%),
    radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.5) 18%, rgba(0, 0, 0, 0.18) 34%, transparent 52%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.56) 18%, rgba(0, 0, 0, 0.2) 34%, transparent 52%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.56) 18%, rgba(0, 0, 0, 0.2) 34%, transparent 52%);
}

a,
button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.page::before {
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(181, 52, 255, 0.95), rgba(181, 52, 255, 0));
}

.page::after {
  right: -10%;
  top: 12%;
  background: radial-gradient(circle, rgba(0, 166, 255, 0.95), rgba(0, 166, 255, 0));
}

.hero-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  width: min(1360px, 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(24px, 4vw, 64px);
  overflow: visible;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
}

.hero-backdrop {
  position: absolute;
  top: 50%;
  width: 30vw;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-backdrop-left {
  left: 2%;
  transform: translateY(-52%);
  background: radial-gradient(circle, rgba(181, 52, 255, 0.72), rgba(181, 52, 255, 0));
}

.hero-backdrop-right {
  right: 2%;
  transform: translateY(-52%);
  background: radial-gradient(circle, rgba(36, 185, 255, 0.7), rgba(36, 185, 255, 0));
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px) saturate(1.08);
  animation: hero-orb-float 7.2s ease-in-out infinite;
}

.hero-orb-a {
  top: 14%;
  left: 10%;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 30% 30%, rgba(154, 243, 255, 0.98), rgba(39, 195, 255, 0.84) 56%, rgba(39, 195, 255, 0) 100%);
  box-shadow: 0 0 28px rgba(39, 195, 255, 0.3);
  animation-duration: 6.2s;
  animation-delay: -0.8s;
}

.hero-orb-b {
  top: 18%;
  right: 13%;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 32% 32%, rgba(233, 178, 255, 0.96), rgba(181, 52, 255, 0.82) 58%, rgba(181, 52, 255, 0) 100%);
  box-shadow: 0 0 30px rgba(181, 52, 255, 0.32);
  animation-duration: 7.8s;
  animation-delay: -2.4s;
}

.hero-orb-c {
  left: 31%;
  bottom: 16%;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 35%, rgba(133, 243, 255, 0.94), rgba(62, 133, 255, 0.78) 62%, rgba(62, 133, 255, 0) 100%);
  box-shadow: 0 0 24px rgba(62, 133, 255, 0.24);
  animation-duration: 5.9s;
  animation-delay: -1.6s;
}

.hero-orb-d {
  right: 28%;
  bottom: 10%;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 30% 30%, rgba(165, 120, 255, 0.86), rgba(106, 28, 255, 0.54) 58%, rgba(106, 28, 255, 0) 100%);
  box-shadow: 0 0 36px rgba(122, 76, 255, 0.22);
  animation-duration: 8.6s;
  animation-delay: -3.1s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  text-align: left;
  padding: 28px 0;
}

.hero-back-link {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(236, 242, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  position: relative;
  padding-bottom: 0.24em;
  background: linear-gradient(180deg, #7bf2ff 0%, #27c3ff 44%, #a34bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7bf2ff 0%, #27c3ff 44%, #a34bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  opacity: 1;
  filter: blur(12px) saturate(2) brightness(1) contrast(1.08);
  animation: title-glow-breathe 8s ease-in-out infinite;
}

.hero-description {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

.register-panel {
  position: relative;
  z-index: 2;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: var(--panel-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 80px rgba(4, 7, 24, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 32px;
  overflow: hidden;
}

.register-panel-glow {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 52, 255, 0.36), rgba(181, 52, 255, 0));
  filter: blur(12px);
  pointer-events: none;
}

.panel-header {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.panel-header p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.generator-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

fieldset {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label:last-child {
  margin-bottom: 0;
}

label > span:first-child {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--field-border);
  border-radius: 18px;
  background: var(--field-bg);
  color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: rgba(229, 236, 255, 0.42);
  opacity: 1;
}

input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

input:focus-visible {
  outline: none;
  border-color: rgba(82, 210, 255, 0.76);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 4px rgba(39, 195, 255, 0.12),
    0 0 24px rgba(39, 195, 255, 0.1);
}

input.input-error {
  border-color: rgba(255, 120, 146, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 120, 146, 0.12);
}

.field-error {
  min-height: 1.2em;
  color: var(--error);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.hero-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-strong));
  box-shadow:
    0 12px 24px rgba(91, 61, 255, 0.24),
    0 0 12px rgba(181, 52, 255, 0.12),
    0 0 20px rgba(36, 185, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  filter: blur(18px);
  opacity: 0.42;
  background: linear-gradient(102deg, rgba(36, 185, 255, 0.66), rgba(122, 76, 255, 0.72), rgba(181, 52, 255, 0.68));
  animation: start-button-glow 6s ease-in-out infinite;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: none;
  box-shadow:
    0 18px 36px rgba(91, 61, 255, 0.42),
    0 0 22px rgba(181, 52, 255, 0.34),
    0 0 38px rgba(36, 185, 255, 0.24);
}

.hero-cta:hover::before,
.hero-cta:focus-visible::before {
  opacity: 0.96;
  filter: blur(22px);
}

.hero-cta:disabled {
  cursor: wait;
  opacity: 0.78;
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(15, 20, 48, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(22, 30, 66, 0.5);
  outline: none;
}

.verification-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.verification-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 19, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.verification-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(186, 71, 255, 0.14), transparent 38%),
    radial-gradient(circle at top right, rgba(0, 167, 255, 0.14), transparent 42%),
    rgba(9, 12, 40, 0.92);
  box-shadow:
    0 30px 80px rgba(3, 5, 18, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.verification-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.verification-close:hover,
.verification-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.verification-header {
  padding-right: 36px;
}

.verification-eyebrow {
  margin: 0 0 10px;
  color: rgba(123, 242, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.verification-header h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.verification-header p:last-child {
  margin: 10px 0 0;
  color: var(--text-dim);
  line-height: 1.65;
}

.verification-field {
  margin-top: 20px;
}

.verification-field input {
  margin-top: 8px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.48em;
  padding-left: calc(18px + 0.48em);
}

.verification-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.verification-status.is-error {
  color: var(--error);
}

.verification-status.is-success {
  color: var(--success);
}

.verification-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.verification-resend-button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.verification-resend-button:hover,
.verification-resend-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.verification-resend-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.verification-download-button {
  width: 100%;
}

.verification-download-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  filter: grayscale(1);
  box-shadow: none;
}

.verification-download-button:disabled::before {
  opacity: 0.16;
}

@keyframes title-glow-breathe {
  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

@keyframes start-button-glow {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.88;
  }
}

@keyframes hero-orb-float {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -14px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 960px) {
  .hero-shell {
    min-height: 100vh;
    padding: 28px 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 8px 8px 0;
  }

  .hero-description {
    margin-inline: auto;
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-back-link {
    margin-inline: auto;
  }

  .register-panel {
    padding: 24px;
    border-radius: 28px;
  }

  .verification-panel {
    padding: 24px;
    border-radius: 24px;
  }

  fieldset {
    padding: 18px;
  }

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

  .hero-cta,
  .hero-secondary-cta {
    max-width: 100%;
  }

  .hero-backdrop-left,
  .hero-backdrop-right {
    width: 58vw;
  }

  .hero-orb-a {
    top: 10%;
    left: 6%;
    width: 30px;
    height: 30px;
  }

  .hero-orb-b {
    top: 14%;
    right: 8%;
    width: 40px;
    height: 40px;
  }

  .hero-orb-c {
    left: 14%;
    bottom: 30%;
    width: 24px;
    height: 24px;
  }

  .hero-orb-d {
    right: 10%;
    bottom: 18%;
    width: 48px;
    height: 48px;
  }
}
