/* Comece  - layout estilo tela de autenticação Gestgo */
:root {
  --green: #14B87A;
  --green-hover: #0D9F69;
  --green-deep: #0E9D68;
  --ink: #17201F;
  --text: #596A60;
  --muted: #7D8C82;
  --line: #E2E9E5;
  --pale: #EAF8F1;
  --mid: #087D64;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.12; }
.req { color: var(--green); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Split autenticacao: altura fixa; só o direito rola */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Painel verde (fixo no desktop) */
.auth-brand {
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 36px 44px 28px;
  position: relative;
  height: 100%;
  overflow: hidden;
}
.auth-brand-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  position: relative;
  z-index: 2;
}
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  width: fit-content;
  line-height: 1;
}
.auth-brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.auth-brand-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0 46px;
  line-height: 1.35;
}
.auth-brand-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  padding: 20px 0 12px;
  min-height: 0;
  overflow: hidden;
}
.auth-brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
  line-height: 1.35;
}
.auth-brand-main h1 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.18;
}
.auth-brand-main .lede {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 20px;
  max-width: 380px;
}
.auth-brand-points {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-brand-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.auth-brand-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-top: 6px;
  flex: none;
  opacity: 0.9;
}
.auth-brand-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.auth-brand-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* Painel formulario (único lado com scroll) */
.auth-form-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.auth-form-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 20px 28px 0;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}
.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
}
.auth-mobile-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.auth-mobile-brand b { color: var(--ink); font-weight: 750; }
.auth-mobile-brand span { color: var(--green); }
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  user-select: none;
  -webkit-user-select: none;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.auth-back .material-symbols-outlined { font-size: 18px; }
.auth-back:hover { background: #F6FAF7; color: var(--ink); }

.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 32px 48px;
}
.form-card {
  width: min(465px, 100%);
  margin: auto 0;
  padding: 12px 0 8px;
}
.topline {
  color: var(--mid);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.form-title {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.form-sub {
  color: var(--text);
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.55;
}
.flow-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.switch-auth {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.switch-auth .material-symbols-outlined { font-size: 16px; }
.switch-auth:hover { text-decoration: underline; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 0 0 24px;
}
.step {
  border-top: 3px solid #E7EEE9;
  padding-top: 9px;
  font-size: 11px;
  font-weight: 700;
  color: #97A49B;
}
.step.active {
  border-color: var(--green);
  color: var(--mid);
}
.step.done {
  border-color: var(--mid);
  color: var(--mid);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.fieldset.hidden { display: none; }

.plan-selector { margin-bottom: 18px; }
.plan-label { font-size: 12px; font-weight: 650; margin-bottom: 8px; color: var(--ink); }
.plan-summary {
  font-size: 12px;
  color: #5A6C61;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #D1E9DB;
  background: #EAF7EF;
}
.plan-summary strong { color: var(--ink); font-weight: 700; }
.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #DDE7DF;
  background: white;
  cursor: pointer;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.plan-option.selected { border-color: var(--green); background: #E9F8EF; }
.plan-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #C5D4CB;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-option.selected .plan-radio { border-color: var(--green); }
.plan-radio-inner {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); opacity: 0; transform: scale(0);
}
.plan-option.selected .plan-radio-inner { opacity: 1; transform: scale(1); }
.plan-info { flex: 1; min-width: 0; }
.plan-name { font-size: 13px; font-weight: 650; }
.plan-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.plan-price { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }
.plan-price span { font-size: 11px; font-weight: 500; color: var(--muted); }
.plans-loading { font-size: 12px; color: var(--muted); padding: 8px 0; }
.niche-options-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.niche-options-cards .plan-option { margin: 0; }
.niche-select {
  display: none;
  width: 100%;
  height: 46px;
  border: 1px solid #DCE5DE;
  border-radius: 10px;
  padding: 0 13px;
  margin-bottom: 16px;
  background: white;
}

.field { margin: 0 0 16px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field-hint { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fi {
  width: 100%;
  height: 46px;
  border: 1px solid #DCE5DE;
  border-radius: 10px;
  padding: 0 14px;
  outline: 0;
  background: white;
  color: var(--ink);
}
.fi:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 184, 122, 0.15);
}
.fi::placeholder { color: #9BA7A0; }

.pw-wrap { position: relative; }
.pw-wrap .fi { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.pw-toggle svg { width: 18px; height: 18px; }
.pw-strength { display: flex; gap: 4px; margin-top: 8px; }
.pw-bar { height: 3px; border-radius: 2px; flex: 1; background: #E7EEE9; }
.pw-bar.on1 { background: #ef4444; }
.pw-bar.on2 { background: #f59e0b; }
.pw-bar.on3 { background: #eab308; }
.pw-bar.on4 { background: var(--green); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  cursor: pointer;
  font-size: 12px;
  color: #5A6C61;
}
.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #DCE5DE;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  background: white;
}
.check-row input:checked + .check-box {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.check-box svg { width: 12px; height: 12px; opacity: 0; }
.check-row input:checked + .check-box svg { opacity: 1; }
.check-text a { color: var(--green); font-weight: 600; text-decoration: underline; }

.alert-err {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #F3C1C1;
  background: #FDF2F2;
  color: #B42318;
  font-size: 12px;
  line-height: 1.5;
}
.message {
  margin: 0 0 16px;
  border: 1px solid #D1E9DB;
  background: #EAF7EF;
  border-radius: 10px;
  padding: 12px 14px;
  color: #135F43;
  font-size: 12px;
}
#feedback:empty { display: none !important; }

.form-actions {
  display: flex;
  gap: 11px;
  align-items: stretch;
}
.btn-secondary {
  min-height: 48px;
  border: 1px solid #E1E8E3;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  color: var(--ink);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-secondary .material-symbols-outlined { font-size: 18px; }
.btn-secondary:hover { background: #F8FAF9; }
.form-actions .submit-btn { flex: 1; }

.submit-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 0 19px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn .material-symbols-outlined { font-size: 18px; }
.submit-btn:hover { background: var(--green-hover); }
.submit-btn:disabled { opacity: 0.65; cursor: wait; }

.form-bottom { margin-top: 22px; text-align: center; }
.form-login { font-size: 13px; color: var(--muted); }
.form-login a { color: var(--green); font-weight: 700; }
.form-login .login-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.form-login .login-inline .material-symbols-outlined {
  font-size: 16px;
}
.form-secure { font-size: 11px; color: #93A097; margin-top: 10px; }

.wpp-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #D1E9DB;
  background: #F4FBF7;
  text-decoration: none;
  color: inherit;
}
.wpp-strip-mobile {
  display: none;
  margin-top: 22px;
}
.wpp-strip-brand {
  margin: 0;
  gap: 14px;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}
.wpp-strip-brand:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}
.wpp-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  flex: none;
  margin-right: 2px;
}
.wpp-icon svg { width: 18px; height: 18px; }
.wpp-text {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}
.wpp-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.wpp-sub { font-size: 12px; color: var(--text); margin-top: 4px; line-height: 1.4; }
.wpp-strip-brand .wpp-title { color: #fff; }
.wpp-strip-brand .wpp-sub { color: rgba(255, 255, 255, 0.78); }
.wpp-btn {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--green);
  border-radius: 8px;
  padding: 9px 12px;
  flex: none;
}
.wpp-strip-brand .wpp-btn {
  background: #fff;
  color: var(--green);
}
.wpp-strip-brand .wpp-btn:hover { background: #F3FBF7; }
.wpp-btn:hover { background: var(--green-hover); }

.mobile-value { display: none; }

.success-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: auto;
}
.success-screen.show { display: flex; }
.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F7F0;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.success-check svg { width: 28px; height: 28px; }
.success-h { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.035em; }
.success-h em { font-style: normal; color: var(--green); }
.success-p { color: var(--text); max-width: 420px; line-height: 1.7; }

@media (max-width: 960px) {
  html, body { overflow: auto; height: auto; }
  .auth-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .auth-brand { display: none; }
  .auth-form-panel {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .auth-form-tools {
    position: static;
    background: transparent;
    justify-content: space-between;
    padding: 16px 20px 0;
  }
  .auth-mobile-brand { display: inline-flex; }
  .auth-form-wrap {
    align-items: flex-start;
    padding: 8px 20px 56px;
  }
  .mobile-value {
    display: block;
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #D1E9DB;
    background: #F1FAF5;
  }
  .mobile-value-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
  .mobile-value-sub { font-size: 12px; color: var(--text); margin: 0; line-height: 1.55; }
  .wpp-strip-mobile { display: flex; }
}

@media (max-width: 560px) {
  .form-row,
  .niche-options-cards { grid-template-columns: 1fr; }
  .niche-select { display: block; }
  .niche-options-cards { display: none; }
  .auth-brand-tag { margin-left: 0; }
  .wpp-strip-mobile { display: flex; flex-wrap: wrap; }
  .wpp-btn { margin-left: 0; width: 100%; text-align: center; }
  .flow-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-actions { flex-direction: column-reverse; }
  .btn-secondary { width: 100%; }
}
