/* ═══════════════════════════════════════════════════════════════════
   SPLASH "OLA LÍQUIDA" DEL LOGIN (admin y barbero)
   Pegar AL FINAL de src/css/admin.css.
   Colores del login: azul #1a56db · rojo #c41e3a · navy #0f172a · fondo blanco.
   Lo crea y lo quita authenticacion.js (clase .lxs); dura ~3,5 s y se ve una vez por carga.
   ═══════════════════════════════════════════════════════════════════ */

.lxs { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: #ffffff; cursor: pointer;
  animation: lxsHide .6s cubic-bezier(.4,0,.2,1) 2.9s forwards; }

.lxs__logo { position: relative; z-index: 5; width: 96px; height: 96px; border-radius: 24px; background: #0b1220;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  box-shadow: 0 16px 40px rgba(15,23,42,.28);
  animation: lxsLogo .9s cubic-bezier(.16,1,.3,1) forwards; }

.lxs__logo svg { width: 66px; height: 66px; }

.lxs__brand { position: relative; z-index: 5; margin-top: 22px; text-align: center; opacity: 0; transform: translateY(16px);
  animation: lxsBrand .7s cubic-bezier(.16,1,.3,1) 1.1s forwards; }

.lxs__name { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #0f172a;
  animation: lxsInk 0s linear 1.75s forwards; }

.lxs__sub { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 5px; color: #64748b;
  font-size: .68rem; font-weight: 600; letter-spacing: .32em; animation: lxsInkSub 0s linear 1.75s forwards; }

.lxs__sub::before, .lxs__sub::after { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .55; }

.lxs__wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; overflow: hidden; z-index: 2;
  animation: lxsFill 1.8s cubic-bezier(.22,1,.36,1) .5s forwards; }

.lxs__wave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 190px; animation: lxsSlide 2.6s linear infinite; }

.lxs__wave .w-back { fill: #c41e3a; opacity: .9; }

.lxs__wave .w-front { fill: #1a56db; }

.lxs__wave::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 150px; background: #1a56db; }

@keyframes lxsLogo { from { opacity: 0; transform: scale(.65) translateY(20px); } to { opacity: 1; transform: none; } }

@keyframes lxsBrand { to { opacity: 1; transform: none; } }

@keyframes lxsFill { from { height: 0; } to { height: 100%; } }

@keyframes lxsSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@keyframes lxsInk { to { color: #ffffff; } }

@keyframes lxsInkSub { to { color: rgba(255,255,255,.8); } }

@keyframes lxsHide { to { opacity: 0; visibility: hidden; } }

.login-card.lx.lx-enter { animation: lxEnter .85s cubic-bezier(.16,1,.3,1) 3s both !important; }

@keyframes lxEnter { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .lxs { display: none; }

.login-card.lx.lx-enter { animation: none !important; } }

/* ═══════════════════════════════════════════════════════════════════
   MODAL DE NUEVA CONTRASEÑA — rpm-* (Reset Password Modal)
   Identidad Barbería: Terracota · Crema · Dorado · Marrón cálido
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.rpm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 12, 6, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.rpm-overlay.is-open { opacity: 1; }

/* ── Tarjeta ── */
.rpm-card {
  width: 100%;
  max-width: 420px;
  background: #faf8f4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.07),
    0 12px 32px rgba(42,20,8,0.22),
    0 0 0 1px rgba(181,96,58,0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.rpm-overlay.is-open .rpm-card {
  transform: translateY(0) scale(1);
}

/* ── Cabecera ── */
.rpm-header {
  position: relative;
  padding: 28px 24px 22px;
  background: linear-gradient(135deg, #8b3a1e 0%, #b5603a 55%, #c59b27 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.rpm-header__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 2px,
    transparent 2px,
    transparent 14px
  );
  pointer-events: none;
}
.rpm-header__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.rpm-header__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.rpm-header__icon--mail { color: #fff; }
.rpm-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.rpm-close:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.rpm-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rpm-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rpm-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpm-header__name {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.rpm-header__sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

/* ── Cuerpo ── */
.rpm-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Título ── */
.rpm-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rpm-lock-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f5f0e8, #ebe5da);
  border: 1.5px solid #d8c9b4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5603a;
  margin-top: 2px;
}
.rpm-lock-icon svg { width: 18px; height: 18px; }
.rpm-title {
  font-family: "Oswald", "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c2420;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.rpm-subtitle {
  font-size: 0.82rem;
  color: #7a6355;
  margin: 0;
  line-height: 1.45;
}

/* ── Campos ── */
.rpm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rpm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a4033;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.rpm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #d8c9b4;
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.rpm-input-wrap:focus-within {
  border-color: #b5603a;
  box-shadow: 0 0 0 3px rgba(181,96,58,0.15);
}
.rpm-input-wrap--error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}
.rpm-input-wrap--ok {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12) !important;
}
.rpm-input-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: 12px;
  color: #b5603a;
  pointer-events: none;
}
.rpm-input {
  flex: 1;
  padding: 11px 10px 11px 8px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: #2c2420;
  font-family: inherit;
}
.rpm-input::placeholder { color: #b0998a; }
.rpm-eye {
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.15s, transform 0.15s;
}
.rpm-eye:hover { color: #0f172a; background: none; transform: scale(1.15); }
.rpm-eye svg { width: 20px; height: 20px; stroke: currentColor; pointer-events: none; }

/* ── Barra de fuerza ── */
.rpm-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}
.rpm-strength__bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.rpm-strength__seg {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #e5d9cc;
  transition: background 0.25s ease;
}
.rpm-strength__seg.is-filled { opacity: 1; }
.rpm-strength__label {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
  transition: color 0.25s;
}

/* ── Botón principal ── */
.rpm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #8b3a1e 0%, #b5603a 60%, #c59b27 100%);
  background-size: 200% 100%;
  box-shadow: 0 4px 14px rgba(139,58,30,0.4);
  transition: background-position 0.4s ease, transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.rpm-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.rpm-btn:hover:not(:disabled)::after { transform: translateX(100%); }
.rpm-btn:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 6px 20px rgba(139,58,30,0.5);
  transform: translateY(-1px);
}
.rpm-btn:active:not(:disabled) { transform: translateY(0); }
.rpm-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.rpm-btn__icon { width: 17px; height: 17px; flex-shrink: 0; }
.rpm-actions { display: flex; gap: 10px; margin-top: 6px; }
.rpm-actions .rpm-btn { flex: 1; }
.rpm-btn--secondary {
  color: #5a4033;
  background: #f1e8dc;
  box-shadow: none;
}
.rpm-btn--secondary::after { display: none; }
.rpm-btn--secondary:hover:not(:disabled) {
  color: #2c2420;
  background: #e8dccc;
  box-shadow: 0 3px 10px rgba(44, 36, 32, 0.1);
}
.rpm-email-note {
  margin: -7px 1px 0;
  color: #8b7667;
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ── Spinner ── */
.rpm-spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rpm-spin 0.7s linear infinite;
}
@keyframes rpm-spin { to { transform: rotate(360deg); } }

/* ── Mensajes de estado ── */
.rpm-status-slot { min-height: 0; }
.rpm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
  animation: rpm-fadeIn 0.22s ease;
}
@keyframes rpm-fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rpm-status--error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rpm-status--info   { background: #fefbf0; color: #854d0e; border: 1px solid #fde68a; }
.rpm-status--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Pie ── */
.rpm-footer {
  padding: 12px 24px;
  background: linear-gradient(to right, #f5f0e8, #ebe5da);
  border-top: 1px solid #d8c9b4;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #9a7b6a;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.rpm-footer svg { width: 13px; height: 13px; flex-shrink: 0; color: #b5603a; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .rpm-card { border-radius: 16px; }
  .rpm-header { padding: 22px 18px 18px; }
  .rpm-body { padding: 18px 18px 16px; gap: 14px; }
  .rpm-footer { padding: 10px 18px; }
  .rpm-header__name { font-size: 1.45rem; }
  .rpm-close { width: 32px; height: 32px; flex-basis: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .rpm-overlay, .rpm-card, .rpm-btn, .rpm-btn::after, .rpm-status { transition: none; animation: none; }
}

