:root {
  /* Marca StockStore365: azul marino + verde del logo */
  --bg0: #0b0e17; --bg1: #141824;
  --g0: #178a36; --g1: #6cc70a;
  --grad: linear-gradient(135deg, #6cc70a 0%, #2fa83a 55%, #178a36 100%);
  --text: #f1fbec; --muted: rgba(241,251,236,.74);
  --glass: rgba(255,255,255,.10); --glass2: rgba(255,255,255,.16);
  --stroke: rgba(255,255,255,.16);
  --shadow: 0 30px 95px rgba(0,0,0,.55);
  --radius: 24px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: grid; place-items: center; padding: 24px 14px; color: var(--text); overflow-x: hidden;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg0) 100%);
}
.bg-video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -2; pointer-events: none; filter: brightness(.7) contrast(.96); }
.bg-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 600px at 15% 10%, rgba(108,199,10,.18), transparent 60%), linear-gradient(135deg, rgba(11,14,23,.82), rgba(20,24,36,.62) 55%, rgba(23,138,54,.35)); }
.wrap { width: min(980px, 100%); display: grid; place-items: center; }

.card {
  width: min(470px, 100%); border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--glass2), var(--glass)); border: 1px solid var(--stroke);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: rise .5s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card::before { content: ''; position: absolute; inset: -1px; pointer-events: none; opacity: .55; background: linear-gradient(120deg, rgba(108,199,10,.22), transparent 40%, rgba(23,138,54,.18)); }
.card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); z-index: 2; }

/* Encabezado con el logo StockStore365 */
.hero-brand { position: relative; z-index: 1; padding: 30px 24px 18px; text-align: center; background: linear-gradient(180deg, rgba(20,24,36,.55), rgba(20,24,36,.15)); border-bottom: 1px solid rgba(255,255,255,.10); }
.hero-brand .brand-img { width: min(330px, 86%); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 10px 28px rgba(108,199,10,.28)); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 10px 34px rgba(108,199,10,.45)); } }
.hero-brand .seal { position: absolute; top: 14px; right: 14px; }
/* Demo pública: perfiles de acceso rápido */
.demo-box { margin-top: 16px; padding: 12px; border-radius: 16px; background: rgba(108,199,10,.10); border: 1px dashed rgba(108,199,10,.45); }
.demo-title { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: var(--g1); }
.demo-user { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.22); color: var(--text); cursor: pointer; text-align: left; font-family: inherit; transition: .15s; }
.demo-user:hover { border-color: var(--g1); background: rgba(23,138,54,.25); transform: translateY(-1px); }
.demo-user i { width: 20px; text-align: center; color: var(--g1); }
.demo-user span { display: flex; flex-direction: column; line-height: 1.2; }
.demo-user b { font-size: 13.5px; } .demo-user small { font-size: 11.5px; color: var(--muted); }
.demo-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.topbar { position: relative; z-index: 1; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; color: #052a28; background: linear-gradient(135deg, var(--g0), var(--g1)); box-shadow: 0 14px 40px rgba(23,138,54,.35); flex: 0 0 48px; }
.brand h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .3px; line-height: 1.05; }
.brand small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.seal { width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.16); color: rgba(234,255,249,.9); flex: 0 0 38px; }

.body { position: relative; z-index: 1; padding: 24px 24px 20px; }
.title { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.subtitle { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.field { margin: 12px 0; }
label { display: block; font-size: 14px; color: rgba(234,255,249,.85); margin-bottom: 6px; font-weight: 500; }
.control { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,249,.18); background: rgba(0,0,0,.24); transition: .18s ease; }
.control > i { opacity: .85; width: 16px; text-align: center; }
.control:focus-within { border-color: rgba(23,138,54,.7); box-shadow: 0 0 0 4px rgba(23,138,54,.2); transform: translateY(-1px); background: rgba(0,0,0,.3); }
input { width: 100%; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; font-family: inherit; }
input::placeholder { color: rgba(234,255,249,.5); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.eye { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 15px; }

.btn {
  width: 100%; margin-top: 18px; border: 0; cursor: pointer; padding: 13px 14px; border-radius: 14px; font: 700 15px Poppins, sans-serif; letter-spacing: .5px; color: #fff;
  background: var(--grad); box-shadow: 0 18px 52px rgba(47,168,58,.35); text-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 22px 64px rgba(23,138,54,.42); filter: brightness(1.05); }
.btn:disabled { opacity: .75; cursor: wait; transform: none; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.features span { font-size: 11.5px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--muted); }
.features i { color: var(--g1); margin-right: 3px; }
.foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: rgba(234,255,249,.6); }
.foot a { color: var(--g1); text-decoration: none; }

.swal2-popup { font-family: Poppins, sans-serif !important; }
@media (max-width: 420px) {
  .topbar { padding: 16px; } .body { padding: 20px 16px; }
  .brand h1 { font-size: 19px; } .brand small { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
