/* ================================================================
   image-slots.css  v2 — 순수 배경 이미지 슬롯 전용
   ----------------------------------------------------------------
   ✔ 순수 배경 hero 슬롯만 유지 (12개)
   ✘ 아이콘, KPI 카드 배경, empty 일러스트, 워터마크 모두 제거
   ----------------------------------------------------------------
   이미지 파일은 아래 슬롯 파일명 그대로 저장:
      public/static/images/<폴더>/<파일명>
   파일이 없어도 레이아웃은 그대로 유지됨.
   기능 코드(EJS·JS·DB) 변경 0.
   ================================================================ */

/* ═══ 01. 로그인 전체 배경 (PC) ═══ */
body.home-page {
  background-image:
    linear-gradient(rgba(8, 24, 50, 0.55), rgba(8, 24, 50, 0.55)),
    url('/static/images/login/login-fullbg.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* ═══ 02. 로그인 카드 좌측 hero ═══ */
.lg-login__hero {
  background-image: url('/static/images/login/login-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  overflow: hidden;
}

/* ═══ 03. 로그인 전체 배경 (모바일 세로) ═══ */
@media (max-width: 760px) {
  body.home-page {
    background-image:
      linear-gradient(rgba(8, 24, 50, 0.6), rgba(8, 24, 50, 0.6)),
      url('/static/images/login/login-mobile.jpg') !important;
  }
}

/* ═══ 04. 회원 대시보드 상단 hero (헤더 배경 확장) ═══ */
.buyer-portal-header,
.app-header.buyer-header {
  position: relative;
  isolation: isolate;
}
.buyer-portal-header::before {
  content: none;
}
.buyer-portal-header > * { position: relative; z-index: 1; }

/* ═══ 05. 입점업체 등록 hero 배너 ═══ */
.register-card--tenant {
  position: relative;
  padding-top: 200px;
}
.register-card--tenant::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background-image: url('/static/images/register/tenant-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px 18px 0 0;
}

/* ═══ 06. 거래처 등록 hero 배너 ═══ */
.register-card--buyer {
  position: relative;
  padding-top: 200px;
}
.register-card--buyer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background-image: url('/static/images/register/buyer-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px 18px 0 0;
}

/* ═══ 07. 등록 완료 페이지 배경 ═══ */
.register-done-visual {
  position: relative;
  min-height: 460px;
  padding-top: 260px !important;
  background-image: url('/static/images/register/register-done-bg.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 18px;
  overflow: hidden;
}

/* ═══ 08. 게스트 - 출입증 신청 hero ═══ */
.access-pass-shell--request {
  background-image:
    linear-gradient(100deg, rgba(11, 25, 44, 0.82) 0%, rgba(11, 25, 44, 0.42) 48%, rgba(11, 25, 44, 0.12) 100%),
    url('/static/images/login/login-fullbg.jpg');
  background-size: 100% 280px, 100% 280px;
  background-position: center top, center top;
  background-repeat: no-repeat;
}
.access-pass-shell--request .access-pass-head { padding-top: 200px; }

/* ═══ 09. 게스트 - 출입증 조회 hero ═══ */
.access-pass-shell--check {
  background-image:
    linear-gradient(100deg, rgba(11, 25, 44, 0.82) 0%, rgba(11, 25, 44, 0.42) 48%, rgba(11, 25, 44, 0.12) 100%),
    url('/static/images/login/login-fullbg.jpg');
  background-size: 100% 280px, 100% 280px;
  background-position: center top, center top;
  background-repeat: no-repeat;
}
.access-pass-shell--check .access-pass-head { padding-top: 200px; }

/* ═══ 10. 회원 - 출입증 요청 hero ═══ */
.buyer-ap-card,
.buyer-access-pass-card {
  position: relative;
}
.buyer-ap-card:first-of-type::before,
.buyer-access-pass-card:first-of-type::before {
  content: "";
  display: block;
  width: 100%;
  height: 170px;
  background-image:
    linear-gradient(100deg, rgba(11, 25, 44, 0.82) 0%, rgba(11, 25, 44, 0.42) 48%, rgba(11, 25, 44, 0.12) 100%),
    url('/static/images/login/login-fullbg.jpg');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  border-radius: 14px 14px 0 0;
  border-bottom: 3px solid #10b981;
  margin-bottom: 24px;
}

/* ═══ 11. 게스트 - 출입증 완료 페이지 배경 ═══ */
.access-pass-shell--done,
.access-pass-done-shell {
  min-height: 520px;
  background-image: url('/static/images/accesspass/done-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 260px;
  border-radius: 18px;
}

/* ═══ 12. 공지 모달 hero ═══ */
.buyer-notice-modal__hero {
  background-image: url('/static/images/modal/notice-header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
}

/* ────────── 반응형 (모바일 ≤760px) ────────── */
@media (max-width: 760px) {
  .register-card--tenant,
  .register-card--buyer {
    padding-top: 140px;
  }
  .register-card--tenant::before,
  .register-card--buyer::before {
    height: 120px;
  }
  .register-done-visual {
    min-height: 340px;
    padding-top: 200px !important;
  }
  .access-pass-shell--request,
  .access-pass-shell--check {
    background-size: 100% 180px;
  }
  .access-pass-shell--request .access-pass-head,
  .access-pass-shell--check .access-pass-head {
    padding-top: 140px;
  }
  .buyer-ap-card::before,
  .buyer-access-pass-card::before {
    height: 140px;
  }
  .access-pass-shell--done {
    min-height: 380px;
    padding-top: 200px;
  }
  .buyer-notice-modal__hero {
    min-height: 130px;
  }
}

/* ────────── 인쇄 시 모든 배경 제거 ────────── */
@media print {
  body.home-page,
  .lg-login__hero,
  .buyer-portal-header::before,
  .register-card--tenant::before,
  .register-card--buyer::before,
  .register-done-visual,
  .access-pass-shell--request,
  .access-pass-shell--check,
  .buyer-ap-card::before,
  .buyer-access-pass-card::before,
  .access-pass-shell--done,
  .buyer-notice-modal__hero {
    background-image: none !important;
  }
}
