/* site.css — loaded last. One photograph per screen (the page background); cards carry no photographs. */

/* ── Log in: glass card over the page photograph ── */
.lg-login,
.lg-login.home-login-card {
  background-image: none !important;
  background-color: rgba(10, 24, 48, 0.46) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lg-login__hero { background-image: none !important; }

/* ── Page photographs for the screens outside the log-in ── */
html:has(.buyer-card) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.4), rgba(8, 24, 50, 0.4)),
    url('/static/images/register/buyer-banner.jpg');
}
html:has(.tenant-card),
html:has(form[action$="/register/tenant/code"]) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.4), rgba(8, 24, 50, 0.4)),
    url('/static/images/register/tenant-banner.jpg');
}
html:has(.register-done) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.4), rgba(8, 24, 50, 0.4)),
    url('/static/images/register/register-done-bg.jpg');
}
html:has(.access-pass-shell) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.4), rgba(8, 24, 50, 0.4)),
    url('/static/images/login/login-hero.jpg');
}
html:has(.access-pass-done) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.4), rgba(8, 24, 50, 0.4)),
    url('/static/images/accesspass/done-bg.jpg');
}

/* ── Cards: no photographs inside ── */
.register-done-visual {
  background-image: none !important;
  min-height: 0 !important;
  padding-top: 40px !important;
}
.access-pass-shell--request,
.access-pass-shell--check,
.access-pass-shell--done,
.access-pass-done-shell {
  background-image: none !important;
  min-height: 0;
  padding-top: 0;
}
.access-pass-shell--request .access-pass-head,
.access-pass-shell--check .access-pass-head { padding-top: 0; }
.buyer-ap-card:first-of-type::before,
.buyer-access-pass-card:first-of-type::before { content: none !important; }

/* ── Notice pop-up: photograph in the header only ── */
.buyer-notice-modal .buyer-notice-modal__hero {
  background:
    linear-gradient(100deg, rgba(11, 25, 44, 0.9) 0%, rgba(11, 25, 44, 0.66) 55%, rgba(11, 25, 44, 0.3) 100%),
    url('/static/images/modal/notice-header.jpg') center / cover no-repeat !important;
}
.buyer-notice-modal .buyer-notice-modal__title { color: #fff !important; }
.buyer-notice-modal .buyer-notice-modal__period-label { color: #e5ecf5; }

/* ── Wording set in sentence case: no wide tracking on names and titles ── */
body:not(.home-page):not(.buyer-shell) .site-name.site-name-app { letter-spacing: 0.2px; }

/* Visitor pass screens use the log-in layout: give them their own photographs */
body.home-page:has(.access-pass-shell) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.5), rgba(8, 24, 50, 0.5)),
    url('/static/images/login/login-hero.jpg') !important;
}
body.home-page:has(.access-pass-done) {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.5), rgba(8, 24, 50, 0.5)),
    url('/static/images/accesspass/done-bg.jpg') !important;
}

/* Headings and names: normal tracking */
.form-card h2,
.access-pass-card h2,
.access-pass-head h2,
.access-pass-done h2,
.ds-ui-access-pass-done h2 { letter-spacing: 0 !important; }
