/* ============================================================
   PedeFi — Cadastro
   Composição visual baseada na referência aprovada.
   Mantém os campos, estados e integrações originais.
   ============================================================ */

body.cadastro-body {
  --cadastro-orange: #ff5b00;
  --cadastro-orange-strong: #ff4900;
  --cadastro-ink: #0b0d10;
  --cadastro-text: #46505f;
  --cadastro-line: rgba(255, 91, 0, 0.22);
  min-width: 320px;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--cadastro-ink);
  background: #fffaf7;
  font-family: "Inter", sans-serif;
}

body.cadastro-body *,
body.cadastro-body *::before,
body.cadastro-body *::after {
  box-sizing: border-box;
}

body.cadastro-body .login-page.cadastro-page {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(560px, 44%);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  max-height: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 63% 20%, rgba(255, 91, 0, 0.08), transparent 24%),
    linear-gradient(135deg, #fff 0%, #fffdfb 58%, #fff4ec 100%);
}

/* ---------- Coluna institucional ---------- */

body.cadastro-body .cadastro-institutional {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--cadastro-ink);
  background:
    radial-gradient(circle at 62% 46%, rgba(255, 91, 0, 0.09), transparent 29%),
    linear-gradient(145deg, #fff 0%, #fffdfa 72%, #fff4ea 100%);
}

body.cadastro-body .cadastro-institutional::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -20%;
  bottom: -23%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 91, 0, 0.1);
  border-radius: 42% 58% 62% 38%;
  box-shadow:
    34px -26px 0 rgba(255, 91, 0, 0.025),
    70px -52px 0 rgba(255, 91, 0, 0.02),
    106px -78px 0 rgba(255, 91, 0, 0.015);
  transform: rotate(10deg);
  pointer-events: none;
}

body.cadastro-body .cadastro-institutional::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 3%;
  bottom: 3%;
  width: 130px;
  height: 92px;
  opacity: 0.38;
  background-image: radial-gradient(circle, rgba(255, 91, 0, 0.6) 1.7px, transparent 1.9px);
  background-size: 18px 18px;
  pointer-events: none;
}

body.cadastro-body .login-institutional-ambient {
  display: none;
}

body.cadastro-body .cadastro-institutional-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.cadastro-body .login-institutional-logo {
  position: absolute;
  z-index: 8;
  top: clamp(28px, 4.3vh, 48px);
  left: clamp(34px, 3.6vw, 70px);
  display: none;
  width: clamp(150px, 10.5vw, 205px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
}

body.cadastro-body .login-institutional-title {
  position: absolute;
  z-index: 8;
  top: clamp(44px, 6vh, 68px);
  left: clamp(34px, 3.6vw, 70px);
  width: min(420px, 41%);
  margin: 0;
  color: var(--cadastro-ink);
  font-size: clamp(2.4rem, 2.75vw, 3.3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-align: left;
}

body.cadastro-body .login-institutional-title span,
body.cadastro-body .login-institutional-subtitle strong {
  color: var(--cadastro-orange);
}

body.cadastro-body .login-institutional-subtitle {
  position: absolute;
  z-index: 8;
  top: clamp(212px, 23.5vh, 252px);
  left: clamp(34px, 3.6vw, 70px);
  width: min(370px, 39%);
  margin: 0;
  color: #21262d;
  font-size: clamp(0.98rem, 1.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.cadastro-benefits {
  position: absolute;
  z-index: 8;
  top: clamp(302px, 34vh, 350px);
  left: clamp(34px, 3.6vw, 70px);
  display: grid;
  width: min(330px, 37%);
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.cadastro-benefits li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: stretch;
  min-height: 92px;
  padding: 0;
  overflow: hidden;
  color: var(--cadastro-ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 91, 0, 0.17);
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(38, 25, 16, 0.035);
  backdrop-filter: blur(8px);
}

.cadastro-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--cadastro-orange);
  background: linear-gradient(135deg, rgba(255, 91, 0, 0.07), rgba(255, 91, 0, 0.015));
  border-right: 1px solid rgba(255, 91, 0, 0.12);
}

.cadastro-benefit-icon svg,
.cadastro-benefit-icon i {
  width: 31px;
  height: 31px;
  stroke-width: 2.1;
}

.cadastro-benefits li > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
}

.cadastro-benefits strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cadastro-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.cadastro-benefits small {
  display: block;
  color: #4d5561;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.cadastro-handwritten {
  position: absolute;
  z-index: 7;
  top: 4px;
  right: 36px;
  color: #0c111b;
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 2.55vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-3deg);
}

.cadastro-handwritten strong {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  color: var(--cadastro-orange);
  font-weight: 700;
}

.cadastro-handwritten strong::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -5%;
  bottom: -9px;
  height: 5px;
  border-radius: 999px;
  background: var(--cadastro-orange);
  transform: rotate(-4deg);
}

.cadastro-product-visual {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  left: 35%;
  pointer-events: none;
}

.cadastro-product-glow {
  position: absolute;
  z-index: 0;
  top: 17%;
  left: 15%;
  width: min(46vw, 590px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 155, 93, 0.26), rgba(255, 91, 0, 0.07) 48%, transparent 70%);
}

.cadastro-product-mascot {
  position: absolute;
  z-index: 2;
  top: clamp(34px, 5vh, 58px);
  left: 15%;
  width: clamp(275px, 24vw, 430px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(59, 29, 11, 0.12));
}

.cadastro-phone-frame {
  position: absolute;
  z-index: 4;
  top: clamp(350px, 38vh, 410px);
  left: 22%;
  width: clamp(260px, 18vw, 340px);
  box-sizing: border-box !important;
  padding: 11px;
  overflow: hidden;
  background: #0d1118;
  border: 2px solid #2b3038;
  border-radius: 42px;
  box-shadow:
    0 32px 60px rgba(33, 25, 20, 0.2),
    0 6px 18px rgba(33, 25, 20, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(-2.2deg);
  transform-origin: center top;
}

.cadastro-phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 28%;
  height: 17px;
  border-radius: 0 0 12px 12px;
  background: #0d1118;
  transform: translateX(-50%);
}

.cadastro-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

.cadastro-online {
  position: absolute;
  z-index: 9;
  left: clamp(34px, 3.6vw, 70px);
  top: calc(clamp(302px, 34vh, 350px) + 330px);
  bottom: auto;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: stretch;
  width: min(330px, 37%);
  min-height: 86px;
  padding: 0;
  gap: 0;
  color: #16703a;
  background: rgba(238, 253, 244, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.05);
}

.cadastro-online-dot {
  width: 13px;
  height: 13px;
  align-self: center;
  justify-self: center;
  margin: 0;
  border-radius: 50%;
  background: #24c96b;
  box-shadow: 0 0 0 5px rgba(36, 201, 107, 0.12);
}

.cadastro-online strong,
.cadastro-online small {
  display: block;
}

.cadastro-online > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
  border-left: 1px solid rgba(34, 197, 94, 0.16);
}

.cadastro-online strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 800;
}

.cadastro-online small {
  color: #465c51;
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ---------- Painel e card ---------- */

body.cadastro-body .cadastro-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: clamp(22px, 3vh, 38px) clamp(28px, 3vw, 54px);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 250, 246, 0.54), rgba(255, 236, 223, 0.76));
}

body.cadastro-body .cadastro-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -19%;
  bottom: -26%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 91, 0, 0.11);
  border-radius: 52% 48% 44% 56%;
  box-shadow:
    -30px -24px 0 rgba(255, 91, 0, 0.025),
    -62px -48px 0 rgba(255, 91, 0, 0.02);
  transform: rotate(-15deg);
  pointer-events: none;
}

body.cadastro-body .cadastro-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4%;
  right: 4%;
  width: 110px;
  height: 90px;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(255, 91, 0, 0.65) 2px, transparent 2.2px);
  background-size: 19px 19px;
  pointer-events: none;
}

body.cadastro-body .login-panel-ambient {
  display: none;
}

body.cadastro-body .login-card.cadastro-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%) !important;
  max-width: 680px !important;
  height: calc(100dvh - 56px);
  max-height: calc(100dvh - 56px);
  margin: 0;
  padding: clamp(22px, 2.8vh, 34px) clamp(26px, 2.6vw, 40px) clamp(18px, 2.2vh, 28px) !important;
  overflow: auto;
  color: var(--cadastro-ink);
  background: rgba(255, 255, 255, 0.93) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 30px !important;
  box-shadow:
    0 28px 80px rgba(81, 51, 31, 0.11),
    0 8px 24px rgba(81, 51, 31, 0.055),
    inset 0 1px 0 #fff !important;
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

body.cadastro-body #cadastroSignupView {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

body.cadastro-body #cadastroSignupView[hidden],
body.cadastro-body #cadastroSuccessView[hidden] {
  display: none !important;
}

body.cadastro-body .cadastro-success {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 32px 12px;
  color: var(--cadastro-ink);
  text-align: center;
}

body.cadastro-body .cadastro-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  place-items: center;
  color: #16803d;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
}

body.cadastro-body .cadastro-success-icon svg {
  width: 32px;
  height: 32px;
}

body.cadastro-body .cadastro-success h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

body.cadastro-body .cadastro-success p {
  max-width: 380px;
  margin: 0;
  color: #667081;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}

body.cadastro-body .cadastro-success strong {
  max-width: 100%;
  margin: 5px 0 16px;
  overflow-wrap: anywhere;
  color: var(--cadastro-orange-strong);
  font-size: 1rem;
  font-weight: 800;
}

body.cadastro-body .login-card.cadastro-card::before {
  display: none;
}

.cadastro-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

body.cadastro-body .cadastro-logo-mobile {
  display: block !important;
  width: clamp(128px, 10vw, 168px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 auto clamp(8px, 1.2vh, 14px) !important;
  object-fit: contain;
}

body.cadastro-body .cadastro-card .login-card-title {
  margin: 0 0 5px;
  color: var(--cadastro-ink);
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

body.cadastro-body .cadastro-card .cadastro-card-lead {
  margin: 0 0 clamp(14px, 1.8vh, 20px) !important;
  color: #667081 !important;
  font-size: 0.96rem !important;
  font-weight: 500;
  line-height: 1.4 !important;
  text-align: center;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 22px);
  min-width: 0;
}

.cadastro-form-section {
  min-width: 0;
}

.cadastro-form-section-title {
  margin: 0 0 10px;
  color: var(--cadastro-orange-strong);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cadastro-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vh, 22px) 18px;
  min-width: 0;
}

body.cadastro-body .cadastro-field,
body.cadastro-body .login-field {
  min-width: 0;
  margin: 0;
  animation: none;
}

body.cadastro-body .cadastro-field .login-label {
  display: block;
  margin: 0 0 5px;
  color: #414a58;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

body.cadastro-body .login-input-wrap {
  position: relative;
  min-width: 0;
}

body.cadastro-body .login-input-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: #728094;
  transform: translateY(-50%);
  pointer-events: none;
}

body.cadastro-body .login-card input:not([type="checkbox"]),
body.cadastro-body .cadastro-select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px !important;
  margin: 0;
  padding: 0 13px 0 43px !important;
  color: #303846;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid #d8dee7 !important;
  border-radius: 11px !important;
  outline: none;
  box-shadow: 0 4px 12px rgba(33, 43, 54, 0.018) !important;
  font: inherit;
  font-size: 0.86rem !important;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.cadastro-body .cadastro-select {
  appearance: none;
  padding-right: 34px !important;
  cursor: pointer;
}

.cadastro-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #647184;
  border-bottom: 2px solid #647184;
  transform: translateY(-66%) rotate(45deg);
  pointer-events: none;
}

body.cadastro-body .login-card input:not([type="checkbox"])::placeholder {
  color: #929cab;
  opacity: 1;
}

body.cadastro-body .login-card input:not([type="checkbox"]):hover,
body.cadastro-body .cadastro-select:hover {
  border-color: #c6ceda !important;
}

body.cadastro-body .login-card input:not([type="checkbox"]):focus,
body.cadastro-body .cadastro-select:focus {
  background: #fff !important;
  border-color: rgba(255, 91, 0, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.09) !important;
}

.cadastro-form-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cadastro-terms {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  margin: 0;
  gap: 8px;
  color: #5d6777;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

body.cadastro-body .login-card .cadastro-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0;
  padding: 0 !important;
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: 1.5px solid #c7cfda !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.cadastro-body .login-card .cadastro-terms input[type="checkbox"]:checked {
  border-color: #ff5b00 !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    #ff5b00 !important;
}

body.cadastro-body .login-card .cadastro-terms.is-checked input[type="checkbox"] {
  border-color: #ff5b00 !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    #ff5b00 !important;
  box-shadow: none !important;
}

body.cadastro-body .login-card .cadastro-terms.is-invalid input[type="checkbox"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

body.cadastro-body .login-card .cadastro-terms.is-invalid.is-checked input[type="checkbox"],
body.cadastro-body .login-card .cadastro-terms.is-invalid input[type="checkbox"]:checked {
  border-color: #ff5b00 !important;
  box-shadow: none !important;
}

.cadastro-terms a {
  color: var(--cadastro-orange-strong);
  font-weight: 700;
  text-decoration: none;
}

.cadastro-terms a:hover,
.cadastro-terms a:focus-visible {
  text-decoration: underline;
}

.cadastro-terms-hint {
  display: none;
}

.cadastro-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.cadastro-body .login-card button#botaoCadastro.login-panel-btn {
  width: 100%;
  min-height: 52px !important;
  height: 52px !important;
  margin: 2px 0 0 !important;
  padding: 0 22px !important;
  color: #fff !important;
  background: linear-gradient(90deg, #ff6a00 0%, #ff4b00 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 26px rgba(255, 75, 0, 0.2) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

body.cadastro-body .cadastro-submit .login-panel-btn-icon,
body.cadastro-body .cadastro-submit .login-panel-btn-icon svg,
body.cadastro-body .cadastro-submit svg.login-panel-btn-icon {
  color: #fff !important;
  stroke: #fff !important;
}

body.cadastro-body .login-card button#botaoCadastro.login-panel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(255, 75, 0, 0.25) !important;
}

body.cadastro-body .login-card button#botaoCadastro.login-panel-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.cadastro-submit-note {
  position: relative;
  margin: 0 !important;
  color: #637083;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.cadastro-submit-note::before,
.cadastro-submit-note::after {
  color: #37b96b;
  font-weight: 800;
}

.cadastro-submit-note::before {
  content: "✓ ";
}

.cadastro-submit-note::after {
  content: "   ·   Sem cartão   ·   Cancelamento a qualquer momento";
  color: #637083;
  font-weight: 600;
}

body.cadastro-body #mensagemCadastro {
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
  color: #5b6574;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

body.cadastro-body #mensagemCadastro:empty {
  display: none;
}

body.cadastro-body #mensagemCadastro.mensagem-form.sucesso,
body.cadastro-body #mensagemCadastro.mensagem-form.aviso,
body.cadastro-body #mensagemCadastro.mensagem-form.erro {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
}

body.cadastro-body #mensagemCadastro.mensagem-form.sucesso {
  color: #166534;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

body.cadastro-body #mensagemCadastro.mensagem-form.aviso {
  color: #92400e;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(217, 119, 6, 0.22);
}

body.cadastro-body #mensagemCadastro.mensagem-form.erro {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.17);
}

.cadastro-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  gap: 7px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

body.cadastro-body .login-links.cadastro-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 !important;
  gap: 8px;
  color: #677284;
  font-size: 0.86rem;
}

.cadastro-links-lead {
  font-weight: 500;
}

body.cadastro-body .cadastro-login-link {
  margin: 0;
  color: var(--cadastro-orange-strong);
  font-weight: 800;
  text-decoration: none;
}

body.cadastro-body .cadastro-login-link .login-card-link-icon {
  width: 18px;
  height: 18px;
}

.cadastro-footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 5px 8px;
  color: #7b8492;
  font-size: 0.7rem;
  font-weight: 600;
}

.cadastro-footer-trust svg,
.cadastro-footer-trust i {
  width: 13px;
  height: 13px;
  color: #31b768;
}

.cadastro-footer-trust a {
  color: #697486;
  font-weight: 600;
  text-decoration: none;
}

body.cadastro-body .cadastro-sessao-ativa {
  margin: 0 0 14px;
  padding: 14px;
  color: #166534;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  text-align: center;
}

body.cadastro-body .cadastro-sessao-acoes {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 8px;
}

body.cadastro-body #senhaCadastro[hidden],
body.cadastro-body #confirmarSenhaCadastro[hidden] {
  display: none !important;
}

body.cadastro-body .cadastro-field:has(#senhaCadastro[hidden]),
body.cadastro-body .cadastro-field:has(#confirmarSenhaCadastro[hidden]) {
  display: none;
}

/* ---------- Ajustes por altura ---------- */

@media (max-height: 930px) and (min-width: 961px) {
  body.cadastro-body .login-card.cadastro-card {
    padding-top: 18px !important;
    padding-bottom: 16px !important;
  }

  body.cadastro-body .cadastro-logo-mobile {
    width: 126px !important;
    margin-bottom: 5px !important;
  }

  body.cadastro-body .cadastro-card .login-card-title {
    font-size: 1.55rem;
  }

  body.cadastro-body .cadastro-card .cadastro-card-lead {
    margin-bottom: 11px !important;
    font-size: 0.82rem !important;
  }

  .cadastro-form {
    gap: 9px;
  }

  .cadastro-form-grid {
    gap: 7px 14px;
  }

  body.cadastro-body .login-card input:not([type="checkbox"]),
  body.cadastro-body .cadastro-select {
    height: 42px !important;
  }

  body.cadastro-body .login-card button#botaoCadastro.login-panel-btn {
    min-height: 46px !important;
    height: 46px !important;
  }

  .cadastro-card-bottom {
    margin-top: auto;
    padding-top: 8px;
  }

  .cadastro-benefits {
    gap: 9px;
  }

  .cadastro-benefits li {
    min-height: 78px;
  }

  .cadastro-online {
    top: calc(clamp(302px, 34vh, 350px) + 270px);
  }
}

@media (max-height: 800px) and (min-width: 961px) {
  .cadastro-online {
    display: none;
  }

  .cadastro-benefits li {
    min-height: 70px;
  }

  .cadastro-benefits small {
    font-size: 0.7rem;
  }
}

@media (max-width: 1500px) and (min-width: 961px) {
  .cadastro-product-visual {
    left: 43%;
  }
}

/* ---------- Tablet e mobile ---------- */

@media (max-width: 1180px) {
  body.cadastro-body .login-page.cadastro-page {
    grid-template-columns: minmax(0, 48%) minmax(540px, 52%);
  }

  body.cadastro-body .login-institutional-title,
  body.cadastro-body .login-institutional-subtitle,
  .cadastro-benefits,
  .cadastro-online {
    left: 28px;
  }

  body.cadastro-body .login-institutional-logo {
    left: 28px;
  }

  body.cadastro-body .login-institutional-title {
    width: 43%;
    font-size: clamp(2.15rem, 4vw, 3rem);
  }

  body.cadastro-body .login-institutional-subtitle,
  .cadastro-benefits,
  .cadastro-online {
    width: 42%;
  }

  .cadastro-product-visual {
    left: 40%;
  }

  .cadastro-handwritten {
    display: none;
  }
}

@media (max-width: 960px) {
  body.cadastro-body {
    height: auto;
    overflow: auto;
    background: #fff8f3;
  }

  body.cadastro-body .login-page.cadastro-page {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    background: linear-gradient(160deg, #fff 0%, #fff5ed 100%);
  }

  body.cadastro-body .cadastro-institutional {
    display: none;
  }

  body.cadastro-body .cadastro-panel {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 24px 18px;
    overflow: visible;
  }

  body.cadastro-body .login-card.cadastro-card {
    width: min(680px, 100%) !important;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  body.cadastro-body .cadastro-panel {
    padding: 14px 10px 20px;
  }

  body.cadastro-body .login-card.cadastro-card {
    padding: 22px 16px 18px !important;
    border-radius: 22px !important;
  }

  body.cadastro-body .cadastro-logo-mobile {
    width: 138px !important;
  }

  body.cadastro-body .cadastro-card .login-card-title {
    font-size: 1.55rem;
  }

  .cadastro-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.cadastro-body .login-card input:not([type="checkbox"]),
  body.cadastro-body .cadastro-select {
    height: 48px !important;
  }

  .cadastro-submit-note::after {
    content: "   ·   Sem cartão";
  }
}

@media (max-width: 390px) {
  body.cadastro-body .cadastro-panel {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.cadastro-body .login-card.cadastro-card {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.cadastro-body .cadastro-card .login-card-title {
    font-size: 1.42rem;
  }

  body.cadastro-body .cadastro-card .cadastro-card-lead {
    font-size: 0.84rem !important;
  }

  .cadastro-terms {
    font-size: 0.73rem;
  }
}

@media (max-width: 960px) {
  body.cadastro-body.cadastro-body--success {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body.cadastro-body.cadastro-body--success .login-page.cadastro-page,
  body.cadastro-body.cadastro-body--success .cadastro-panel {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.cadastro-body.cadastro-body--success .cadastro-panel {
    align-items: center;
    justify-content: center;
    padding: 16px 0;
  }

  body.cadastro-body.cadastro-body--success .login-card.cadastro-card {
    width: calc(100% - 32px) !important;
    max-width: 560px !important;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.cadastro-body.cadastro-body--success .cadastro-success {
    flex: 0 1 auto;
    min-height: 0;
    padding: clamp(30px, 8vh, 64px) 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cadastro-body *,
  body.cadastro-body *::before,
  body.cadastro-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
