/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cyan:       #00D4C8;
  --cyan-dark:  #00B8AE;
  --navy:       #071628;
  --navy-mid:   #0C1F3A;
  --navy-light: #112444;
  --navy-card:  #0D1E38;
  --white:      #FFFFFF;
  --gray:       #8A9BB5;
  --font:       'Montserrat', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* =============================================
   BACKGROUND PATTERN
   ============================================= */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/fundo.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px;
}

/* =============================================
   LOGO
   ============================================= */
.logo-wrap {
  margin-bottom: 0;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* =============================================
   COUNTDOWN
   ============================================= */
.countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(to right, rgba(22, 62, 58, 0.39) 0%, rgba(12, 51, 69, 0.39) 100%);
  border: 1px solid rgba(0, 212, 200, 0.25);
  border-radius: 14px;
  padding: 18px 24px;
  backdrop-filter: blur(4px);
  width: 100%;
}

.countdown-wrap > .countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}

.countdown-boxes {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.countdown-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-label-unit {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}

.countdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #30F9E5 0%, #1C9387 100%);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 52px;
}

.countdown-number {
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* =============================================
   MAIN SECTION
   ============================================= */
.main-section {
  flex: 1;
  padding: 32px 0 48px;
}

.main-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-areas:
    "logo    countdown"
    "content form";
  column-gap: 64px;
  row-gap: 28px;
  align-items: start;
}

.logo-wrap         { grid-area: logo; }
.countdown-wrap    { grid-area: countdown; }
.content-left-col  { grid-area: content; display: flex; flex-direction: column; justify-content: space-between; }
.content-right     { grid-area: form; }

/* =============================================
   LEFT CONTENT
   ============================================= */
.content-left {
  padding-top: 0;
}

.headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.headline-highlight {
  color: var(--cyan);
  display: block;
}

.subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.subtitle-highlight {
  color: var(--cyan);
  font-weight: 600;
}

/* Benefits list */
.benefits-list {
  list-style: none;
  margin-bottom: 36px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
  opacity: 0.85;
}

.benefit-icon {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Event info badges */
.event-info {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.event-info--mobile { display: none; }

.event-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 28, 60, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.event-badge strong {
  font-weight: 800;
  font-size: 15px;
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* =============================================
   RIGHT: FORM CARD
   ============================================= */
.content-right {
  position: relative;
  z-index: 2;
}

.register-form {
  background: linear-gradient(to right, rgba(22, 62, 58, 0.39) 0%, rgba(12, 51, 69, 0.39) 100%);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: 16px;
  padding: 32px 28px 36px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-hint {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 4px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--cyan);
  outline: none;
}

.form-group select {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: rgba(0, 0, 0, 0.55);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: #0d1e38;
  color: var(--white);
}

.form-group select.has-value {
  color: var(--navy);
}

/* Steps */
.form-step {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.form-step.active {
  display: flex;
}

.btn-voltar {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  text-align: center;
  width: 100%;
}

.btn-voltar:hover {
  color: var(--white);
}

/* Error message */
.form-error {
  font-size: 12px;
  color: #ff6b6b;
  min-height: 0;
  text-align: center;
}

/* Loading spinner */
.btn-loading svg {
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

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

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
  text-transform: uppercase;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-group {
  height: 44px;
  width: auto;
  display: block;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .page-wrapper {
    padding: 36px 32px;
  }

  .main-inner {
    grid-template-columns: 1fr 360px;
    column-gap: 40px;
    row-gap: 24px;
  }

  .headline {
    font-size: 28px;
  }

  .logo-img {
    height: 70px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 24px 16px 32px;
  }

  .logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .logo-img {
    height: 60px;
  }

  .countdown-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 0;
  }

  .countdown-wrap > .countdown-label {
    white-space: nowrap;
    font-size: 12px;
    text-align: center;
  }

  .countdown-number {
    font-size: 22px;
  }

  .countdown-item {
    min-width: 52px;
    padding: 8px 10px;
  }

  .main-section {
    padding: 16px 0 32px;
  }

  .main-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .content-left {
    padding-left: 0;
    text-align: center;
  }

  .headline {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .headline-highlight {
    display: inline;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .benefits-list {
    display: none;
  }

  .benefit-item {
    text-align: left;
  }

  .content-right {
    padding: 0 4px;
  }

  .register-form {
    padding: 24px 20px 28px;
  }

  /* Inputs 16px para evitar zoom no iOS */
  .form-group input,
  .form-group select {
    font-size: 16px;
    padding: 13px 14px;
  }

  .event-info--desktop { display: none; }

  .event-info--mobile {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .footer {
    padding: 20px 0 28px;
  }

  .footer-logo-group {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 20px 14px 28px;
  }

  .headline {
    font-size: 20px;
  }

  .countdown-boxes {
    gap: 6px;
  }

  .countdown-item {
    min-width: 46px;
    padding: 7px 8px;
  }

  .countdown-number {
    font-size: 20px;
  }
}
