/* ============================================================
   MHDCommerce — Cadastro de cliente (tela pública)
   Arquivo: wwwroot/css/cadastro.css
   Carregar depois de site.css.
   ============================================================ */

/* cores auxiliares (caso não estejam no site.css) */
:root{
  --accent:#f5a623; --accent-light:#fff8ec;
  --red:#e53b3b;    --red-light:#fdecec;
  --clube:#7a3df5;  --clube-light:#f1eafe;
}

.wrap{ max-width:560px; margin:0 auto; padding:34px 32px 70px; }
.cad-head{ text-align:center; margin-bottom:26px; }
.h1{ font-family:'Sora',sans-serif; font-size:27px; font-weight:700; margin-bottom:6px; }
.sub{ font-size:14px; color:var(--muted); }
.sub a{ color:var(--brand); font-weight:600; text-decoration:none; }

.sec{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-bottom:16px; }

.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid2 .full{ grid-column:1 / -1; }
.campo{ display:flex; flex-direction:column; }
.lbl{ font-size:12.5px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.lbl .req{ color:var(--red); margin-left:1px; }
.lbl .opt{ color:var(--muted); font-weight:400; margin-left:3px; }
.inp{ height:44px; border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:0 13px; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--text); outline:none; background:var(--white); width:100%; }
.inp:focus{ border-color:var(--brand); }
.inp.erro{ border-color:var(--red); background:#fffbfb; }
.inp::placeholder{ color:var(--muted); }
.campo-hint{ font-size:11.5px; color:var(--muted); margin-top:5px; display:flex; align-items:center; gap:5px; min-height:15px; }
.campo-hint.err{ color:var(--red); }
.campo-hint.ok{ color:var(--brand); }
.campo-hint a{ color:var(--brand); font-weight:700; text-decoration:none; }
.campo-hint a:hover{ text-decoration:underline; }
.senha-forca{ font-size:11.5px; margin-top:6px; font-weight:600; min-height:15px; }
.senha-forca.fraca{ color:var(--red); }
.senha-forca.media{ color:var(--accent); }
.senha-forca.forte{ color:var(--brand); }
.senha-wrap{ position:relative; }
.senha-olho{ position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:15px; opacity:.5; }

.chk{ display:flex; align-items:flex-start; gap:11px; cursor:pointer; padding:7px 0; }
.chk input{ position:absolute; opacity:0; width:0; height:0; }
.chk-box{ width:19px; height:19px; border:2px solid var(--border); border-radius:5px; flex-shrink:0; margin-top:1px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; transition:.12s; }
.chk input:checked + .chk-box{ background:var(--brand); border-color:var(--brand); }
.chk input:focus-visible + .chk-box{ outline:2px solid var(--brand); outline-offset:2px; }
.chk-txt{ font-size:13.5px; font-weight:500; }
.chk-txt a{ color:var(--brand); font-weight:700; text-decoration:none; }
.chk-desc{ font-size:12px; color:var(--muted); margin-top:1px; }
.chk.req-chk .chk-box{ border-color:var(--red); }
.chk.req-chk input:checked + .chk-box{ border-color:var(--brand); }

.clube-row{ display:flex; align-items:center; gap:12px; }
.clube-logo{ height:30px; padding:3px 8px; background:var(--clube-light); border-radius:var(--radius-sm); display:flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--clube); }
.chk input:checked + .chk-box.clube-check{ background:var(--clube); border-color:var(--clube); }

.divisor{ height:1px; background:var(--border); margin:6px 0 14px; }

.btn-criar{ width:100%; height:50px; background:var(--brand); color:#fff; border:none; border-radius:var(--radius-md); font-family:'DM Sans',sans-serif; font-size:15.5px; font-weight:700; cursor:pointer; margin-top:8px; display:flex; align-items:center; justify-content:center; gap:8px; }
.btn-criar:hover{ background:var(--brand-mid); }
.btn-criar:disabled{ background:var(--muted); cursor:not-allowed; }

.obrig-nota{ font-size:11.5px; color:var(--muted); margin-top:14px; text-align:center; }
.ja-tenho{ text-align:center; margin-top:18px; font-size:14px; color:var(--text-2); }
.ja-tenho a{ color:var(--brand); font-weight:700; text-decoration:none; }

.toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); background:var(--text); color:#fff; border-radius:var(--radius-md); padding:13px 20px; font-size:13.5px; font-weight:600; box-shadow:0 10px 34px rgba(0,0,0,.3); z-index:2000; opacity:0; pointer-events:none; transition:.25s; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.ok{ background:var(--brand-dark); }

@media (max-width:560px){
  .grid2{ grid-template-columns:1fr; }
  .h1{ font-size:23px; }
  .sec{ padding:18px; }
}

/* ── toggle PF/PJ ── */
.tipo-toggle{ display:flex; gap:0; background:var(--bg); border:1.5px solid var(--border); border-radius:var(--radius-md); padding:4px; margin-bottom:22px; }
.tipo-opt{ flex:1; height:42px; border:none; background:none; border-radius:var(--radius-sm); font-family:'DM Sans',sans-serif; font-size:14px; font-weight:700; color:var(--muted); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; transition:.15s; }
.tipo-opt.on{ background:var(--white); color:var(--brand-dark); box-shadow:0 2px 8px rgba(0,0,0,.08); }
.tipo-ico{ font-size:16px; }

/* ── IE + isento ── */
.ie-wrap{ display:flex; gap:10px; align-items:stretch; }
.ie-isento{ display:flex; align-items:center; gap:7px; height:44px; padding:0 12px; border:1.5px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; white-space:nowrap; font-size:13px; font-weight:600; color:var(--text-2); background:var(--white); }
.ie-isento input{ width:16px; height:16px; accent-color:var(--brand); cursor:pointer; }
.inp:disabled{ background:var(--bg); color:var(--muted); cursor:not-allowed; }
