
<style>

  /* === Page base === */
  html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow: auto;
  }

  /* === Layout container === */
  #loginPage {
    /* full-viewport container that centers its content */
    min-height: 100vh;          /* fallback */
    min-height: 100dvh;         /* modern mobile safe unit */
    display: grid;
    justify-items: center;
    align-items: start;
    background: #f6f6f6;
    position: relative;
    padding: 24px 16px;
  }
  /* === Login iframe === */
  #loginIframe {
    /* fixed card size, responsive width up to 500px */
    display: block;
    width: 100%;
    max-width: 640px;
    height: 600px;
    border: 0;
  }
  @media (max-width: 768px) {
    #loginIframe { height: 460px; }
  }

  /* === Overlay (click-catcher) === */
  #loginOverlay {
    /* covers the container; hidden by default */
    position: absolute;
    inset: 0;
    background-color: rgba(246, 246, 246, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;              
    pointer-events: none;       
    align-items: center;
    justify-content: flex-start;
    padding-top: 150px;          /* moves dots vertically */
    flex-direction: column;
    gap: 16px;
    z-index: 1;                 
  }
  #loginOverlay.is-active {
    /* simple toggle to show + catch clicks */
    display: flex;
    pointer-events: all;
  }

  /* === Dots animation === */
  .dots { display: flex; gap: 15px; }
  .dot {
    width: 40px; height: 40px;
    background: orange;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
  }
  .dot:nth-child(2) { animation-delay: .3s; }
  .dot:nth-child(3) { animation-delay: .6s; }
  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
  }

  /* === Delayed message (no layout shift) === */
  #loginOverlayMsg {
    margin: 0;
    font-weight: 600;
    color: gray;
    visibility: hidden;
  }
  #loginOverlay.is-active #loginOverlayMsg.is-visible {
    visibility: visible;
  }
</style>
