/* ── Layout ──────────────────────────────────────────────────────── */

.reg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Brand (esquerda) ────────────────────────────────────────────── */

.reg-brand {
  background: linear-gradient(160deg, #0a1628 0%, #0f1f3d 45%, #1a3260 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.reg-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 30%, rgba(30,95,194,0.20), transparent 70%);
  pointer-events: none;
}
.reg-brand > * { position: relative; z-index: 1; }

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.brand-name .accent { color: var(--gold); }

.brand-copy h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .75rem;
}
.brand-copy p { opacity: .75; line-height: 1.6; }

/* Diferenciais (preenche o espaço da esquerda) */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .92rem;
  line-height: 1.45;
  opacity: .9;
}
.brand-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* Steps indicadores */
.brand-steps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  opacity: .45;
  transition: opacity .25s;
}

.step.active { opacity: 1; }
.step.done   { opacity: .7; }

.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.register-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
}
.register-link strong { color: var(--gold); }
.register-link:hover  { color: var(--paper); }

/* ── Main (direita) ──────────────────────────────────────────────── */

.reg-main {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.reg-box {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--panel);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width .4s ease;
  width: 33%;
}

/* Steps */
.reg-step { display: flex; flex-direction: column; gap: 1.25rem; }
.reg-step.hidden { display: none; }

.step-header { display: flex; flex-direction: column; gap: .35rem; }
.step-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.step-sub { color: var(--ink); opacity: .6; font-size: .9rem; margin: 0; }

/* Role cards */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.role-card {
  cursor: pointer;
  position: relative;
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-inner {
  border: 2px solid var(--panel);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .2s, box-shadow .2s;
  background: var(--paper);
}

.role-card input:checked + .role-card-inner {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.15);
}

.role-card:hover .role-card-inner { border-color: var(--accent); }

.role-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(43,132,255,.22);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.role-icon svg { width: 22px; height: 22px; }
.role-card input:checked + .role-card-inner .role-icon {
  background: var(--gold-soft); border-color: var(--gold); color: var(--gold);
}
.role-card-inner strong { font-size: .95rem; }
.role-card-inner p { font-size: .8rem; opacity: .65; margin: 0; line-height: 1.4; }

/* Campos lado a lado (ex.: ticket mín/máx) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Dica abaixo do label */
.field-hint {
  font-size: .78rem;
  color: var(--ink);
  opacity: .5;
  margin: -.65rem 0 .15rem;
}

/* Setores como chips selecionáveis */
.sector-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: .6rem;
}

.sector-checkboxes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sector-checkboxes label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .85rem;
  cursor: pointer;
  text-align: center;
  padding: .6rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  transition: border-color .15s, background .15s, color .15s;
}

.sector-checkboxes label:hover { border-color: var(--accent); }

.sector-checkboxes label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

/* Step nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.step-nav .btn { flex: 1; }

/* Feedback */
.feedback {
  font-size: .875rem;
  min-height: 1.2em;
  margin: 0;
}

/* Success */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.success-box h2 { font-size: 1.5rem; margin: 0; }
.success-box p  { opacity: .65; max-width: 280px; }

/* ── Verificação de email ────────────────────────────────────────── */

.verify-email-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 1rem;
  gap: 1rem;
}

.verify-email-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(43,132,255,.12);
  border: 1px solid rgba(43,132,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  animation: vb-pulse 2.4s ease-in-out infinite;
}
.verify-email-icon svg { width: 34px; height: 34px; }

@keyframes vb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43,132,255,.25); }
  50%       { box-shadow: 0 0 0 10px rgba(43,132,255,0); }
}

.verify-email-box h2    { font-size: 1.4rem; margin: 0; }
.verify-email-box > p   { color: var(--muted); font-size: .9rem; margin: 0; }

.verify-email-addr {
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(43,132,255,.25);
}

.verify-sub {
  font-size: .82rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.5;
  margin: 0;
}

.verify-reg-actions {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 320px;
}

.verify-note {
  font-size: .78rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.4;
  margin: 0;
  opacity: .75;
}

/* ── Responsivo ──────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-brand  { display: none; }
  .role-cards { grid-template-columns: 1fr; }
  .field-row  { grid-template-columns: 1fr; }
}
