@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f8fafc;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(5,150,105,.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(16,185,129,.06) 0%, transparent 60%);
}

.brand-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: #059669;
  text-align: center;
}

.brand-dot {
  display: inline-block;
  width: .42em;
  height: .42em;
  background: #10b981;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .16em;
  margin-bottom: .1em;
  opacity: .85;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.brand-dot:hover { opacity: 1; transform: scale(1.18); box-shadow: 0 0 0 4px rgba(16,185,129,.20); }
[data-theme="dark"] .brand-dot { background: #34d399; }

.reg-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 20px 60px -10px rgba(15,23,42,.10), 0 4px 16px -4px rgba(15,23,42,.06);
}
.reg-card.is-hidden { display: none; }
.reg-card.is-visible { display: block; }

.reg-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
  padding-left: .1rem;
}
.reg-label.required::after {
  content: " *";
  color: #ef4444;
}

.reg-input {
  width: 100%;
  padding: .85rem 1.1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .875rem;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.reg-input::placeholder { color: #94a3b8; }
.reg-input:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

.reg-btn {
  width: 100%;
  padding: .95rem 1.5rem;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: .875rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.reg-btn:hover  { background: #047857; box-shadow: 0 6px 18px rgba(5,150,105,.40); }
.reg-btn:active { transform: scale(.985); }
.reg-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.reg-status {
  display: none;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}
.reg-status.is-visible { display: block; }
.reg-status.is-error { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.reg-status.is-ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #065f46; }
.jsc-d5f55602.is-visible { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* Dark mode */
[data-theme="dark"] body {
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,185,129,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(5,150,105,.05) 0%, transparent 60%);
  color: #f1f5f9;
}
[data-theme="dark"] .brand-name { color: #34d399; }
[data-theme="dark"] .reg-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.40), 0 4px 16px -4px rgba(0,0,0,.25);
}
[data-theme="dark"] .reg-label { color: #94a3b8; }
[data-theme="dark"] .reg-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .reg-input::placeholder { color: #475569; }
[data-theme="dark"] .reg-input:focus {
  border-color: #34d399;
  background: #1e293b;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}
[data-theme="dark"] .reg-btn { background: #059669; }
[data-theme="dark"] .reg-btn:hover { background: #10b981; }
[data-theme="dark"] .reg-divider { border-color: #334155; }
[data-theme="dark"] .reg-back { color: #94a3b8; }
[data-theme="dark"] .reg-back:hover { color: #cbd5e1; }
[data-theme="dark"] .reg-hint { color: #64748b; }

/* ── Plano Toggle ── */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .25rem;
}
.plan-btn {
  position: relative;
  padding: .875rem .75rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .875rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.plan-btn span { display: block; font-size: .75rem; font-weight: 500; color: #94a3b8; margin-top: .2rem; }

/* Dark mode */
[data-theme="dark"] body {
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,185,129,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(5,150,105,.05) 0%, transparent 60%);
  color: #f1f5f9;
}
[data-theme="dark"] .brand-name { color: #34d399; }
[data-theme="dark"] .reg-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.40), 0 4px 16px -4px rgba(0,0,0,.25);
}
[data-theme="dark"] .reg-label { color: #94a3b8; }
[data-theme="dark"] .reg-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .reg-input::placeholder { color: #475569; }
[data-theme="dark"] .reg-input:focus {
  border-color: #34d399;
  background: #1e293b;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}
[data-theme="dark"] .reg-btn { background: #059669; }
[data-theme="dark"] .reg-btn:hover { background: #10b981; }
[data-theme="dark"] .reg-divider { border-color: #334155; }
[data-theme="dark"] .reg-back { color: #94a3b8; }
[data-theme="dark"] .reg-back:hover { color: #cbd5e1; }
[data-theme="dark"] .reg-hint { color: #64748b; }

/* ── Plano Toggle ── */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .25rem;
}
.plan-btn {
  position: relative;
  padding: .875rem .75rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .875rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.plan-btn span { display: block; font-size: .75rem; font-weight: 500; color: #94a3b8; margin-top: .2rem; }
.plan-btn.active { border-color: #059669; background: #f0fdf4; color: #065f46; }
.plan-btn.active span { color: #059669; }
.plan-save {
  position: absolute; top: -8px; right: -8px;
  background: #059669; color: #fff;
  font-size: .62rem; font-weight: 800;
  padding: 2px 6px; border-radius: 100px;
}

/* ── LGPD Checkbox ── */
.lgpd-label {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; font-size: .8rem; font-weight: 500;
  color: #64748b; line-height: 1.55;
}
.lgpd-label input[type="checkbox"] {
  margin-top: .15rem; flex-shrink: 0;
  width: 1rem; height: 1rem;
  accent-color: #059669; cursor: pointer;
}
.lgpd-label a { color: #059669; text-decoration: underline; text-underline-offset: 2px; }

[data-theme="dark"] .plan-btn { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .plan-btn.active { border-color: #34d399; background: #064e3b; color: #d1fae5; }
[data-theme="dark"] .plan-btn.active span { color: #34d399; }
[data-theme="dark"] .lgpd-label { color: #94a3b8; }
[data-theme="dark"] .lgpd-label a { color: #34d399; }

.reg-section-title {
  font-size: .8rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 1.25rem 0 .75rem;
  padding-left: .1rem;
}

.register-legal-links { margin-top: .75rem; display: flex; justify-content: center; gap: .5rem; color: #64748b; font-size: .72rem; font-weight: 600; }
.register-legal-links a { text-decoration: none; }
.register-legal-links a:hover, .register-legal-links a:focus-visible { color: #059669; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .reg-section-title {
  color: #34d399;
}
