:root {
  --navy: #0a1b2f;
  --navy-deep: #061523;
  --gold: #c7af80;
  --gold-dark: #98743d;
  --cream: #f1ede5;
  --paper: #fffdf9;
  --silver: #d9d9d9;
  --muted: #667485;
  --line: #ded5c6;
  --error: #a84d45;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 13% 9%, rgba(199, 175, 128, 0.25), transparent 27%),
    radial-gradient(circle at 90% 90%, rgba(10, 27, 47, 0.08), transparent 30%),
    #e8e2d9;
  font-family: "Poppins", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.signup-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.signup-card {
  display: grid;
  width: min(1280px, 100%);
  min-height: min(790px, calc(100vh - 64px));
  grid-template-columns: minmax(420px, 46%) minmax(0, 54%);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(10, 27, 47, 0.11);
  border-radius: 30px;
  box-shadow: 0 34px 90px -48px rgba(10, 27, 47, 0.48);
}

.signup-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(180deg, rgba(4, 14, 29, 0.02) 48%, rgba(4, 14, 29, 0.82) 100%),
    url("/cadastro/evento-confirm-cadastro.png");
  background-position: center center;
  background-size: cover;
}

.signup-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.1);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.signup-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 35px 58px 42px;
  background: var(--paper);
}

.panel-topbar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

.panel-topbar p {
  margin: 0;
}

.panel-topbar a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.panel-topbar a:hover {
  color: var(--navy);
}

.panel-content {
  display: flex;
  width: 100%;
  max-width: 600px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding-top: 18px;
}

.heading {
  margin-bottom: 26px;
}

.heading h1,
.success-state h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 3.5vw, 54px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.heading > p:last-child {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.signup-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

.field {
  min-width: 0;
}

.field-wide {
  margin-top: 15px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  color: var(--navy);
  background: #f6f2eb;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: #98a1aa;
}

.field input:focus,
.field select:focus {
  background: #fffefa;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 175, 128, 0.18);
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--error);
  font-size: 9px;
}

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

.field.invalid .field-error {
  display: block;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.consent a {
  color: var(--gold-dark);
  font-weight: 600;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fffdf9;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 11px;
  box-shadow: 0 12px 28px -18px rgba(10, 27, 47, 0.8);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-error {
  min-height: 16px;
  margin: 9px 0 0;
  color: var(--error);
  font-size: 10px;
  text-align: center;
}

.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

[hidden] {
  display: none !important;
}

.success-state {
  max-width: 480px;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
}

.success-state .eyebrow {
  margin-bottom: 9px;
}

.success-state h2 {
  font-size: 44px;
}

.success-state > p:not(.eyebrow) {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1020px) {
  .signup-shell {
    padding: 20px;
  }

  .signup-card {
    min-height: calc(100vh - 40px);
    grid-template-columns: 42% 58%;
  }

  .signup-panel {
    padding: 32px 38px 36px;
  }

}

@media (max-width: 780px) {
  .signup-shell {
    padding: 12px;
  }

  .signup-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .signup-visual {
    min-height: 520px;
    background-position: center 35%;
  }

  .signup-panel {
    padding: 30px 28px 36px;
  }

  .panel-content {
    padding-top: 36px;
  }
}

@media (max-width: 540px) {
  .signup-visual {
    min-height: 430px;
  }

  .panel-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .heading h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
