/* La pantalla de entrar, a lo ChatGPT (12-oct-2026).
   Sólo la carga /entrar.php: registro, fichas y pago siguen con la puerta partida
   de siempre (`pm_puerta_partida`), así que nada de aquí puede romperlas.
   Blanco y negro, campos y botones en píldora, la letra del sistema, y a la
   izquierda un panel oscuro con el clip de Remotion (`clips/src/escenas/Entrar.tsx`
   del proyecto pm360-landing). En el teléfono el clip no se pinta: la pantalla es
   la app y el formulario va arriba del todo. */
:root {
  --gp-tinta: #0d0d0d;
  --gp-tinta2: #5d5d5d;
  --gp-flojo: #8f8f8f;
  --gp-borde: #d9d9d9;
  --gp-borde2: #ececec;
  --gp-fondo: #ffffff;
  --gp-suave: #f4f4f4;
  --gp-rojo: #d93025;
  --gp-verde: #10a37f;
  --gp-letra: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.gp-body {
  background: var(--gp-fondo); color: var(--gp-tinta); font: 400 15px/1.5 var(--gp-letra);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.gp-body .lab-franja { margin: 0; padding: 6px 12px; background: #ffe58a; text-align: center; font-size: 13px; }

.gp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ── El clip ── */
.gp-vitrina {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 12px;
}
.gp-vitrina-in {
  position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: #0d0d0d;
}
.gp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-marca {
  position: absolute; left: 28px; top: 24px; z-index: 1; color: #f4f4f5;
  font: 600 17px/1 var(--gp-letra); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px;
}
.gp-marca img { width: 28px; height: 28px; border-radius: 8px; display: block; }

/* ── El lado del formulario ── */
.gp-lado { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 24px 24px 20px; }
.gp-top { display: flex; justify-content: center; }
.gp-top img { height: 36px; width: auto; display: block; }
.gp-col {
  flex: 1; width: 100%; max-width: 340px; margin: 0 auto; padding: 40px 0;
  display: flex; flex-direction: column; justify-content: center;
  animation: gp-sube .5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes gp-sube { from { opacity: 0; transform: translateY(12px); } }

.gp-h1 { margin: 0 0 8px; text-align: center; font: 600 31px/1.2 var(--gp-letra); letter-spacing: -.02em; }
.gp-sub { margin: 0 0 28px; text-align: center; color: var(--gp-tinta2); font-size: 15px; }

.gp-aviso {
  margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  background: #fdecea; color: #a1281e;
}
.gp-aviso.bien { background: #e6f6f1; color: #0b6e55; }

/* Campo con el rótulo flotante: dentro mientras está vacío, se sube al borde al
   escribir o enfocar. El `placeholder=" "` no es un descuido: es lo que deja a
   `:placeholder-shown` saber si hay algo escrito. */
.gp-campo { position: relative; margin-bottom: 14px; }
.gp-campo input {
  width: 100%; height: 52px; padding: 0 20px; border: 1px solid var(--gp-borde); border-radius: 999px;
  background: #fff; color: var(--gp-tinta); font: 400 16px/1 var(--gp-letra); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gp-campo.con-ojo input { padding-right: 52px; }
.gp-campo input:focus { border-color: var(--gp-tinta); box-shadow: 0 0 0 3px rgba(13, 13, 13, .06); }
.gp-campo label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); padding: 0 5px; background: #fff;
  color: var(--gp-flojo); font-size: 16px; pointer-events: none; transition: all .15s ease;
}
.gp-campo input:focus + label,
.gp-campo input:not(:placeholder-shown) + label { top: 0; font-size: 12.5px; color: var(--gp-tinta2); }
.gp-campo input:focus + label { color: var(--gp-tinta); }
.gp-ojo {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border: 0; border-radius: 99px; background: none; color: var(--gp-flojo); cursor: pointer; display: grid; place-items: center;
}
.gp-ojo:hover { background: var(--gp-suave); color: var(--gp-tinta); }
.gp-ojo svg { width: 20px; height: 20px; }
.gp-ojo .tachado { display: none; }
.gp-ojo.viendo .tachado { display: inline; }

.gp-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 20px; font-size: 14px; }
.gp-recordar { white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--gp-tinta2); cursor: pointer; user-select: none; }
.gp-recordar input { width: 17px; height: 17px; margin: 0; accent-color: var(--gp-tinta); }
.gp a { color: var(--gp-tinta); text-decoration: none; font-weight: 500; }
.gp a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-fila a { color: var(--gp-tinta); white-space: nowrap; }

.gp-bt, .gp .pbt {
  position: relative; width: 100%; height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gp-tinta); color: #fff; font: 500 16px/1 var(--gp-letra);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s;
}
.gp-bt:hover, .gp .pbt:hover { background: #2b2b2b; }
.gp-bt:active, .gp .pbt:active { transform: scale(.985); }
/* La marca de «ya enviado» que pone `pm_puerta_js()`: el texto se apaga y gira
   una rueda en su sitio. */
.gp-bt.cargando, .gp .pbt.cargando, .gp .sp-bt.cargando { color: transparent !important; pointer-events: none; }
.gp-bt.cargando::after, .gp .pbt.cargando::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: gp-gira .7s linear infinite;
}
@keyframes gp-gira { to { transform: rotate(360deg); } }

.gp-alta { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--gp-tinta2); }
.gp-alta a { color: var(--gp-verde); }

/* El botón de Google y su separador salen de `pm_boton_google()` (inc/alta.php)
   con las clases de la puerta partida; aquí se visten a lo ChatGPT. */
.gp .sp-o {
  display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--gp-flojo);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
}
.gp .sp-o::before, .gp .sp-o::after { content: ""; flex: 1; height: 1px; background: var(--gp-borde2); }
.gp .sp-bt.fantasma {
  width: 100%; height: 52px; border: 1px solid var(--gp-borde); border-radius: 999px; background: #fff;
  color: var(--gp-tinta); font: 400 16px/1 var(--gp-letra); display: flex; align-items: center;
  justify-content: flex-start; gap: 14px; padding: 0 22px; text-decoration: none; transition: background .15s;
}
.gp .sp-bt.fantasma:hover { background: var(--gp-suave); text-decoration: none; }

.gp-pie { display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--gp-flojo); }
.gp-pie a { color: var(--gp-flojo); font-weight: 400; }

/* ── El paso del código (2FA): el marcado de siempre con piel nueva ── */
.gp .pform { margin: 0; }
.gp .plb { display: block; margin: 0 0 8px 6px; font-size: 14px; color: var(--gp-tinta2); }
.gp .pin {
  width: 100%; height: 56px; padding: 0 20px; border: 1px solid var(--gp-borde); border-radius: 999px; outline: none;
  font: 500 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .32em; text-align: center; margin-bottom: 14px;
}
.gp .pin:focus { border-color: var(--gp-tinta); box-shadow: 0 0 0 3px rgba(13, 13, 13, .06); }
.gp .pt { margin: 18px 0 0; font-size: 14px; color: var(--gp-tinta2); text-align: center; }
.gp .pmini { display: block; margin: 10px auto 0; font-size: 14px; color: var(--gp-tinta); font-weight: 500; }

/* ── Teléfono y tableta estrecha: sin clip, el formulario es la pantalla ── */
@media (max-width: 860px) {
  .gp { grid-template-columns: 1fr; }
  .gp-vitrina { display: none; }
  .gp-lado {
    padding: calc(14px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right))
             calc(16px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }
  .gp-top { justify-content: flex-start; }
  .gp-top img { height: 32px; }
  .gp-col { justify-content: flex-start; padding: 12vh 0 32px; max-width: 400px; }
  .gp-h1 { font-size: 28px; }
}
@media (max-width: 860px) and (max-height: 700px) { .gp-col { padding-top: 5vh; } }

@media (prefers-reduced-motion: reduce) {
  .gp-col { animation: none; }
  .gp-campo input, .gp-campo label { transition: none; }
}
