*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0D1C30;
  --navy-mid:  #152540;
  --navy-lite: #1C3050;
  --accent:    #ff4000;
  --accent-bg: rgba(255,64,0,.10);
  --white:     #FFFFFF;
  --bg:        #F4F6FA;
  --border:    #E5E7EB;
  --tx1:       #111827;
  --tx2:       #4B5563;
  --tx3:       #9CA3AF;
  --green:     #2EA44F;
  --r:         12px;
  --r-sm:      8px;
  --focus-ring: 0 0 0 3px rgba(255,64,0,.20);
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--tx1);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════
   LAYOUT SPLIT
═══════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}

/* ═══════════════════════════════
   PAINEL ESQUERDO
═══════════════════════════════ */
.panel-left {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pl-bg svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.pl-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 36px 36px;
}

.pl-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color .15s;
  align-self: flex-start;
}
.pl-back svg { width: 15px; height: 15px; }
.pl-back:hover { color: rgba(255,255,255,.85); }

.pl-logo-wrap { margin-bottom: 28px; }
.pl-logo {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: .90;
  display: block;
}

.pl-copy { margin-bottom: 30px; }
.pl-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.pl-title em {
  font-style: italic;
  color: var(--accent);
}
.pl-desc {
  font-size: 14px;
  color: rgba(255,255,255,.58);
  line-height: 1.70;
}

.pl-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: auto;
  padding-bottom: 28px;
}
.pl-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.70);
}
.perk-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(46,164,79,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perk-icon svg { width: 12px; height: 12px; color: #4ade80; }

.pl-initiative {
  font-size: 11.5px;
  color: rgba(255,255,255,.28);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pl-initiative strong { color: rgba(255,255,255,.50); font-weight: 600; }

/* ═══════════════════════════════
   PAINEL DIREITO
═══════════════════════════════ */
.panel-right {
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.form-wrap {
  width: 100%;
  max-width: 560px;
  animation: fadeUp .45s ease both;
}

.form-header {
  margin-bottom: 28px;
}
.form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--tx1);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.form-sub {
  font-size: 14px;
  color: var(--tx3);
}
.form-sub a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.form-sub a:hover { text-decoration: underline; }

/* ═══════════════════════════════
   FORM STRUCTURE
═══════════════════════════════ */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label, legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx1);
  line-height: 1.4;
}
fieldset { border: none; padding: 0; }
legend { margin-bottom: 2px; }

.req { color: var(--accent); font-size: 13px; }

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="password"] {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--tx1);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder { color: var(--tx3); }
input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

/* Password wrap */
.input-password-wrap {
  position: relative;
}
.input-password-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--tx3);
  transition: color .15s;
  display: flex;
  align-items: center;
}
.toggle-pw svg { width: 16px; height: 16px; }
.toggle-pw:hover { color: var(--tx1); }

/* Password strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
  margin-top: 4px;
}
.str-bars { display: flex; gap: 4px; }
.str-bar {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}
.str-1 { background: #ef4444; }
.str-2 { background: #f97316; }
.str-3 { background: #eab308; }
.str-4 { background: var(--green); }
.str-label { font-size: 11.5px; color: var(--tx3); }

/* Selects */
.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--tx1);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.select-wrap > svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--tx3);
  pointer-events: none;
}

/* Divider */
.form-divider {
  position: relative;
  text-align: center;
  margin: 2px 0;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.form-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tx3);
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--tx2);
  font-weight: 400;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.radio-opt input[type="radio"] { display: none; }
.radio-box {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color .15s;
  position: relative;
}
.radio-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .15s;
}
.radio-opt input:checked ~ .radio-box { border-color: var(--accent); }
.radio-opt input:checked ~ .radio-box::after { opacity: 1; }
.radio-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--tx1);
  font-weight: 500;
}

/* Checkbox group */
.check-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.check-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--tx2);
  font-weight: 400;
  user-select: none;
}
.check-opt input[type="checkbox"] { display: none; }
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.check-box svg { width: 11px; height: 11px; color: white; opacity: 0; transition: opacity .15s; }
.check-opt input:checked ~ .check-box {
  border-color: var(--accent);
  background: var(--accent);
}
.check-opt input:checked ~ .check-box svg { opacity: 1; }

/* Comunicações checkbox — full width */
.check-opt--comm {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.check-opt--comm:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
}

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,64,0,.38);
  transition: background .2s, box-shadow .2s, transform .15s;
  margin-top: 4px;
}
.btn-submit svg { width: 18px; height: 18px; }
.btn-submit:hover {
  background: #e63900;
  box-shadow: 0 6px 26px rgba(255,64,0,.52);
  transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }

.form-terms {
  font-size: 12px;
  color: var(--tx3);
  text-align: center;
  line-height: 1.6;
}
.form-terms a { color: var(--tx2); text-decoration: underline; }
.form-terms a:hover { color: var(--tx1); }

/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel-left {
    position: relative;
    height: auto;
    min-height: unset;
  }
  .pl-inner { padding: 28px 24px 32px; }
  .pl-title { font-size: 30px; }
  .pl-perks { display: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .check-group { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .panel-right { padding: 32px 16px 48px; }
}
