:root {
  --bg1: #0ea5e9;
  --bg2: #22c55e;
  --card: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.25);
  --primary: #2563eb;
  --primary2: #1d4ed8;
  --danger: #ef4444;
  --success: #16a34a;
  --radius: 18px;
  --bg-desktop: url("/quienpidio/public/img/walpapers/desktoplogin.png");
--bg-mobile:  url("/quienpidio/public/img/walpapers/movillogin.png");

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Reemplaza tu body actual */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;

  /* ✅ Imagen primero (se ve nítida) */
  background-image: var(--bg-mobile);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 768px){
  body{
    background-image: var(--bg-desktop);
  }
}

/* ✅ Overlay SIN “ensuciar” la imagen */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35); /* ajusta 0.25 a 0.45 */
  z-index: -1; /* detrás del contenido */
  pointer-events: none;
}


/* Opcional: si tu imagen desktop es muy panorámica y quieres encuadre diferente */
@media (min-width: 992px){
  body{
    background-position: center center;
  }
}

.blob {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.14;
  z-index: -1;
}
.blob.one {
  top: -140px;
  left: -140px;
  background: #a78bfa;
}
.blob.two {
  bottom: -160px;
  right: -160px;
  background: #fb7185;
}

.wrap {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

/* panel neutral (sin roles) */
.panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  padding: 26px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.panel .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  width: fit-content;
  margin-bottom: 14px;
}

.panel h1 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 900;
}

.panel p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
  max-width: 52ch;
}

.features {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.feat i {
  color: #fff;
  font-size: 18px;
  margin-top: 1px;
}
.feat .t {
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
}
.feat .d {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.35;
}

/* card login */
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo.fallback {
  background: linear-gradient(135deg, #ff7b00, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.brand .txt .title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand .txt .sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.field {
  display: grid;
  gap: 8px;
}
label {
  font-size: 12px;
  color: #334155;
  font-weight: 900;
}

.input {
  position: relative;
  display: flex;
  align-items: center;
}
.input i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}
.input input {
  width: 100%;
  padding: 12px 44px 12px 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  outline: none;
  font-size: 14px;
  background: #fff;
  transition: 0.15s ease;
}
.input input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.toggle-pass {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #64748b;
  transition: 0.15s ease;
}
.toggle-pass:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.link {
  color: #2563eb;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.btn:active {
  transform: translateY(0px);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.msg {
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: none;
}
.msg.ok {
  display: block;
  color: var(--success);
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.18);
}
.msg.err {
  display: block;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

.foot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .wrap {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .panel {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .card {
    padding: 18px;
  }
  .panel {
    padding: 18px;
  }
}

/* ===== Modal bloqueo (repartidor) ===== */
.qp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.qp-modal.is-open {
  display: flex;
}

.qp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(6px);
}

.qp-modal__card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.35);
  overflow: hidden;
}

.qp-modal__top {
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.14),
    rgba(255, 123, 0, 0.1)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.qp-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.qp-modal__icon i {
  font-size: 20px;
}

.qp-modal__title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0;
}
.qp-modal__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}

.qp-modal__body {
  padding: 16px 18px;
}
.qp-reason {
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.qp-modal__actions {
  padding: 14px 18px 18px;
  display: grid;
  gap: 10px;
}
.qp-btn {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}
.qp-btn:hover {
  filter: brightness(0.99);
}

.qp-btn--danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.qp-btn--ghost {
  background: rgba(15, 23, 42, 0.04);
}


/* ===== Base ===== */
html, body { height: 100%; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100dvh;
  margin: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow-x: hidden;

  /* ✅ importante: crea stacking context y garantiza capas */
  position: relative;
  isolation: isolate; /* 🔥 esto arregla el z-index raro */
  color: #0f172a;
}

/* ===== Fondo (imagen nítida) ===== */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: var(--bg-mobile);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translateZ(0);
}

@media (min-width: 768px){
  body::before{
    background-image: var(--bg-desktop);
  }
}

/* ===== Overlay (solo oscurece, NO blur) ===== */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* ✅ overlay bonito sin “ensuciar” tanto */
  background:
    radial-gradient(900px 600px at 18% 18%, rgba(0,0,0,.25), transparent 55%),
    radial-gradient(900px 600px at 82% 30%, rgba(0,0,0,.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.50));
}

/* ===== Asegura que tu contenido esté arriba ===== */
.wrap{
  position: relative;
  z-index: 1;
}

/* ===== Blobs: si quieres mantenerlas SIN lavar el fondo ===== */
.blob{
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .10;
  z-index: 0;          /* 👈 antes estaba -1, cámbialo */
  pointer-events: none;
  mix-blend-mode: screen; /* se ve pro y no ensucia tanto */
}
.blob.one{ top:-160px; left:-160px; background:#a78bfa; }
.blob.two{ bottom:-180px; right:-180px; background:#fb7185; }

/* ===== Panel y Card: mejora visual sin matar el fondo ===== */
.panel{
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;

  /* ✅ glass sin blur agresivo */
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow);

  /* ⚠️ este blur es el que “difumina” la imagen detrás.
     Déjalo en 6-8 para que no se vea como niebla. */
  backdrop-filter: blur(8px);
}

.card{
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  /* ✅ más premium */
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: 0 18px 60px rgba(2,8,23,.30);
}

/* 🔥 micro-mejoras de legibilidad */
.panel h1{ text-shadow: 0 10px 30px rgba(0,0,0,.35); }
.panel p{ text-shadow: 0 10px 30px rgba(0,0,0,.25); }

.feat{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}

/* inputs un poquito más pro */
.input input{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.98);
}
.input input:focus{
  border-color: rgba(255,123,0,.55);
  box-shadow: 0 0 0 4px rgba(255,123,0,.18);
}

/* botón con tu naranja */
.btn{
  border: 1px solid rgba(255,123,0,.45);
  background: linear-gradient(135deg, #ff7b00, #ff4d00);
}
.panel{ backdrop-filter: none; }


/* Card login estilo glass */
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.16);      /* ✅ transparente */
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 25px 80px rgba(2,8,23,.30);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);   /* iOS/Safari */
}

/* Borde “shine” sutil */
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.35),
    rgba(255,255,255,.08),
    rgba(255,255,255,.18)
  );
  opacity:.35;
  mix-blend-mode: overlay;
}

/* Para que ::before no tape el contenido */
.card{ position: relative; overflow: hidden; }
.card > *{ position: relative; z-index: 1; }


.input input{
  background: rgba(255,255,255,.88); /* casi sólido para legibilidad */
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 25px rgba(2,8,23,.08);
}

.input input:focus{
  background: rgba(255,255,255,.95);
  border-color: rgba(255,123,0,.55); /* tu naranja */
  box-shadow: 0 0 0 4px rgba(255,123,0,.16);
}


:root{
  --primary: #ff7b00;
  --primary2: #ff5f00;
}

.btn{
  border: 1px solid rgba(255,123,0,.35);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 14px 35px rgba(255,123,0,.25);
}

.title, .sub, label, .foot {
  color: #fff;
}

.link {
  color: rgb(93, 204, 255);
}

.sub {
  color: #fff !important;
}
.qp-backhome{
  display:block;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-weight:700;
  margin-bottom: 14px;
  color: rgba(255,255,255,.9);
}

.qp-backhome:hover{
  color:#fff;
  transform: translateY(-1px);
}