/* ==========================================================================
   Auth pages: QA fixes (loaded after styles.css by include/__auth_head)
   ========================================================================== */

/* The form pane grows with its form instead of scrolling inside a box.
   From xl up the pane used to be locked to the window with the field column
   as its own scroller; a step taller than the window (register step 1 with
   an admin file field, a short window) ran into the copyright line at the
   foot of the pane. Now the page scrolls, the footer always follows the
   form, and the board stays in view by sticking to the top. */
@media (min-width: 1200px) {
  .half-authpage.auth-modern {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    align-items: flex-start;
  }
  .half-authpage.auth-modern .authOne {
    height: auto;
    min-height: calc(100vh - 28px);
  }
  .half-authpage.auth-modern .auth-contents {
    height: auto;
    min-height: calc(100vh - 28px);
  }
  .half-authpage.auth-modern .auth-contents .contents {
    flex: 1 0 auto;
    min-height: auto;
    overflow: visible;
  }
  .half-authpage.auth-modern .auth-contents .as-foot {
    flex-shrink: 0;
    padding-top: 16px;
  }
  .half-authpage.auth-modern .auth-brand {
    position: sticky;
    top: 14px;
    height: calc(100vh - 28px);
    min-height: 0;
  }
  .half-authpage.auth-modern .auth-brand .ab-panel {
    min-height: 0;
  }
}

/* The board image is the whole card (the template's transactions card, or the
   admin's upload): no second frame, padding or ground around it. It keeps the
   card's width and its own proportions, and never runs taller than the board. */
.half-authpage.auth-modern .auth-brand .ab-mock.is-image {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
}
.half-authpage.auth-modern .auth-brand .ab-mock img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 16px;
}

/* GDPR banner: its rules live in landing.css, which the auth pages do not
   load, so the banner sat unstyled in the flow under the page. */
.hp-cookie {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 560px;
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--dbk-surface, #fff);
  color: var(--dbk-text, #0f172a);
  border: 1px solid var(--dbk-border, rgba(15, 23, 42, .08));
  box-shadow: var(--dbk-elev-3, 0 18px 50px rgba(15, 23, 42, .18));
}
.hp-cookie[hidden] { display: none; }
.hp-cookie-t { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; }
.hp-cookie-p { margin: 0; font-size: 14px; color: var(--dbk-muted, #64748b); }
.hp-cookie-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
