/* Fondo animado de las pantallas de acceso (mismo efecto que el hero de la landing)
   y estilo del formulario. Lo usan admin.html y superadmin.html. */

@keyframes lgLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes lgRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes lgRise  { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes lgGlow  { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.08); } }

.lg-stage { position: relative; overflow: hidden; isolation: isolate; background: #030407; }

/* Pared de tiendas en movimiento */
.lg-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; perspective: 1200px; pointer-events: none; }
.lg-wall-inner {
  display: flex; flex-direction: column; gap: 24px; width: 100%;
  transform: rotateX(14deg) rotateZ(-3deg) scale(1.18) translateY(-30px);
  transform-origin: center top; opacity: 0.3; filter: saturate(1.2);
}
.lg-row-l, .lg-row-r { display: flex; gap: 24px; width: max-content; }
.lg-row-l { animation: lgLeft 48s linear infinite; }
.lg-row-r { animation: lgRight 54s linear infinite; }
.lg-wall-card { width: 300px; flex: 0 0 auto; background: #07090e; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; padding: 12px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; gap: 8px; }
.lg-wall-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.lg-wall-bar i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.lg-wall-bar span { font: 600 9px/1 ui-monospace, monospace; }
.lg-wall-img { height: 140px; border-radius: 12px; background-size: cover; background-position: center; background-color: #1e293b; }
.lg-wall-info { display: flex; justify-content: space-between; align-items: center; font: 800 12px/1 'Plus Jakarta Sans', system-ui, sans-serif; text-transform: uppercase; color: #fff; }

.lg-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(3, 4, 7, 0.95) 0%, rgba(3, 4, 7, 0.74) 46%, rgba(3, 4, 7, 0.18) 100%); }
.lg-glow { position: absolute; z-index: 1; left: 50%; top: 46%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(37, 211, 102, 0.2), transparent 70%); animation: lgGlow 7s ease-in-out infinite; }

/* Tarjeta de acceso */
.lg-card { position: relative; z-index: 2; width: 100%; max-width: 420px; padding: 34px 30px 26px; border-radius: 28px; background: rgba(12, 15, 23, 0.8); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.95), 0 0 70px -26px rgba(37, 211, 102, 0.25); color: #cbd5e1; animation: lgRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.lg-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 22px; }
.lg-logo { font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif; font-size: 26px; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.lg-logo b { color: #25d366; }
.lg-kicker { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: #34d399; font-weight: 700; }
.lg-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-top: 12px; }
.lg-sub { font-size: 12.5px; color: #94a3b8; line-height: 1.5; max-width: 300px; }

.lg-tabs { display: flex; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); margin-bottom: 20px; }
.lg-tab { flex: 1; padding: 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #94a3b8; transition: background 0.25s, color 0.25s; }
.lg-tab:hover { color: #fff; }
.lg-tab.is-active { background: rgba(255, 255, 255, 0.11); color: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.8); }

.lg-form { display: flex; flex-direction: column; gap: 14px; }
.lg-form.hidden { display: none; }
.lg-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5e1; margin-bottom: 7px; }
.lg-field { position: relative; }
.lg-field > i, .lg-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #64748b; pointer-events: none; }
#authView .lg-input, .lg-input {
  width: 100%; padding: 13px 14px 13px 42px; border-radius: 14px; font-size: 13px; font-weight: 500; color: #fff !important;
  background: rgba(255, 255, 255, 0.045) !important; border: 1px solid rgba(255, 255, 255, 0.11) !important; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.lg-input.plain { padding-left: 14px; }
.lg-input::placeholder { color: #64748b; }
#authView .lg-input:focus { border-color: #25d366 !important; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16); background: rgba(255, 255, 255, 0.07) !important; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: background 0.2s, color 0.2s; }
.lg-eye:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .lg-row2 { grid-template-columns: 1fr; } .lg-card { padding: 28px 22px 22px; } }

.lg-btn { position: relative; overflow: hidden; width: 100%; padding: 14px; border-radius: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; gap: 9px; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s, box-shadow 0.3s; }
.lg-btn.primary { background: linear-gradient(90deg, #25d366, #34d399); color: #04130a; box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.7); }
.lg-btn.primary:hover:not([disabled]) { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 38px -14px rgba(37, 211, 102, 0.8); }
.lg-btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s; }
.lg-btn.primary:hover::after { transform: translateX(120%); }
.lg-btn.ghost { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; border: 1px dashed rgba(255, 255, 255, 0.18); font-size: 12px; padding: 11px; }
.lg-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.lg-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.lg-note { padding: 11px 13px; border-radius: 14px; background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.25); color: #a7f3d0; font-size: 11.5px; line-height: 1.5; }
.lg-alert { padding: 11px 13px; border-radius: 14px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.45; margin-top: 14px; }
.lg-alert.hidden { display: none; }
.lg-alert.err { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35); color: #fda4af; }
.lg-alert.ok { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.lg-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: #64748b; }
.lg-foot a { color: #34d399; font-weight: 700; }
.lg-foot a:hover { text-decoration: underline; }
.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .lg-row-l, .lg-row-r, .lg-glow { animation: none !important; }
}

.lg-new { margin-top: 18px; text-align: center; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.lg-new a { color: #34d399; font-weight: 700; }
.lg-new a:hover { text-decoration: underline; }
