/* Sign-in always fits the window - no scrolling at any size (Nikos, 14 Nov 2026).
   The page is one column of header / main / footer filling the window; the card and the photo share the
   space left between header and footer, and on low windows the card tightens its spacing and type. */
html:root body.login-site:not(#_#_#_) { min-height: 100vh; min-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
html:root body.login-site:not(#_#_#_) > .site-header { flex: none; }
html:root body.login-site:not(#_#_#_) > .login-main { flex: 1 1 auto; min-height: 0; padding-top: 12px !important; padding-bottom: 12px !important; align-items: stretch !important; }
html:root body.login-site:not(#_#_#_) .login-main > .login-visual,
html:root body.login-site:not(#_#_#_) .login-main > .login-panel { min-height: 0 !important; height: auto !important; }
html:root body.login-site:not(#_#_#_) .login-panel > .login-card { height: 100%; min-height: 0 !important; display: flex; flex-direction: column; justify-content: center; }
html:root body.login-site:not(#_#_#_) > .site-footer { flex: none; margin-top: 0 !important; }

/* footer: one quiet line - company line left, three text links right */
html:root body.login-site:not(#_#_#_) .site-footer .footer-inner { padding-top: 10px !important; padding-bottom: 10px !important; min-height: 0 !important; align-items: center !important; }
html:root body.login-site:not(#_#_#_) .site-footer .footer-brand { gap: 2px !important; font-size: 11.5px !important; }
html:root body.login-site:not(#_#_#_) .site-footer .button { background: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; padding: 4px 8px !important; width: auto !important; font-size: 13px !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(201,155,69,.45); }

@media (max-height: 800px) {
  html:root body.login-site:not(#_#_#_) .site-header .header-inner { min-height: 72px !important; height: 72px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  html:root body.login-site:not(#_#_#_) .site-header .site-brand img { width: 64px !important; height: 64px !important; }
  html:root body.login-site:not(#_#_#_) .site-header .button,
  html:root body.login-site:not(#_#_#_) .site-header .locale-button,
  html:root body.login-site:not(#_#_#_) .site-header .theme-toggle,
  html:root body.login-site:not(#_#_#_) .site-header button { min-height: 34px !important; height: 34px !important; }
  html:root body.login-site:not(#_#_#_) .login-card { padding: 22px 28px !important; }
  html:root body.login-site:not(#_#_#_) .login-card h1 { font-size: 34px !important; line-height: 1.12 !important; margin-top: 4px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .access-status { padding: 8px 12px !important; margin-top: 12px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .access-detail { font-size: 12.5px !important; margin-top: 2px !important; line-height: 1.4 !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.form-field, .passkey-actions, .login-request, .login-followup-actions, .public-faq) { margin-top: 10px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .passkey-actions { gap: 8px !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.auth-choice, .login-followup-actions .button) { min-height: 36px !important; height: 36px !important; }
  html:root body.login-site:not(#_#_#_) .login-intro h2 { font-size: 30px !important; }
}
@media (max-height: 620px) {
  html:root body.login-site:not(#_#_#_) .site-header .header-inner { min-height: 60px !important; height: 60px !important; }
  html:root body.login-site:not(#_#_#_) .site-header .site-brand img { width: 52px !important; height: 52px !important; }
  html:root body.login-site:not(#_#_#_) .login-card { padding: 16px 26px !important; }
  html:root body.login-site:not(#_#_#_) .login-card h1 { font-size: 28px !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.form-field, .passkey-actions, .login-request, .login-followup-actions, .public-faq, .access-status) { margin-top: 8px !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.auth-choice, .login-followup-actions .button, #ownerEmail) { min-height: 34px !important; height: 34px !important; }
}

/* phones and narrow windows: the card alone, no photo above it */
@media (max-width: 760px) {
  html:root body.login-site:not(#_#_#_) .login-main { display: flex !important; flex-direction: column; padding-left: 16px !important; padding-right: 16px !important; }
  html:root body.login-site:not(#_#_#_) .login-main > .login-visual { display: none !important; }
  html:root body.login-site:not(#_#_#_) .login-main > .login-panel { flex: 1 1 auto; width: 100% !important; }
  html:root body.login-site:not(#_#_#_) .site-footer .footer-inner { flex-direction: column !important; gap: 4px !important; text-align: center; }
  html:root body.login-site:not(#_#_#_) .site-footer nav { justify-content: center !important; }
}

/* header and footer take only what they show */
html:root body.login-site:not(#_#_#_) > .site-header { height: auto !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
html:root body.login-site:not(#_#_#_) .site-footer .footer-brand { display: block !important; padding-left: 0 !important; font-size: 11px !important; line-height: 1.5 !important; }
html:root body.login-site:not(#_#_#_) .site-footer .footer-brand span { display: inline !important; }
html:root body.login-site:not(#_#_#_) .site-footer .footer-brand span + span::before { content: ' · '; }
html:root body.login-site:not(#_#_#_) .site-footer .footer-brand::before { display: none !important; }
@media (max-width: 760px) {
  /* phones: logo row, then the three buttons spanning the card width (home-2026.js lines them up with the card) */
  html:root body.login-site:not(#_#_#_) .site-header .header-inner { min-height: 0 !important; height: auto !important; padding-top: 6px !important; padding-bottom: 8px !important; row-gap: 6px !important; }
  html:root body.login-site:not(#_#_#_) .site-header .site-brand img { width: 36px !important; height: 36px !important; }
  html:root body.login-site:not(#_#_#_) .site-header .header-actions > * { min-height: 34px !important; height: 34px !important; }
  html:root body.login-site:not(#_#_#_) .login-main > .login-panel { padding: 0 !important; }
  html:root body.login-site:not(#_#_#_) .login-card { padding: 20px 18px !important; justify-content: flex-start !important; }
  html:root body.login-site:not(#_#_#_) .login-card h1 { font-size: 30px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .login-lead { margin-top: 8px !important; font-size: 14px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .access-status { padding: 8px 12px !important; margin-top: 12px !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.form-field, .passkey-actions, .login-request, .login-followup-actions, .public-faq) { margin-top: 10px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .login-followup-actions { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .login-followup-actions .button { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; min-height: 40px !important; height: 40px !important; padding: 0 6px !important; font-size: 13px !important; white-space: nowrap !important; }
}
@media (max-width: 760px) and (max-height: 700px) {
  html:root body.login-site:not(#_#_#_) .login-card .login-lead { display: none !important; }
  html:root body.login-site:not(#_#_#_) .login-card h1 { font-size: 26px !important; }
}
@media (max-width: 760px) {
  html:root body.login-site:not(#_#_#_) .site-footer .footer-inner { padding: 6px 12px !important; gap: 2px !important; }
  html:root body.login-site:not(#_#_#_) .site-footer .footer-brand { font-size: 10.5px !important; line-height: 1.4 !important; }
  html:root body.login-site:not(#_#_#_) .site-footer .button { padding: 2px 6px !important; font-size: 12.5px !important; }
}
@media (max-width: 760px) and (max-height: 700px) {
  html:root body.login-site:not(#_#_#_) .login-card .public-faq:not([open]) { padding-top: 6px !important; padding-bottom: 0 !important; }
  html:root body.login-site:not(#_#_#_) .login-card .public-faq:not([open]) > summary { padding: 4px 0 !important; min-height: 0 !important; }
  html:root body.login-site:not(#_#_#_) .login-card .login-followup-actions .button { min-height: 36px !important; height: 36px !important; }
  html:root body.login-site:not(#_#_#_) .login-card .access-status { padding: 6px 10px !important; }
}
@media (max-width: 760px) and (max-height: 660px) {
  html:root body.login-site:not(#_#_#_) .login-card { padding: 14px 16px !important; }
  html:root body.login-site:not(#_#_#_) .login-card :is(.form-field, .passkey-actions, .login-request, .login-followup-actions, .public-faq, .access-status) { margin-top: 8px !important; }
}

/* "What happens the first time?": opened, it covers the card instead of making it taller;
   clicking the question again closes it. */
html:root body.login-site:not(#_#_#_) .login-card { position: relative; }
html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] { position: absolute; inset: 0; z-index: 5; margin: 0 !important; padding: 28px 30px; background: inherit; background-color: rgb(12, 31, 51); border-radius: inherit; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
html:root[data-theme=light] body.login-site:not(#_#_#_) .login-card .public-faq[open] { background-color: #FFFFFF; }
html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] > summary { font-weight: 600; }
html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] > summary::after { content: '  ×'; opacity: .7; }
html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] p { margin: 0 !important; font-size: 14px; line-height: 1.55; }
@media (max-width: 760px) {
  html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] { padding: 16px; gap: 8px; }
  html:root body.login-site:not(#_#_#_) .login-card .public-faq[open] p { font-size: 13px; line-height: 1.45; }
}
