body { min-height: 100vh; }

.login-body { display: flex; align-items: center; }
.login-wrap { width: 100%; max-width: 24rem; margin: auto; padding: 1rem; }

/* Checkerboard so a transparent background is visible in the preview. */
.qr-preview {
  display: inline-block;
  padding: .5rem;
  border-radius: .5rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9ecef 25%, transparent 25%, transparent 75%, #e9ecef 75%),
    linear-gradient(45deg, #e9ecef 25%, transparent 25%, transparent 75%, #e9ecef 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.qr-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  image-rendering: pixelated;
}
