/* Login page — 2-column SaaS card (loads after app.css) */

body.home-page.login-shell {
  min-height: 100vh;
}

body.home-page.login-shell .login-header {
  display: none;
}

body.home-page .login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 32px;
  min-height: 100vh;
}

body.home-page .login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 16px;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
  pointer-events: none;
}

/* ── Shell: beat app.css .home-login-card / .home-register-row ── */
.lg-login-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.lg-login,
.lg-login.home-login-card {
  display: grid;
  grid-template-columns: 58fr 42fr;
  width: 100% !important;
  max-width: 1120px !important;
  min-height: 580px;
  max-height: none;
  margin: 0 auto !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.10); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 40, 38, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 64px -28px rgba(8, 24, 48, 0.45),
    0 8px 24px -12px rgba(8, 24, 48, 0.18);
}

/* ── Hero (58%) ── */
.lg-login__hero {
  position: relative;
  padding: 44px 40px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(158deg, rgba(4, 14, 28, 0.96) 0%, rgba(6, 32, 48, 0.94) 42%, rgba(8, 48, 42, 0.92) 100%),
    url('/static/images/main-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}

.lg-login__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.lg-login__hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% -10%;
  height: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewY(-8deg);
  pointer-events: none;
}

.lg-login__hero-inner {
  position: relative;
  z-index: 1;
}

.lg-login__site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.lg-login__site::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
}

.lg-login__site:hover {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.lg-login__brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.88);
  margin-bottom: 16px;
}

.lg-login__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.lg-login__tagline {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.01em;
}

.lg-login__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

.lg-login__hero-icon {
  position: absolute;
  right: 12px;
  bottom: 28px;
  width: 168px;
  height: 100px;
  opacity: 0.18;
  pointer-events: none;
}

/* ── Form panel (42%) ── */
.lg-login__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px 36px;
  background: #fff;
}

.lg-login__panel .login-card {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.lg-login__panel .login-card h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: left;
  margin: 0 0 8px;
  color: var(--navy);
}

.lg-login__hint {
  margin: 0 0 22px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.lg-login__panel .login-card label {
  display: block;
  margin: 14px 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #64748b;
}

.lg-login__panel .login-card label:first-of-type {
  margin-top: 0;
}

.lg-login__panel .login-card input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lg-login__panel .login-card input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 92, 78, 0.12);
}

.lg-login__panel .login-card .btn-login {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: linear-gradient(160deg, #14b8a6 0%, #0d9488 45%, #067a5e 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 26px -10px rgba(13, 148, 136, 0.6);
  transition: filter 0.15s, transform 0.1s, box-shadow 0.2s;
}

.lg-login__panel .login-card .btn-login:hover {
  filter: brightness(1.07);
}

.lg-login__panel .login-card .btn-login:active {
  transform: translateY(1px);
}

.lg-login__panel .login-card .err {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 10pt;
}

.lg-login__register-divider {
  margin: 26px 0 16px;
  padding-top: 22px;
  border-top: 1px solid #eef2f6;
}

.lg-login__register-label {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

.lg-login__panel .home-register-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lg-login__panel .home-register-row > :only-child {
  grid-column: 1 / -1;
}

.lg-login__panel .home-register-row > :first-child:nth-last-child(3) ~ a:last-child {
  grid-column: 1 / -1;
}

.lg-login__panel .btn-register-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--brand-dark);
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.lg-login__panel .btn-register-outline:hover {
  background: #f0fdf9;
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: 0 4px 12px -4px rgba(26, 92, 78, 0.35);
}

.lg-login__panel .btn-register-access {
  border-color: #0ea5e9;
  color: #0369a1;
}

.lg-login__panel .btn-register-access:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0c4a6e;
  box-shadow: 0 4px 12px -4px rgba(2, 132, 199, 0.35);
}

.lg-login__panel .home-notice,
.lg-login__panel .home-bottom-notice {
  max-width: none !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border-top: none;
  text-align: center;
}

.lg-login__panel .home-notice p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  font-weight: 400;
}

/* ── Mobile: beat app.css @768 .home-login-card !important ── */
@media (max-width: 768px) {
  body.home-page .login-main {
    padding: 16px 14px 48px;
    min-height: calc(100vh - 32px);
  }

  .lg-login,
  .lg-login.home-login-card {
    grid-template-columns: 1fr !important;
    min-height: auto;
    max-width: 100% !important;
    width: 100% !important;
  }

  .lg-login__hero {
    padding: 24px 22px 22px;
    min-height: 0;
  }

  .lg-login__site {
    margin-bottom: 18px;
    font-size: 10px !important;
  }

  .lg-login__title {
    font-size: 24px;
  }

  .lg-login__tagline {
    font-size: 14px;
  }

  .lg-login__desc {
    font-size: 12px;
  }

  .lg-login__hero-icon {
    width: 120px;
    height: 72px;
    opacity: 0.12;
    right: 8px;
    bottom: 12px;
  }

  .lg-login__panel {
    padding: 28px 22px 24px;
  }

  .lg-login__panel .home-register-row {
    grid-template-columns: 1fr !important;
  }

  .lg-login__panel .btn-register-outline {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body.home-page .login-main {
    padding: 10px 10px 44px;
  }

  .lg-login {
    border-radius: 14px;
  }

  .lg-login__hero {
    padding: 18px 16px 16px;
  }

  .lg-login__panel {
    padding: 22px 16px 20px;
  }

  .lg-login__panel .login-card input {
    height: 44px;
    font-size: 16px;
  }

  .lg-login__panel .login-card .btn-login {
    height: 48px;
  }

  .lg-login__panel .btn-register-outline {
    height: 46px;
    min-height: 46px;
  }
}

/* 반투명 카드용 텍스트 강조 */
.lg-login__panel { background: rgba(255,255,255,0.85); border-radius: 0 18px 18px 0; }
.lg-login__panel .login-card { background: transparent; }

/* ═══ 통합 카드 - 사진이 전체 배경, 우측에 반투명 다크 오버레이 폼 ═══ */
.lg-login,
.lg-login.home-login-card {
  background-image: url('/static/images/login/login-hero.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  backdrop-filter: none !important;
}
.lg-login__hero { background: transparent !important; }
.lg-login__hero::before,
.lg-login__hero::after { display: none !important; }

.lg-login__panel {
  background: rgba(15, 25, 45, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 18px 18px 0 !important;
}
.lg-login__panel .login-card { background: transparent !important; }
.lg-login__panel .login-card h2 { color: #fff !important; }
.lg-login__hint { color: rgba(255,255,255,0.75) !important; }
.lg-login__panel .login-card label { color: rgba(255,255,255,0.9) !important; }
.lg-login__panel .login-card input {
  background: rgba(255,255,255,0.92) !important;
  color: #0a2545 !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
}

/* ═══ 카드 안 사진 제거 - 전체 반투명 유리, 뒤 login-fullbg 관통 ═══ */
.lg-login,
.lg-login.home-login-card {
  background: rgba(15, 25, 45, 0.35) !important;
  background-image: none !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,0.55) !important;
}
.lg-login__hero {
  background: transparent !important;
  background-image: none !important;
}
.lg-login__hero::before,
.lg-login__hero::after { display: none !important; }
.lg-login__panel {
  background: transparent !important;
  backdrop-filter: none !important;
  border-radius: 0 18px 18px 0 !important;
}
.lg-login__panel .login-card { background: transparent !important; }
.lg-login__panel .login-card h2 { color: #fff !important; }
.lg-login__hint { color: rgba(255,255,255,0.75) !important; }
.lg-login__panel .login-card label { color: rgba(255,255,255,0.9) !important; }
.lg-login__panel .login-card input {
  background: rgba(255,255,255,0.95) !important;
  color: #0a2545 !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
}

/* ═══ 하단 푸터 텍스트 크기·색상 살짝 키움 ═══ */
body.home-page .login-footer {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: 0.3px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ═══ 신규 등록 버튼 4개 - 반투명 유리 + 좌측 컬러 라인 ═══ */
.lg-login__panel .btn-register-outline {
  position: relative;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding-left: 22px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-weight: 600 !important;
}
.lg-login__panel .btn-register-outline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 26%;
  bottom: 26%;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.9;
}
.lg-login__panel .btn-register-outline:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}

/* 버튼 텍스트는 흰색 통일, 좌측 액센트 바만 색 구분 */
.lg-login__panel .btn-register-outline { color: #fff !important; }

/* 입점업체 등록 - 그린 */
.lg-login__panel a[href*="/register/tenant"]::before { background: #34d399; }

/* 거래처 등록 - 블루 */
.lg-login__panel a[href*="/register/buyer"]::before { background: #60a5fa; }

/* 출입증 발급요청 - 앰버 */
.lg-login__panel a[href*="/access-pass/request"]::before { background: #fbbf24; }

/* 출입증 요청 상태 조회 - 시안 */
.lg-login__panel a[href*="/access-pass/check"]::before { background: #22d3ee; }

/* 등록 라벨 흰색 */
.lg-login__panel .lg-login__register-label {
  color: rgba(255, 255, 255, 0.85) !important;
}
.lg-login__panel .lg-login__register-divider {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

/* 로그인도 스크롤 시 배경 함께 이동 */
body.home-page {
  background-attachment: scroll !important;
}
