/* 로그아웃 상태(#gate)와 권한 없음(#denied)을 참고 화면 14(공개 · 로그인)처럼 바꾼다.
   index.html의 기존 마크업은 그대로 두고 덮어쓴다. index.html의 <style> 뒤에 불러야 한다. */
#gate, #denied {
  --lg-brand: #2F5BFF; --lg-brand-dark: #1E3FD6; --lg-text: #101828; --lg-text-2: #344054; --lg-text-3: #667085; --lg-border: #E6E8EC;
  /* 화면 전체를 덮고 가운데 400px 카드. transform을 쓰면 ::before(fixed 배경)가 카드 기준이 되므로 margin:auto로 가운데 둔다 */
  position: fixed; inset: 0; margin: auto; z-index: 1000;
  width: min(400px, calc(100vw - 32px)); height: fit-content;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px; text-align: center;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--lg-text);
}
/* 배경 그라데이션(화면 전체) */
#gate::before, #denied::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(160deg, #EEF2FF, #F4F5F7);
}
/* 카드 바탕. 배경보다 뒤 순서로 그려야 위에 온다 */
#gate::after, #denied::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; border: 1px solid var(--lg-border); border-radius: 16px;
}

/* .icon-badge(이모지) 자리를 로고로 바꾼다 */
#gate .icon-badge, #denied .icon-badge {
  width: auto; height: auto; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; align-items: center; gap: 8px; font-size: 0;
}
#gate .icon-badge::before, #denied .icon-badge::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Crect width='22' height='22' rx='7' fill='%232F5BFF'/%3E%3Crect x='7' y='7' width='8' height='8' rx='3' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat;
}
#gate .icon-badge::after, #denied .icon-badge::after {
  content: "ITEMGATE"; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.5; color: var(--lg-text);
}

#gate h2, #gate > p { display: none; }
#gate > div { margin: 8px 0 0 !important; width: 100%; } /* 인라인 margin-top:22px 덮어쓰기 */

#signin-btn {
  width: 100%; height: 46px; padding: 0 14px; justify-content: center; gap: 6px;
  background: #fff; color: var(--lg-text-2); border: 1px solid var(--lg-border); border-radius: 10px;
  font-size: 0; font-weight: 500; box-shadow: none; transform: none;
}
#signin-btn::after { content: "Google로 계속하기"; font-size: 13.5px; }
#signin-btn:hover { transform: none; box-shadow: none; border-color: #CFD4DC; }
#signin-btn:focus-visible { outline: 2px solid var(--lg-brand); outline-offset: 2px; }

#gate .gate-terms { display: block; font-size: 12px; color: var(--lg-text-3); margin: 14px 0 0; line-height: 1.5; }
#gate .gate-terms a { color: var(--lg-brand); }

#denied h2 { font-size: 15px; font-weight: 600; margin: 8px 0 0; color: var(--lg-text-2); }
#denied > p { display: none; }
