/* /assets/css/register.css */

/* =========================================================
   Register (isolado) — não briga com /assets/css/style.css
   ========================================================= */
.reg-wrap{
  --blue-900:#061a3a;
  --blue-800:#0b3b8f;
  --blue-700:#1e4ea7;
  --blue-600:#0d6efd;

  --bg:#f3f8ff;
  --card:#ffffff;
  --border: rgba(13,110,253,.18);
  --shadow: 0 18px 44px rgba(0,0,0,.14);

  --text:#111;
  --muted:#556;
  --line:#e6e6e6;

  --ok-bg:#e9fff1;
  --ok-bd:#b6f2c6;
  --ok-tx:#0b6b2a;

  --err-bg:#fff1f1;
  --err-bd:#ffd0d0;
  --err-tx:#a40000;

  --radius: 12px;
  --radius-sm: 10px;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* reset leve só dentro do register */
.reg-wrap, .reg-wrap *{ box-sizing:border-box; }
.reg-wrap img{ max-width:100%; display:block; }

/* fundo */
.reg-wrap{
  background: var(--bg);
  padding: 28px 0;
}

/* container principal */
.reg-shell{
  min-height: 78vh;
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(11,59,143,.10);
  max-width: 1200px;
  margin: 0 auto;
  background:#fff;
}

/* =========================================================
   LADO ESQUERDO (AZUL)
   ========================================================= */
.reg-left{
  background: linear-gradient(180deg, var(--blue-600), var(--blue-800));
  padding: 34px 20px;
  display:grid;
  align-content:start;
  justify-items:center;
  gap: 18px;
}

/* marca */
.reg-brand{
  width:100%;
  max-width: 520px;
  display:flex;
  justify-content:center;
  margin-top: 4px;
}

.reg-logo{
  color:#fff;
  font-weight: 950;
  font-size: 40px;
  letter-spacing: -0.4px;
  line-height: 1;
}
.reg-logo span{
  font-size: 16px;
  vertical-align: top;
  margin-left: 2px;
  opacity: .95;
}

/* =========================================================
   CARD
   ========================================================= */
.reg-card{
  width:100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
}

.reg-card-head h1{
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

/* =========================================================
   ALERTAS
   ========================================================= */
.reg-alert{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.reg-alert-ok{
  background: var(--ok-bg);
  border: 1px solid var(--ok-bd);
  color: var(--ok-tx);
}
.reg-alert-err{
  background: var(--err-bg);
  border: 1px solid var(--err-bd);
  color: var(--err-tx);
}
.reg-hide{ display:none; }

/* =========================================================
   LABEL + INPUT
   ========================================================= */
.reg-label{
  display:block;
  margin: 12px 0 6px;
  font-weight: 900;
  font-size: 13px;
  color:#222;
}

.reg-input{
  width:100%;
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background:#fff;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}

.reg-input:focus-within{
  border-color: rgba(13,110,253,.55);
  box-shadow: 0 0 0 4px rgba(13,110,253,.12);
}

/* ícone */
.reg-ico{
  width: 18px;
  height: 18px;
  display:grid;
  place-items:center;
  opacity:.65;
  flex: 0 0 auto;
}
.reg-ico svg{
  width: 18px;
  height: 18px;
  fill:#111;
}

/* campo */
.reg-input input{
  width:100%;
  border:0;
  outline:0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
}
.reg-input input::placeholder{
  color: rgba(17,17,17,.45);
  font-weight: 700;
}

/* =========================================================
   ESTADOS (opcional: se quiser usar classes no HTML/JS)
   - .is-invalid / .is-valid
   ========================================================= */
.reg-input.is-invalid{
  border-color: rgba(220,53,69,.55);
  box-shadow: 0 0 0 4px rgba(220,53,69,.10);
}
.reg-input.is-valid{
  border-color: rgba(25,135,84,.55);
  box-shadow: 0 0 0 4px rgba(25,135,84,.10);
}

/* dica */
.reg-hint{
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #f2f6ff;
  border: 1px solid rgba(13,110,253,.12);
  border-radius: var(--radius-sm);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

/* =========================================================
   SENHAS EM 2 COLUNAS
   ========================================================= */
.reg-row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

/* =========================================================
   TERMOS (switch)
   ========================================================= */
.reg-terms{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 14px;
}

.reg-switch{
  position: relative;
  width: 40px;
  height: 22px;
  display:inline-block;
  flex: 0 0 auto;
}
.reg-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.reg-slider{
  position:absolute;
  inset:0;
  background:#cfcfcf;
  border-radius: 999px;
  transition: .2s;
}
.reg-slider:before{
  content:"";
  position:absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background:#fff;
  border-radius: 999px;
  transition: .2s;
  box-shadow: 0 6px 12px rgba(0,0,0,.18);
}

.reg-switch input:checked + .reg-slider{
  background: var(--blue-600);
}
.reg-switch input:checked + .reg-slider:before{
  transform: translateX(18px);
}

/* acessibilidade: foco no switch */
.reg-switch input:focus-visible + .reg-slider{
  box-shadow: 0 0 0 4px rgba(13,110,253,.15);
}

.reg-terms-text{
  font-size: 13px;
  font-weight: 800;
  color:#222;
}
.reg-terms-text a{
  color: var(--blue-600);
  font-weight: 950;
  text-decoration: underline;
}

/* =========================================================
   BOTÃO
   ========================================================= */
.reg-btn{
  width:100%;
  margin-top: 16px;
  padding: 12px 14px;
  border:0;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color:#fff;
  font-weight: 950;
  cursor:pointer;
  font-size: 14px;
  transition: .15s;
  box-shadow: 0 10px 22px rgba(13,110,253,.20);
}

.reg-btn:disabled{
  opacity: .55;
  cursor:not-allowed;
  box-shadow: none;
}
.reg-btn:hover:not(:disabled){
  filter: brightness(.98);
  transform: translateY(-1px);
}
.reg-btn:active:not(:disabled){
  transform: translateY(0);
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.reg-foot{
  margin-top: 12px;
  text-align:center;
  font-weight: 800;
  font-size: 13px;
  color:#333;
}
.reg-foot a{
  color: var(--blue-600);
  font-weight: 950;
  text-decoration: none;
}
.reg-foot a:hover{ text-decoration: underline; }

/* =========================================================
   LADO DIREITO
   ========================================================= */
.reg-right{
  background:#fff;
  display:grid;
  place-items:center;
  padding: 26px;
}

.reg-illustration{
  width:100%;
  max-width: 760px;
  display:grid;
  place-items:center;
}

.reg-illustration img{
  width:100%;
  height:auto;
  max-height: 620px;
  object-fit: contain;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px){
  .reg-shell{ grid-template-columns: 1fr; }
  .reg-right{ padding: 16px; }
  .reg-illustration img{ max-height: 360px; }
  .reg-row2{ grid-template-columns: 1fr; }
  .reg-logo{ font-size: 34px; }
}

@media (max-width: 420px){
  .reg-left{ padding: 28px 14px; }
  .reg-card{ padding: 18px; }
}
