/* ==========================================================================
   FIBRAMER — Portal de clientes (acceso)
   Hereda los tokens y componentes de ../assets/css/style.css
   ========================================================================== */

.pt-page {
  display: flex;
  min-height: calc(100vh - var(--nav-h));   /* respaldo */
  min-height: calc(100svh - var(--nav-h));  /* svh: excluye la barra del navegador móvil */
  padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pt-page__inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
}

/* Halos de fondo, en la misma clave que la portada */
.pt-halo {
  position: absolute; border-radius: 50%; z-index: -1;
  filter: blur(90px); pointer-events: none;
}
.pt-halo--1 {
  width: 560px; height: 560px; top: -240px; left: -180px;
  background: radial-gradient(circle, rgba(27, 107, 224, .5), transparent 68%);
}
.pt-halo--2 {
  width: 480px; height: 480px; bottom: -260px; right: -140px;
  background: radial-gradient(circle, rgba(92, 214, 240, .28), transparent 70%);
}

/* ---------- Columna de presentación ---------- */
.pt-intro h1 { margin-top: 12px; }
.pt-intro .lead { margin-top: 14px; max-width: 46ch; }

.pt-list { display: grid; gap: 14px; margin-top: clamp(22px, 3vw, 32px); }
.pt-list li {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  align-items: start;
  font-size: .9rem; color: var(--txt-2);
}
.pt-list__ic {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(8, 14, 28, .6); color: var(--cyan);
}
.pt-list__ic svg { width: 19px; height: 19px; }
.pt-list b { display: block; color: var(--txt); font-size: .95rem; font-weight: 600; }

/* ---------- Tarjeta de acceso ---------- */
.pt-card { width: 100%; }
.pt-card__head { text-align: center; margin-bottom: 26px; }
.pt-card__lock {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #03060E;
  box-shadow: var(--glow-cyan);
}
.pt-card__lock svg { width: 24px; height: 24px; }
.pt-card__head h2 {
  font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em;
}
.pt-card__head p { margin-top: 7px; font-size: .87rem; color: var(--txt-3); }

/* La grilla del formulario de acceso es de una sola columna */
.pt-form .form-grid { grid-template-columns: 1fr; margin-top: 0; }

.pt-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pt-label-row a {
  font-size: .74rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--cyan); text-decoration: underline; text-underline-offset: 3px;
}

/* Campo de contraseña con el botón de mostrar/ocultar adentro */
.pt-pass { position: relative; }
.pt-pass input { padding-right: 50px; }
.pt-pass__eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; color: var(--txt-3);
  transition: color .2s, background .2s;
}
.pt-pass__eye:hover { color: var(--cyan); background: rgba(255, 255, 255, .06); }
.pt-pass__eye svg { width: 19px; height: 19px; }

.pt-check {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; font-size: .84rem; color: var(--txt-2);
  cursor: pointer;
}
.pt-check input {
  width: 17px; height: 17px; flex: none; accent-color: var(--blue); cursor: pointer;
}

/* ---------- Aviso de error ---------- */
.pt-alert {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  margin-bottom: 20px; padding: 14px 16px;
  border: 1px solid rgba(255, 62, 68, .4);
  border-radius: var(--rad);
  background: rgba(228, 20, 27, .1);
  font-size: .85rem; color: var(--txt-2);
  animation: pt-shake .42s cubic-bezier(.36, .07, .19, .97);
}
.pt-alert[hidden] { display: none; }
.pt-alert svg { width: 22px; height: 22px; color: var(--red-2); margin-top: 1px; }
.pt-alert b { display: block; color: var(--txt); font-size: .9rem; margin-bottom: 3px; }
.pt-alert a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

@keyframes pt-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* Estado "verificando" del botón */
.pt-form .btn[data-busy="true"] { pointer-events: none; opacity: .72; }
.pt-spin {
  width: 17px; height: 17px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%;
  animation: pt-spin .7s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }

/* ---------- Ayuda al pie de la tarjeta ---------- */
.pt-help {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: .82rem; color: var(--txt-3);
}
.pt-help a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.pt-help__row { display: flex; align-items: center; gap: 9px; }
.pt-help__row svg { width: 17px; height: 17px; flex: none; color: var(--txt-3); }

/* ---------- Adaptación a pantallas angostas ---------- */
@media (max-width: 940px) {
  .pt-page { min-height: 0; }
  .pt-page__inner { grid-template-columns: 1fr; }
  .pt-intro { text-align: center; }
  .pt-intro .lead { margin-inline: auto; }
  .pt-list { max-width: 420px; margin-inline: auto; text-align: left; }
  .pt-card { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .pt-list { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-alert { animation: none; }
  .pt-spin { animation-duration: 1.6s; }
}
