:root{
  /* Base tipo dashboard (similar a sat-vault) */
  --bg:#f6f7fb;
  --card:#ffffff;
  --border:#e5e7eb;

  --text:#0f172a;
  --muted:#64748b;

  --line:#e5e7eb;
  --pill-bg:#f9fafb;

  /* Acentos tipo bóveda */
  --accent:#22c55e;      /* verde */
  --accent-2:#16a34a;
  --info:#2563eb;        /* foco azul */
  --info-ring: rgba(37,99,235,.18);

  --ok:#16a34a;
  --bad:#ef4444;

  --shadow: 0 12px 32px rgba(15,23,42,.10);
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --card:#0f172a;
  --border:#1f2a44;

  --text:#e5e7eb;
  --muted:#9aa4b2;

  --line:#1f2a44;
  --pill-bg: rgba(255,255,255,.04);

  --accent:#22c55e;
  --accent-2:#16a34a;
  --info:#60a5fa;
  --info-ring: rgba(96,165,250,.20);

  --ok:#22c55e;
  --bad:#f87171;

  --shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Página */
html.page-register-free body{
  background: var(--bg);
  min-height: 100vh;
  overflow:hidden;
  font-family:'Poppins',system-ui,sans-serif;
  color: var(--text);
}

/* Fondo tipo dashboard (suave, no rosa) */
html.page-register-free body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 420px at 85% 20%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 420px at 50% 90%, rgba(148,163,184,.14), transparent 60%);
}

/* Layout */
.wrap{
  display:grid;
  place-items:center;
  height:100vh;
  padding: 24px 14px;
  box-sizing:border-box;
}

/* Card (similar a sat-card) */
.card{
  width:min(520px,92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  position:relative;
}

/* Header / Brand */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom: 6px;
}
.logo{height:54px;width:auto;display:block;}
.logo-dark{display:none;}
html[data-theme="dark"] .logo-light{display:none;}
html[data-theme="dark"] .logo-dark{display:block;}

/* Theme toggle estilo “pill” */
.theme{
  position:absolute;
  top:12px;
  right:12px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
html[data-theme="dark"] .theme{ box-shadow:none; }
.theme:hover{ filter:brightness(.98); }
.theme span{ pointer-events:none; }

/* Badge FREE estilo “chip” (como pills de bóveda) */
.badge-free{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
  font-size: 11px;
  font-weight: 800;
  letter-spacing:.06em;
  text-transform: uppercase;
  margin: 2px auto 0;
}

/* Título */
.title{
  text-align:center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.title h1{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.title p{
  margin:6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* Alerts estilo dashboard */
.alert{
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 10px 0;
}
.alert.ok{
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
  background: color-mix(in srgb, var(--ok) 10%, var(--card));
}
.alert.err{
  border-color: color-mix(in srgb, var(--bad) 40%, var(--line));
  background: color-mix(in srgb, var(--bad) 10%, var(--card));
}

/* Form */
.form{
  margin-top: 6px;
  max-height: calc(100vh - 240px);
  overflow:auto;
  padding-right: 4px;
}
.form::-webkit-scrollbar{width:8px;}
.form::-webkit-scrollbar-thumb{background: rgba(100,116,139,.25); border-radius: 999px;}
html[data-theme="dark"] .form::-webkit-scrollbar-thumb{background: rgba(148,163,184,.25);}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin: 10px 0;
}
.label{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Inputs estilo sat-vault */
.input{
  width:100%;
  border-radius: 12px;
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline:none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing:border-box;
  min-height: 44px;
}
.input::placeholder{ color: color-mix(in srgb, var(--muted) 85%, transparent); }

.input:focus{
  border-color: var(--info);
  box-shadow: 0 0 0 3px var(--info-ring);
  background: color-mix(in srgb, var(--card) 92%, var(--pill-bg));
}

.input[aria-invalid="true"]{
  border-color: var(--bad);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent);
}

.help{ font-size: 11px; color: var(--muted); }
.help.error{ color: var(--bad); }

/* Honeypot */
.hp{position:absolute;left:-9999px;opacity:0;width:1px;height:1px;overflow:hidden;}

/* Terms */
.terms{
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.terms label{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  cursor:pointer;
}
.terms input{
  margin-top: 2px;
  accent-color: var(--accent);
}
.terms a{
  font-weight: 800;
  color: var(--info);
  text-decoration:none;
}
.terms a:hover{ text-decoration:underline; }

/* Actions: primario verde tipo bóveda + “Pasa a PRO” pill */
.actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Botones base */
.btn{
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 800;
  cursor:pointer;
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Primario (verde) como bóveda */
.btn-primary{
  flex:1;
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #052e16;
  box-shadow: 0 10px 22px rgba(34,197,94,.25);
}
.btn-primary:hover{ filter:brightness(1.03); transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary[disabled]{
  background: linear-gradient(90deg,#cbd5e1,#94a3b8);
  border-color: var(--line);
  color:#f1f5f9;
  box-shadow:none;
  cursor:not-allowed;
  transform:none;
}

/* CTA PRO: pill, menos agresivo (igual dashboard) */
.btn-pro{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(37,99,235,.30);
  background: rgba(37,99,235,.10);
  color: var(--info);
  font-weight: 900;
  text-decoration:none;
  white-space:nowrap;
}
.btn-pro:hover{
  filter:brightness(1.02);
  transform: translateY(-1px);
  background: rgba(37,99,235,.14);
}
.btn-pro:active{ transform: translateY(0); }

/* Login CTA */
.login-cta{
  margin-top: 12px;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
}
.login-cta a{
  font-weight: 900;
  color: var(--info);
  text-decoration:none;
}
.login-cta a:hover{ text-decoration:underline; }

/* Modal (de tu Blade) con look dashboard */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.55);
  z-index: 9999;
}
.modal[aria-hidden="false"]{ display:flex; }

.modal-card{
  width:min(520px,92vw);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  color: var(--text);
  border:1px solid var(--border);
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  animation: pop .18s ease-out;
}
@keyframes pop{
  from{ transform: scale(.98); opacity:.4; }
  to{ transform: scale(1); opacity:1; }
}
.modal-title{
  margin:0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--info);
}
.modal-body{ font-size: 13px; color: var(--muted); }
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 14px;
}

/* Ghost button para modal */
.btn-ghost{
  border:1px solid var(--line);
  background: transparent;
  color: var(--text);
}

/* Responsive */
@media (max-width: 520px){
  .card{ padding: 18px 16px 14px; }
  .actions{ flex-direction:column; align-items:stretch; }
  .btn-pro{ width:100%; border-radius: 12px; }
}
