/* =============================================================
   EA Register — Página de Criação de Conta
   Brand: Teal #1B3E3C · Lime #7EC13C · BG #FAFAF7
   ============================================================= */

.ea-register-page {
  min-height: 100vh;
  background: var(--color-bg, #FAFAF7);
  padding: 0 0 60px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.ea-reg-hero {
  background: linear-gradient(135deg, #1B3E3C 0%, #0f2826 100%);
  padding: 48px 20px 40px;
  text-align: center;
  color: #fff;
}
.ea-reg-hero-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.ea-reg-hero-brand span { color: #7EC13C; }
.ea-reg-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.92);
}
.ea-reg-hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── Container ───────────────────────────────────────────────── */
.ea-reg-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Seleção de tipo de conta ────────────────────────────────── */
.ea-reg-type-section {
  margin-top: -20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .ea-reg-type-section { grid-template-columns: 1fr; }
}

.ea-reg-type-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-align: center;
  position: relative;
}
.ea-reg-type-card:hover {
  border-color: #7EC13C;
  box-shadow: 0 4px 16px rgba(27,62,60,.10);
}
.ea-reg-type-card.active {
  border-color: #1B3E3C;
  box-shadow: 0 4px 16px rgba(27,62,60,.14);
}
.ea-reg-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #1B3E3C;
}
.ea-reg-type-card.active .ea-reg-type-icon { background: #1B3E3C; color: #7EC13C; }
.ea-reg-type-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1B3E3C;
  margin: 0 0 4px;
}
.ea-reg-type-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}
.ea-reg-type-radio { display: none; }

/* ── Planos de Autor ─────────────────────────────────────────── */
.ea-reg-plans {
  display: none;
  margin-top: 24px;
}
.ea-reg-plans.visible { display: block; }
.ea-reg-plans-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1B3E3C;
  margin: 0 0 12px;
}
.ea-reg-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .ea-reg-plans-grid { grid-template-columns: 1fr; }
}

.ea-reg-plan-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.ea-reg-plan-card:hover { border-color: #7EC13C; }
.ea-reg-plan-card.active {
  border-color: #7EC13C;
  box-shadow: 0 4px 14px rgba(126,193,60,.18);
}
.ea-reg-plan-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  background: #7EC13C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.ea-reg-plan-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1B3E3C;
  margin: 0 0 4px;
}
.ea-reg-plan-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #7EC13C;
  margin: 0 0 10px;
}
.ea-reg-plan-price small {
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
}
.ea-reg-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ea-reg-plan-features li {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #4B5563;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.ea-reg-plan-features li::before {
  content: '✓';
  color: #7EC13C;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}
.ea-reg-plan-radio { display: none; }

/* ── Formulário ──────────────────────────────────────────────── */
.ea-reg-form-wrap {
  display: none;
  margin-top: 28px;
}
.ea-reg-form-wrap.visible { display: block; }

.ea-reg-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
}

.ea-reg-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1B3E3C;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0ef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-reg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 540px) {
  .ea-reg-field-row { grid-template-columns: 1fr; }
}
.ea-reg-field-row.full { grid-template-columns: 1fr; }
.ea-reg-field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) {
  .ea-reg-field-row.three { grid-template-columns: 1fr; }
}

.ea-reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ea-reg-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.ea-reg-field label .req { color: #DC2626; margin-left: 2px; }
.ea-reg-field input,
.ea-reg-field textarea,
.ea-reg-field select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 9px 12px;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.ea-reg-field input:focus,
.ea-reg-field textarea:focus,
.ea-reg-field select:focus {
  outline: none;
  border-color: #1B3E3C;
  box-shadow: 0 0 0 3px rgba(27,62,60,.08);
}
.ea-reg-field input.error,
.ea-reg-field textarea.error { border-color: #DC2626; }
.ea-reg-field textarea { resize: vertical; min-height: 80px; }
.ea-reg-field-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}

.ea-reg-divider { height: 1px; background: #f0f0ef; margin: 20px 0; }

/* ── Resumo do plano selecionado ─────────────────────────────── */
.ea-reg-plan-summary {
  display: none;
  background: #f0f9f0;
  border: 1px solid #c6e8b0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1B3E3C;
}
.ea-reg-plan-summary.visible { display: flex; align-items: center; gap: 10px; }
.ea-reg-plan-summary strong { font-weight: 700; }

/* ── Botão de envio ──────────────────────────────────────────── */
.ea-reg-submit-wrap { margin-top: 24px; }
.ea-reg-submit-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #1B3E3C;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}
.ea-reg-submit-btn:hover { background: #2C5F5A; }
.ea-reg-submit-btn:disabled { background: #9CA3AF; cursor: not-allowed; }
.ea-reg-submit-btn .ea-reg-loading { display: none; }

.ea-reg-terms {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 10px;
}

/* ── Mensagem de resultado ───────────────────────────────────── */
.ea-reg-msg {
  display: none;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.ea-reg-msg.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.ea-reg-msg.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Sucesso total (oculta o form) ───────────────────────────── */
.ea-reg-success-box {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 28px;
}
.ea-reg-success-box.visible { display: block; }
.ea-reg-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #16A34A;
}
.ea-reg-success-box h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1B3E3C;
  margin: 0 0 8px;
}
.ea-reg-success-box p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #6B7280;
  margin: 0 0 20px;
  line-height: 1.5;
}
.ea-reg-success-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1B3E3C;
  text-decoration: none;
  border: 2px solid #1B3E3C;
  border-radius: 7px;
  padding: 10px 20px;
  transition: background .2s, color .2s;
}
.ea-reg-success-link:hover { background: #1B3E3C; color: #fff; }

/* ── Link para login ─────────────────────────────────────────── */
.ea-reg-login-link {
  text-align: center;
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6B7280;
}
.ea-reg-login-link a { color: #1B3E3C; font-weight: 600; text-decoration: none; }
.ea-reg-login-link a:hover { text-decoration: underline; }

/* ── Password strength indicator ────────────────────────────── */
.ea-reg-pwd-strength {
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 4px;
}
.ea-reg-pwd-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0%;
}
