/* Páginas de acceso: entrar, instalación (setup) y cambio de contraseña.
   Usa los tokens y componentes de base.css (tarjeta, campo, boton, aviso, nota); aquí solo va el acomodo. */

.pagina-acceso {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
}

.acceso {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  box-sizing: border-box;
}

.tarjeta-acceso {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.tarjeta-acceso-ancha {
  max-width: 460px;
}

.marca-acceso {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.marca-acceso .marca {
  font-size: 22px;
  font-weight: 800;
  color: var(--texto);
  line-height: 1.2;
}

.marca-sub {
  font-size: 13px;
  color: var(--texto-suave);
}

.tarjeta-acceso .campo {
  margin: 0;
}

.tarjeta-acceso .campo .nota {
  margin: 4px 0 0;
  font-size: 12px;
}

.tarjeta-acceso input {
  min-height: 40px;
  box-sizing: border-box;
}

.tarjeta-acceso .aviso {
  margin: 0;
}

.boton-bloque {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.nota-acceso {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

.acceso-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.acceso-pie a {
  color: var(--acento);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.acceso-pie .boton {
  margin-left: auto;
}

.boton-tema-acceso {
  min-height: 36px;
}

.mono {
  font-family: var(--mono);
}

/* Error por campo (lo pinta peticion.js > marcarErrores). */
.error-campo {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--malo);
}

[aria-invalid="true"] {
  border-color: var(--malo) !important;
  outline-color: var(--malo);
}

@media (max-width: 420px) {
  .tarjeta-acceso {
    padding: 18px 16px;
  }
}
