/*
 * Pantalla de bloqueo con biometría (js/lock.js): cubre toda la app (que queda inert) sobre la
 * superficie de marca, con el logo, el saludo, el botón de desbloqueo y la salida por contraseña.
 */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    max(var(--space-8), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--space-8), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  overflow: auto;
  color: var(--brand-text);
}

.lock-screen__content {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.lock-screen__logo {
  width: 140px;
  max-width: none;
  height: auto;
  max-height: none;
  margin-bottom: var(--space-4);
}

.lock-screen__title {
  font-size: 1.5rem;
  font-weight: var(--weight-black);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lock-screen__title:focus {
  outline: none;
}

.lock-screen__text {
  color: var(--brand-text-muted);
  line-height: 1.5;
}

.lock-screen__unlock {
  width: 100%;
  margin-top: var(--space-4);
}

.lock-screen__status {
  min-height: 1.5em;
  color: var(--brand-error);
  font-size: var(--text-small);
}

.lock-screen__password {
  min-height: var(--tap-min);
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--brand-text-muted);
  font: inherit;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.lock-screen__password:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 2px;
}

/* Mientras está bloqueada, la app de atrás no se desplaza. */
.is-locked body {
  overflow: hidden;
}
