/* ============================================================================
   WireVet — pantalla de ingreso (/iniciar-sesion)

   Escritorio (>= 900 px): formulario a la izquierda, video a la derecha con los
   logos y el lema encima (propuesta "A · Dividida").
   Celular (< 900 px): franja de video arriba con los logos en una placa blanca y
   el formulario debajo (propuesta "C · Tarjeta").
   ========================================================================== */

:root {
  --wvl-navy: #1f4f86;
  --wvl-navy-2: #173d69;
  --wvl-teal: #4fa3b3;
  --wvl-ink: #1a2a3f;
  --wvl-muted: #62728a;
  --wvl-line: #d9e1ea;
  --wvl-soft: #f4f7fa;
  --wvl-ok: #2f8a57;
  --wvl-warn: #c98a12;
  --wvl-error: #c0392b;
  --wvl-f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wvl-f-disp: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

html, body { height: 100%; }

body.wv-login {
  margin: 0;
  background: #fff;
  color: var(--wvl-ink);
  font-family: var(--wvl-f-body);
  font-size: 15px;
  line-height: 1.55;
}

.wv-acceso {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

/* --- Vitrina con video ---------------------------------------------------- */
.wv-acceso__vitrina {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--wvl-navy-2) url("../img/bgLogin3.jpg") center / cover no-repeat;
}

.wv-acceso__vitrina video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wv-acceso__vitrina::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(15, 40, 70, .25), rgba(15, 40, 70, .75));
}

.wv-acceso__sobre {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px;
}

.wv-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--wvl-ink);
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 100%;
}

.wv-logos img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.wv-logos__sep {
  width: 1px;
  height: 30px;
  background: var(--wvl-line);
}

/* Logos dentro del panel: solo en celular, donde no hay video */
.wv-logos--panel {
  justify-content: center;
  align-self: center;
  padding: 0;
  background: none;
  margin-bottom: 8px;
}

.wv-logos--panel img { height: 44px; max-width: 170px; }

.wv-lema { display: none; }

.wv-lema h2 {
  font-family: var(--wvl-f-disp);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.02;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

.wv-lema p {
  margin: 10px 0 0;
  font-size: 1rem;
  opacity: .9;
  max-width: 44ch;
}

.wv-lema__texto {
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity .45s ease, transform .45s ease;
}

.wv-lema__texto.is-saliendo {
  opacity: 0;
  transform: translateY(6px);
}

.wv-lema__puntos {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.wv-lema__puntos span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background-color .3s ease, width .3s ease;
}

.wv-lema__puntos span.is-activo {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

.wv-apps {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.wv-apps__titulo {
  margin: 0 0 10px !important;
  font-size: .82rem !important;
  font-weight: 600;
  letter-spacing: .02em;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge { display: inline-flex; border-radius: 9px; }
.store-badge img { height: 44px; width: auto; display: block; }
.store-badge:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* --- Panel del formulario ------------------------------------------------- */
.wv-acceso__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 22px 96px;
  background: #fff;
}

.wv-acceso__caja {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wv-acceso__eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wvl-teal);
  font-weight: 700;
  margin: 0 0 -10px;
}

.wv-acceso__titulo {
  font-family: var(--wvl-f-body);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--wvl-ink);
}

.wv-acceso__sub {
  display: none;
  margin: -12px 0 0;
  color: var(--wvl-muted);
  font-size: .92rem;
}

.wv-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.wv-campo label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--wvl-ink);
}

.wv-campo input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--wvl-line);
  border-radius: 9px;
  background: #fff;
  color: var(--wvl-ink);
}

.wv-campo input:focus {
  outline: none;
  border-color: var(--wvl-teal);
  box-shadow: 0 0 0 3px rgba(79, 163, 179, .22);
}

.wv-clave { position: relative; }
.wv-clave input { padding-right: 46px; }

.wv-clave__ver {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--wvl-muted);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wv-clave__ver:hover { color: var(--wvl-ink); }

.wv-captcha { min-height: 78px; }

.wv-olvido {
  display: flex;
  justify-content: flex-end;
  order: 10;
}

.wv-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--wvl-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wv-btn {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--wvl-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color .15s ease;
}

/* login/js/main.js cambia la clase del botón según el estado del ingreso */
.wv-btn.btn-primary { background: var(--wvl-navy); }
.wv-btn.btn-primary:hover { background: var(--wvl-navy-2); }
.wv-btn.btn-warning { background: var(--wvl-warn); }
.wv-btn.btn-success { background: var(--wvl-ok); }
.wv-btn.btn-danger { background: var(--wvl-error); }
.wv-btn:disabled { cursor: progress; opacity: .95; }

.wv-link:focus-visible,
.wv-btn:focus-visible,
.wv-clave__ver:focus-visible,
.wv-whatsapp:focus-visible {
  outline: 2px solid var(--wvl-teal);
  outline-offset: 2px;
}

.wv-legal {
  border-top: 1px solid var(--wvl-line);
  padding-top: 14px;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--wvl-muted);
}

.wv-legal p { margin: 0 0 6px; }
.wv-legal p:last-child { margin: 0; }

.wv-legal a {
  color: var(--wvl-muted);
  font-weight: 600;
  text-decoration: underline;
}

.wv-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.wv-whatsapp img { width: 56px; height: 56px; }

/* --- Escritorio ----------------------------------------------------------- */
@media (min-width: 900px) {
  .wv-acceso {
    grid-template-columns: minmax(440px, 44%) 1fr;
    grid-template-rows: 1fr;
  }

  .wv-acceso__panel {
    order: 1;
    justify-content: center;
    padding: 40px;
  }

  .wv-acceso__vitrina { display: block; order: 2; }


  .wv-acceso__vitrina::after {
    background: linear-gradient(180deg, rgba(23, 61, 105, .15) 0%, rgba(23, 61, 105, .55) 55%, rgba(15, 40, 70, .9) 100%);
  }

  .wv-acceso__sobre {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 40px;
  }

  .wv-logos--panel { align-self: flex-start; gap: 18px; margin-bottom: 18px; }
  .wv-logos--panel img { height: 50px; max-width: 200px; }
  .wv-logos--panel .wv-logos__sep { height: 40px; }

  .wv-lema { display: block; }

  .wv-acceso__eyebrow { display: none; }
  .wv-acceso__titulo { font-size: 1.7rem; }
  .wv-acceso__sub { display: block; }

  .wv-olvido { order: 0; }
}

@media (max-width: 380px) {
  .wv-captcha { transform: scale(.9); transform-origin: left top; }
}

@media (prefers-reduced-motion: reduce) {
  .wv-acceso__vitrina video { display: none; }
  .wv-lema__texto { transition: none; }
}
