:root {
  --pink: #EB01FC;
  --magenta: #C607FC;
  --purple: #9416FC;
  --blue: #4C2BFB;
  --black: #000000;
  --white: #FFFFFF;

  --gradient: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 30%, var(--purple) 60%, var(--blue) 100%);
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-field: rgba(255, 255, 255, 0.4);
  --muted: rgba(255, 255, 255, 0.6);
  --error: #FF5C8A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--black);
  color: var(--white);
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Brilhos de fundo */
.glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.glow--pink {
  background: var(--pink);
  top: -160px;
  left: -160px;
}

.glow--blue {
  background: var(--blue);
  bottom: -160px;
  right: -160px;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  background: transparent;
}

.logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 24px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-field);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus {
  border-color: var(--purple);
  background: rgba(148, 22, 252, 0.08);
  box-shadow: 0 0 0 4px rgba(148, 22, 252, 0.25);
}

input.invalid {
  border-color: var(--error);
}

.error {
  display: block;
  min-height: 1.1em;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--error);
}

/* Campo radio */
.radio-group {
  border: none;
  min-width: 0;
}

.radio-group legend {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
  padding: 0;
}

.radio-options {
  display: flex;
  gap: 12px;
}

.radio {
  flex: 1;
  margin: 0;
  cursor: pointer;
}

.radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-field);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.radio span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.radio input:checked + span {
  border-color: var(--purple);
  background: rgba(148, 22, 252, 0.12);
}

.radio input:checked + span::before {
  border-color: var(--pink);
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--black);
}

.radio input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(148, 22, 252, 0.25);
}

.radio-group.invalid .radio span {
  border-color: var(--error);
}

button {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--gradient);
  background-size: 150% 150%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-position 0.4s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 24px rgba(198, 7, 252, 0.35);
}

button:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(198, 7, 252, 0.5);
}

button:active {
  transform: scale(0.98);
}

button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

button.loading .btn-text {
  display: none;
}

button.loading .spinner {
  display: block;
}

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

.status {
  min-height: 1.4em;
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

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

.status.success::before {
  content: "✓ ";
  color: var(--pink);
  font-weight: 700;
}

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

/* Ícones de benefícios */
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.benefits li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
}

/* Popup de sucesso */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
}

.modal[hidden] {
  display: none;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 40px 32px 32px;
  text-align: center;
  background: #16a34a;
  color: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  animation: pop 0.25s ease-out;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.3rem;
  }
}
