@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root{
  --bg:#fcfcfc; --card:#ffffff; --text:#111827; --muted:#4b5563; --muted2:#9ca3af;
  --accent:#dc2626; --accent2:#b91c1c; --radius:14px;
  --shadow:0 14px 36px rgba(220,38,38,0.12);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(220,38,38,0.08), transparent 42%),
    radial-gradient(circle at 82% 65%, rgba(17,24,39,0.05), transparent 50%),
    var(--bg);
  color:var(--text);
}

.container{max-width:900px;margin:0 auto;padding:32px 20px}
.header{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px;font-weight:700;letter-spacing:0.02em}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  border:1px solid rgba(220,38,38,0.14);
  border-radius:var(--radius);
  padding:26px 24px;
  box-shadow:var(--shadow);
}
.center{text-align:center}
.lead{color:var(--muted);margin:8px 0 16px;line-height:1.5}
.form{display:grid;gap:12px;max-width:520px;margin:0 auto}
.input{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(220,38,38,0.16);
  background:rgba(220,38,38,0.02);
  color:var(--text);
}
.checkbox{display:flex;gap:8px;align-items:center;justify-content:flex-start;color:var(--muted);font-size:14px}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:10px;
  border:0;
  background:linear-gradient(135deg,var(--accent), var(--accent2));
  color:white;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(220,38,38,0.25);
  text-decoration:none;
  letter-spacing:0.02em;
}
.button.secondary{
  background:#6b7280;
  box-shadow:0 10px 22px rgba(107,114,128,0.2);
}
.button.ghost{
  background:transparent;
  color:var(--accent);
  border:1px solid rgba(220,38,38,0.3);
  box-shadow:none;
}
.button.wide{width:100%;justify-content:center}
.small{font-size:13px;color:var(--muted)}
.hr{height:1px;background:rgba(220,38,38,.08);margin:18px 0;border-radius:4px}
.notice{
  padding:12px 14px;
  border-radius:12px;
  background:#fff5f5;
  border:1px solid rgba(220,38,38,0.16);
  color:var(--muted);
  text-align:left;
}
.notice.success{
  background:rgba(34,197,94,0.08);
  border-color:rgba(34,197,94,0.25);
}
.notice.error{
  background:rgba(239,68,68,0.08);
  border-color:rgba(239,68,68,0.3);
}
.footer{margin-top:18px;text-align:center;color:var(--muted2);font-size:13px}
.badge,.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(220,38,38,0.16);
  font-weight:700;
  color:var(--accent);
  gap:6px;
}
.error{color:#ef4444}
.success{color:#22c55e}
.actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
.stack{display:grid;gap:10px}
.hidden{display:none !important}
code{
  background:rgba(220,38,38,0.07);
  padding:3px 7px;
  border-radius:6px;
  font-family:Consolas,monospace;
}


.footer-index {
  padding: 1rem 1.75rem 1.5rem;
  font-size: 0.72rem;
  color: var(--gris-jaspe);
  text-align: center;
  border-top: 1px solid var(--borde-suave);
  background: var(--blanco);
}

.generic-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  border-top-color: #2563eb;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
