/* Ingreso: login, huella o Face ID y "olvidé mi contraseña". Usa los tokens de app.css. */
body.acceso {
  min-height: 100vh; min-height: 100dvh; margin: 0; display: grid; place-items: center; padding: 24px 16px;
  box-sizing: border-box; background: var(--fondo); color: var(--texto); font-family: var(--fuente);
  position: relative; overflow-x: hidden;
}
/* La media luna del logo, grande y suave detrás de la tarjeta */
body.acceso::before {
  content: ""; position: fixed; width: 720px; height: 720px; border-radius: 50%; top: -260px; right: -300px;
  box-shadow: inset 70px -40px 0 0 var(--acento-suave); pointer-events: none; z-index: 0;
}
.acc-tarjeta {
  position: relative; z-index: 1; width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--borde);
  border-radius: 22px; padding: 32px 24px 24px; box-shadow: 0 20px 50px -24px rgba(26, 25, 24, 0.28);
  animation: accEntra 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes accEntra { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.acc-logo { display: block; margin: 0 auto 26px; max-width: 210px; width: 70%; height: auto; }

.acc-saludo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.acc-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--menu-jefatura); color: #fff; font: 700 18px/1 var(--fuente);
}
.acc-saludo strong { display: block; font-size: 19px; line-height: 1.2; }
.acc-saludo a { font-size: 14px; color: var(--texto-ter); text-decoration: none; }
.acc-saludo a:hover { color: var(--acento); }

.acc-huella {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 16px; background: var(--menu-jefatura); color: #fff; font: 700 17px var(--fuente);
  cursor: pointer; transition: transform 0.12s, background-color 0.2s;
}
.acc-huella:active { transform: scale(0.98); }
.acc-huella svg { flex: none; }
.acc-huella.leyendo svg { animation: accLatido 1s ease-in-out infinite; }
@keyframes accLatido { 50% { transform: scale(1.12); opacity: 0.7; } }
.acc-o { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--texto-ter); font-size: 13px; }
.acc-o::before, .acc-o::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

.acc-campo { position: relative; margin-bottom: 12px; }
.acc-campo input {
  width: 100%; box-sizing: border-box; height: 56px; padding: 22px 48px 6px 16px; border: 1.5px solid var(--borde-fuerte);
  border-radius: 14px; background: #fff; font: 500 16px var(--fuente); color: var(--texto); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acc-campo input:focus { border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave); }
/* La etiqueta flota hacia arriba al escribir: no hace falta texto aparte */
.acc-campo label {
  position: absolute; left: 17px; top: 18px; font-size: 16px; color: var(--texto-ter); pointer-events: none;
  transition: top 0.15s, font-size 0.15s, color 0.15s;
}
.acc-campo input:focus + label, .acc-campo input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; }
.acc-campo input:focus + label { color: var(--acento); }
.acc-ojo {
  position: absolute; right: 6px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none;
  color: var(--texto-ter); cursor: pointer; display: grid; place-items: center;
}
.acc-ojo:hover { background: var(--hundido); color: var(--texto); }
.acc-ojo .tachado { display: none; }
.acc-ojo[aria-pressed="true"] .tachado { display: inline; }

.acc-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; font-size: 14px; }
.acc-recordar { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--texto-sec); }
.acc-recordar input { width: 18px; height: 18px; accent-color: var(--acento); margin: 0; }
.acc-fila a, .acc-enlace { color: var(--texto-sec); text-decoration: none; font-weight: 600; }
.acc-fila a:hover, .acc-enlace:hover { color: var(--acento); }

.acc-boton {
  width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--acento); color: #fff;
  font: 700 17px var(--fuente); cursor: pointer; transition: background-color 0.2s, transform 0.12s;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.acc-boton:hover { background: var(--acento-hover); color: #fff; text-decoration: none; }
.acc-boton:active { transform: scale(0.98); }
.acc-boton.secundario { background: var(--hundido); color: var(--texto); }
.acc-boton.secundario:hover { background: var(--borde); color: var(--texto); }
.acc-boton.wa { background: #1FA855; }
.acc-boton.wa:hover { background: #178A45; }

.acc-error {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px;
  background: #FDECEC; color: #A3261F; font-size: 14px; font-weight: 600;
}
.acc-error[hidden] { display: none; }
.acc-tarjeta.temblor { animation: accTiembla 0.4s; }
@keyframes accTiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Ofrecer huella / Olvidé */
.acc-icono {
  width: 96px; height: 96px; margin: 4px auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento-suave); color: var(--acento);
}
.acc-icono.wa { background: #E3F6EA; color: #1FA855; }
.acc-titulo { margin: 0 0 22px; text-align: center; font: 700 22px/1.25 var(--fuente); letter-spacing: -0.01em; }
.acc-acciones { display: grid; gap: 10px; }
.acc-pie { margin-top: 18px; text-align: center; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .acc-tarjeta, .acc-huella.leyendo svg, .acc-tarjeta.temblor { animation: none; }
}
