/*
 * account.css - 계정 화면(로그인/찾기/가입) 스타일.
 * 자산 경로는 이 파일(/css/account.css) 기준 상대경로(../images, ../fonts).
 */

/* ===== 페이지 프레임 ===== */
html, body { height: auto; min-height: 100vh; }
body { display: flex; flex-direction: column; background-color: var(--gray_scale1_50); }

[data-entry-container] {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
}
/* 위 display:flex 가 UA 의 [hidden]{display:none} 을 이기므로 명시 필요.
   재인증 화면 스크립트가 뒤로 가기 진입 동안 화면 본문을 숨길 때 쓴다 */
[data-entry-container][hidden] { display: none; }
[data-entry-container] [data-container-inner-logo] {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  height: 25px;
  margin: 10px 0 20px;
  position: relative;
  pointer-events: none;
}
[data-entry-container] [data-container-inner-logo]::after {
  content: "";
  display: block;
  width: 200px;
  height: 100%;
  position: absolute;
  left: 16px;
  top: 0;
  pointer-events: all;
  cursor: pointer;
  background: no-repeat left top;
  background-size: 200px 25px;
  background-image: url("../images/common/logo.svg");
}
/* 카드 폭은 창 폭을 따르되 320px 보다 좁아지지 않고 600px 을 넘지 않는다. 높이는 705px 고정이다.
   다른 서비스가 이 화면을 600×760 팝업으로 열며, 로고 영역 55px(높이 25 + 상하 여백 10/20)을 뺀 705px 가 그 창을 꼭 채우는 높이다.
   폰처럼 600px 보다 좁은 창에서는 카드가 창 폭에 맞고, 320px 보다 좁은 창은 가로로 스크롤된다.
   카드보다 긴 화면(가입 단계 등)은 카드 안에서 스크롤된다 */
[data-entry-container] > main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 320px;
  max-width: 600px;
  height: 705px;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
  background-color: #fff;
  /* z-index 를 두지 않는다 - main 이 스택 컨텍스트가 되면 내부의 모달 dimm(z-index 100)이 그 안에 갇혀, main 밖 언어 셀렉터(z-index 10)가 모달 배경을 뚫고 올라온다 */
}
/* 카드 경계 테두리·라운드·여백 (≥601px). 팝업 폭(600)에선 테두리 없음 */
@media (min-width: 601px) {
  [data-entry-container] { padding: 30px 0 50px; }
  [data-entry-container] > main {
    border: 1px solid var(--gray_scale1_200);
    border-radius: 11.2px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
}
main > [data-content-container] { padding-bottom: 20px; }

/* 머리 도구 묶음 - [처음으로] 링크와 언어 전환 SELECT. 오른쪽 위에 가로로 놓인다 */
[data-entry-tools] { position: absolute; top: 12px; right: 16px; z-index: 10; display: flex; gap: 8px; }
@media (min-width: 601px) { [data-entry-tools] { top: 42px; right: calc(50% - 300px + 16px); } }
[data-home-link] {
  display: flex; align-items: center; height: 28px; padding: 0 10px;
  font-size: 12px; line-height: 26px; font-weight: 700; color: var(--gray_scale1_800);
  border: 1px solid var(--gray_scale1_300); border-radius: var(--border_radius);
  background-color: #fff;
}
/* 언어 전환 SELECT */
[data-lang-switch] {
  height: 28px; padding: 0 26px 0 10px;
  font-size: 12px; line-height: 26px; color: var(--gray_scale1_800);
  border: 1px solid var(--gray_scale1_300); border-radius: var(--border_radius);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 16 9' fill='none'%3E%3Cpath d='M0.5 1L8 8.25L15.5 1' stroke='%23999999' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  cursor: pointer; appearance: none;
}
/* 팝업(bottom sheet)이 열려 있는 동안 머리 도구를 숨긴다 - 반투명 dimm 뒤로 흰 상자가 또렷이 비쳐 조작 가능해 보이지만 실제 클릭은 dimm 이 가로채므로, 보이지 않게 해 혼동을 없앤다 */
body:has([data-popup-dimm][data-open="true"]) [data-entry-tools] { visibility: hidden; }

/* 소형 화면(<360): 큰 헤드라인 축소로 줄바꿈/overflow 방지 */
@media (max-width: 360px) {
  [data-content-container] > p,
  [data-content-container="join"] > [data-join-step] > p,
  [data-join-step="complete"] > p { font-size: 24px; }
}

/* ===== 컨테이너 / 그리드 (subset - auth 페이지용) ===== */
[data-container-sm], [data-container-xs] { --grid_gutter_x: 16px; width: 100%; box-sizing: border-box; }
[data-grid] { display: flex; width: 100%; height: 100%; }
[data-col] { display: flex; align-items: center; flex: 1; }

/* ===== 탭 헤더 ===== */
[data-tab-haeder-btn] {
  --grid_gutter_x: 32px;
  flex-shrink: 0;
  height: 60px;
  position: relative;
  border-bottom: 1px solid var(--gray_scale1_200);
  background-color: #fff;
  z-index: 3;
  padding: 0 calc(var(--grid_gutter_x) / 2);
}
[data-tab-haeder-btn] [data-grid] { height: 100%; }
[data-tab-haeder-btn] [data-col] { gap: 20px; }
[data-tab-haeder-btn] [data-ofm-button] { padding: 0; font-size: 16px; background: none; border: 0; min-height: auto; }
[data-tab-haeder-btn] [data-ofm-button]:active { background-color: #fff; }
[data-tab-haeder-btn] [data-btn-on] { color: var(--gray_scale1_300); }
[data-tab-haeder-btn] [data-btn-on="true"] { color: var(--gray_scale1_800); }

/* ===== 탭 헤더 타이틀 ===== */
[data-tab-header-title] {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--gray_scale1_200);
  font-size: 16px;
  font-weight: 700;
  background-color: #fff;
}
[data-tab-header-title][hidden] { display: none; }
[data-tab-header-title] [data-skip] { font-size: 14px; font-weight: 400; color: var(--gray_scale1_500); }
/* base.css 의 a{display:block} 이 UA 의 [hidden]{display:none} 을 이기므로 명시 필요([data-guest-form] > a[hidden] 과 같은 패턴).
   없으면 terms·profile 단계에서도 이 링크가 보이는데, 클릭하면 form.submit() 이 미입력 필수값과 함께 그대로 제출돼 버린다 */
[data-tab-header-title] [data-skip][hidden] { display: none; }

/* ===== content container ===== */
[data-content-container] {
  --grid_gutter_x: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}
[data-content-container="user_login"] {
  padding-left: calc(var(--grid_gutter_x) / 2);
  padding-right: calc(var(--grid_gutter_x) / 2);
}
[data-content-container] > *:not([data-bg]) { z-index: 2; }
[data-content-container="guest_login"],
[data-content-container="registered"] { padding: 0 16px; }

/* ===== 로그인 상태 요약 (account/home.blade.php) ===== */
[data-content-container="home"] {
  justify-content: center;
  gap: 30px;
  min-height: 420px;
  padding: 0 16px;
}
[data-content-container="home"] [data-home-avatar] {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
[data-content-container="home"] [data-home-identity] {
  font-size: 28px;
  line-height: normal;
  text-align: center;
  word-break: break-all; /* 긴 이메일이 카드 폭을 넘지 않게 */
}
[data-home-identity-email] { color: var(--brand_primary_500); }
[data-home-identity-name] { font-weight: 700; color: var(--gray_scale1_900); }
[data-content-container="home"] [data-home-notice] {
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--gray_scale1_800);
}
[data-content-container="home"] [data-home-logout] { min-width: 200px; }

/* ===== 로그인 처리 중 (account/login-wait.blade.php) ===== */
[data-content-container="login_wait"] {
  justify-content: center;
  min-height: 420px;
  padding: 0 16px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}
[data-login-wait-processing] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
[data-login-wait-processing][hidden],
[data-login-wait-delayed][hidden] { display: none; }
[data-login-wait-spinner] {
  width: 40px;
  height: 40px;
  border: 4px solid var(--brand_primary_100);
  border-top-color: var(--brand_primary_500);
  border-radius: 50%;
  animation: login-wait-spin 0.8s linear infinite;
}
@keyframes login-wait-spin { to { transform: rotate(360deg); } }
[data-content-container="renew_redirect"], [data-content-container="reauth_back"] { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 0 16px; text-align: center; word-break: keep-all; }

/* ===== 배경 슬라이드 + 헤드라인 ===== */
[data-content-container="user_login"] > p {
  width: 100%;
  margin: 50px 0;
  font-size: 28px;
  line-height: normal;
  color: #fff;
}
[data-content-container="user_login"] > p strong { font-weight: 700; }
/* 약관·개인정보처리방침 링크 - 수단 목록 아래 오른쪽. 컨테이너가 세로 flex 라 margin-top:auto 로 카드 바닥에 붙는다 */
[data-login-legal] {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
}
[data-login-legal] a { font-size: 12px; line-height: 16px; color: var(--gray_scale1_300); }

[data-bg] {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 1;
}
[data-bg]::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}
[data-img] {
  width: auto;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  opacity: 0;
  transition: transform 9s ease-out, opacity 0.8s ease-in-out 0s;
  transform-origin: center;
  z-index: 0;
}
[data-img="1"] { transform: translateX(-50%) scale(1.4); }
[data-img="2"] { transform: translateX(-50%) scale(2); }
[data-img="3"] { transform: translateX(-50%) scale(2); }
[data-bg="0"] [data-img="1"] { opacity: 1; z-index: 1; }
[data-bg="1"] [data-img="1"] { opacity: 1; transform: translateX(-50%) scale(1); z-index: 1; }
[data-bg="1"] [data-img="2"] { opacity: 0; transform: translateX(-50%) scale(2); }
[data-bg="1"] [data-img="3"] { opacity: 0; transform: translateX(-50%) scale(1.5); }
[data-bg="2"] [data-img="1"] { opacity: 0; transform: translateX(-50%) scale(1); }
[data-bg="2"] [data-img="2"] { opacity: 1; transform: translateX(-50%) scale(1.5); z-index: 1; }
[data-bg="2"] [data-img="3"] { opacity: 0; transform: translateX(-50%) scale(2); }
[data-bg="3"] [data-img="2"] { opacity: 0; transform: translateX(-50%) scale(1.5); }
[data-bg="3"] [data-img="3"] { opacity: 1; transform: translateX(-50%) scale(1.5); z-index: 1; }
[data-bg="3"] [data-img="1"] { opacity: 0; transform: translateX(-50%) scale(1.4); }

/* ===== SSO 버튼 목록 ===== */
[data-login-btn-list] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 1;
}
[data-login-btn-list] [data-ofm-button] { gap: 10px; width: 100%; font-weight: 400; }
[data-login-btn-list] [data-ofm-button][data-btn-type] { position: relative; }
[data-login-btn-list] [data-ofm-button][data-btn-type] i { background-repeat: no-repeat; display: inline-block; width: 24px; height: 24px; }
[data-login-btn-list] [data-ofm-button][data-btn-type="kakao"] { background-color: #fee404; border: 0 none; }
[data-login-btn-list] [data-ofm-button][data-btn-type="kakao"] i { background-image: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.5 10.6956C22.5 6.493 18.0235 3.08691 12.5 3.08691C6.97739 3.08691 2.5 6.493 2.5 10.6956C2.5 13.2949 4.21346 15.59 6.82783 16.9626C6.60722 18.7905 4.67335 20.913 4.67335 20.913C4.67335 20.913 9.23606 19.3004 10.5097 18.1536C11.1529 18.2524 11.8185 18.3043 12.5 18.3043C18.0235 18.3043 22.5 14.8973 22.5 10.6956Z' fill='%233C1E1E'/%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="naver"] { color: #fff; background-color: #1ec800; border: 0 none; }
[data-login-btn-list] [data-ofm-button][data-btn-type="naver"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.1777 3V12.0802L8.84431 3H2V21H8.82232V11.9187L15.1557 21H22V3H15.1777Z' fill='white'/%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="google"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.5666 7.35556L19.3888 4.6C17.6555 2.98889 15.3999 2 12.6999 2C8.78882 2 5.41105 4.24444 3.7666 7.51111L6.99993 10.0222C7.81105 7.61111 10.0555 5.86667 12.6999 5.86667C14.5777 5.86667 15.8444 6.67778 16.5666 7.35556Z' fill='%23EA4335'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.0891 10.1777H12.7002V13.8888H18.2113C18.1002 14.8111 17.5002 16.2 16.1669 17.1333L19.3224 19.5777C21.2113 17.8333 22.3002 15.2666 22.3002 12.2222C22.3002 11.4 22.2335 10.8 22.0891 10.1777Z' fill='%234285F4'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.67797 12.0001C6.67797 11.3112 6.8002 10.6446 7.0002 10.0223L3.76686 7.51123C3.08908 8.86679 2.7002 10.389 2.7002 12.0001C2.7002 13.6112 3.08908 15.1335 3.76686 16.489L7.01131 13.9779C6.8002 13.3557 6.67797 12.689 6.67797 12.0001Z' fill='%23FBBC05'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.3223 19.5778L16.1667 17.1333C15.3223 17.7222 14.1889 18.1333 12.7001 18.1333C10.0556 18.1333 7.81117 16.3889 7.01117 13.9778L3.77783 16.4889C5.42228 19.7556 8.78894 22 12.7001 22C15.4001 22 17.6667 21.1111 19.3223 19.5778Z' fill='%2334A853'/%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="apple"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:hard-light'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.7844 17.5861C19.4927 18.2848 19.1473 18.928 18.7472 19.5193C18.2018 20.3255 17.7553 20.8835 17.4111 21.1934C16.8776 21.702 16.306 21.9625 15.6939 21.9773C15.2545 21.9773 14.7246 21.8477 14.1078 21.5847C13.4889 21.323 12.9202 21.1934 12.4001 21.1934C11.8547 21.1934 11.2698 21.323 10.6441 21.5847C10.0175 21.8477 9.51272 21.9847 9.12678 21.9983C8.53982 22.0242 7.95477 21.7563 7.37079 21.1934C6.99806 20.8563 6.53185 20.2786 5.97335 19.4601C5.37413 18.586 4.88149 17.5725 4.49554 16.417C4.0822 15.1689 3.875 13.9603 3.875 12.7902C3.875 11.4498 4.15437 10.2938 4.71394 9.32509C5.15371 8.54696 5.73876 7.93315 6.471 7.48255C7.20324 7.03195 7.99442 6.80232 8.84646 6.78763C9.31266 6.78763 9.92403 6.93713 10.6838 7.23095C11.4414 7.52576 11.9278 7.67526 12.1411 7.67526C12.3006 7.67526 12.841 7.50045 13.7571 7.15194C14.6234 6.82874 15.3546 6.69492 15.9535 6.74763C17.5766 6.88343 18.796 7.54675 19.607 8.74177C18.1554 9.6536 17.4373 10.9307 17.4516 12.5691C17.4647 13.8452 17.9113 14.9071 18.7889 15.7503C19.1866 16.1417 19.6308 16.4441 20.125 16.6589C20.0178 16.9812 19.9047 17.2898 19.7844 17.5861ZM16.0619 2.40011C16.0619 3.40034 15.7094 4.33425 15.0068 5.19867C14.159 6.22629 13.1334 6.8201 12.0213 6.7264C12.0071 6.6064 11.9989 6.48011 11.9989 6.3474C11.9989 5.38718 12.4021 4.35956 13.1182 3.51934C13.4757 3.09392 13.9303 2.74019 14.4817 2.45801C15.0318 2.18004 15.5522 2.02632 16.0417 2C16.056 2.13371 16.0619 2.26744 16.0619 2.4001V2.40011Z' fill='black'/%3E%3C/g%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="facebook"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.5 12.0577C21.5 6.7789 17.2467 2.5 12.0002 2.5C6.75348 2.5 2.5 6.7789 2.5 12.0577C2.5 16.8302 5.97765 20.786 10.5224 21.5V14.819H8.09437V12.0577H10.5224L10.5235 9.95187C10.5235 7.55672 11.9341 6.22803 14.104 6.22803C15.1436 6.22803 16.2224 6.42894 16.2224 6.42894V8.76531H15.0326C13.8525 8.76531 13.4757 9.5087 13.4757 10.2649L13.478 12.0577H16.1166L15.6947 14.819H13.478V21.5C18.0223 20.786 21.5 16.8302 21.5 12.0577Z' fill='%231877F2'/%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="email"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 6.5L12.9358 10.5046C12.4775 10.7472 12.2484 10.8685 12 10.8685C11.7516 10.8685 11.5225 10.7472 11.0642 10.5046L3.5 6.5M11 20H13C16.7712 20 18.6569 20 19.8284 18.8284C21 17.6569 21 15.7712 21 12V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V12C3 15.7712 3 17.6569 4.17157 18.8284C5.34315 20 7.22876 20 11 20Z' stroke='%23333333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); }
[data-login-btn-list] [data-ofm-button][data-btn-type="guest"] i { background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='9' r='3' stroke='%23333333' stroke-width='1.4'/%3E%3Cpath d='M18 18C18 14.6863 15.3137 12 12 12C8.68629 12 6 14.6863 6 18' stroke='%23333333' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z' stroke='%23333333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); }
/* 마지막 로그인 수단 툴팁 (OFM_LPC 있을 때, 첫 버튼 위 중앙) */
[data-login-btn-list][data-before-login-type]::before {
  content: "";
  display: flex;
  width: 80px;
  height: 32px;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: no-repeat;
  background-size: 100%;
  background-image: url("../images/common/tooltip-last_login.png");
}
/* ===== 비회원 신청내역 확인 ===== */
[data-content-container="guest_login"] > p { width: 100%; margin: 50px 0; font-size: 28px; line-height: normal; }
[data-guest-form] { display: flex; flex-direction: column; gap: 10px; width: 100%; }
[data-guest-form] [type="submit"] { margin-top: 10px; }
[data-login-error-msg] { font-size: 12px; line-height: 16px; color: var(--semantic_danger_500); }
[data-guest-form] > [data-reset-sent],
[data-find-form] > [data-reset-sent] { font-size: 12px; line-height: 16px; color: var(--gray_scale1_800); }
/* 비밀번호 찾기 버튼 묶음은 이벤트 게스트 전용 - 폼 선택 시 hidden 속성으로 숨긴다. 묶음과 버튼의 모양은 [data-other-login] 규칙이 맡는다. */
[data-guest-form] > [data-other-login][hidden] { display: none; }
/* 참여 구분 셀렉트 + 참여 주소 입력 한 줄 배치 - 셀렉트는 input([data-input])과 같은 외형 */
[data-guest-target-wrap] { display: flex; gap: 10px; align-items: flex-start; }
[data-guest-target-wrap] select {
  height: 40px; padding: 0 28px 0 12px; box-sizing: border-box; flex-shrink: 0;
  border: 1px solid var(--gray_scale1_300); border-radius: var(--border_radius);
  font-size: 16px; line-height: 20px; color: var(--form_text_color); background-color: #fff;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9' fill='none'%3E%3Cpath d='M0.504768 1L7.99996 8.25001L15.4956 1.00001' stroke='%23999999' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 7px;
}
[data-guest-target-wrap] [data-form-elements="input"] { flex: 1; min-width: 0; }

/* ===== 기존 가입계정 안내 ===== */
[data-content-container="registered"] > p { width: 100%; margin: 50px 0; font-size: 28px; line-height: normal; }
[data-content-container="registered"] > p strong { font-weight: 700; }
[data-content-container="registered"] > p span { font-size: 16px; line-height: 20px; }
[data-join-list] {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  padding: 15px 13px; background-color: var(--gray_scale2_50);
}
[data-join-list] li { display: flex; align-items: center; height: 24px; font-size: 14px; }
[data-join-list] li span { width: 91px; padding-right: 21px; text-align: right; font-size: 12px; }
[data-join-list] + [data-login-btn-list] { margin-top: 40px; }

/* ===== 이메일 로그인 팝업 (bottom sheet) ===== */
[data-popup-dimm] {
  display: none;
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
[data-popup-dimm][data-open="true"] { display: flex; }
[data-popup] {
  display: flex; flex-direction: column;
  width: 100%; max-width: 600px;
  height: calc(100% - 68px);
  border-top-left-radius: 11.2px;
  border-top-right-radius: 11.2px;
  background-color: #fff;
  padding: 0 32px;
  box-sizing: border-box;
  overflow-y: auto;
}
[data-popup] h1 { padding: 20px 0; font-size: 16px; font-weight: 700; line-height: 20px; }
[data-popup] form { display: flex; flex-direction: column; gap: 10px; }
[data-popup-header-close] {
  align-self: flex-end;
  width: 24px; height: 24px;
  margin: 16px 0 0;
  border: 0; background: transparent; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='%23333333' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
[data-login-option-wrap] { display: flex; gap: 10px; margin-bottom: 20px; }
[data-find-join-link] { display: flex; justify-content: space-between; }
[data-find-join-link] a { font-size: 12px; line-height: 16px; }
[data-find-join-link] a:first-child { font-weight: 700; color: var(--gray_scale1_800); }
[data-find-join-link] a:last-child { font-weight: 700; color: var(--gray_scale1_800); }
/* 팝업 하단 "다른 방법으로 로그인하기" - 팝업을 닫아 뒤의 수단 목록으로 돌아간다. 폼과 구분선으로 나눈다 */
[data-other-login] { margin-top: 20px; padding-top: 30px; border-top: 1px solid var(--gray_scale1_300); }
[data-other-login] { width: 100%; }
[data-other-login] button, [data-other-login] a { width: 100%; }

/* ===== Find (비밀번호 찾기 / 아이디 찾기) ===== */
[data-content-container="find"] { background-color: #fff; padding: 0 16px; }
[data-content-container="find"] > p { width: 100%; margin: 50px 0; font-size: 28px; line-height: normal; }
[data-content-container="find"] > p strong { font-weight: 700; }
[data-find-form] { display: flex; flex-direction: column; gap: 10px; width: 100%; }
[data-find-form] > p { width: 100%; margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; text-align: center; color: var(--gray_scale1_500); }
[data-find-form] [type="submit"] { margin-top: 0; }
[data-find-result] { display: flex; flex-direction: column; gap: 12px; width: 100%; }
[data-find-result] ~ [data-ofm-button] { width: 100%; margin-top: 30px; }
[data-find-result] ~ [data-ofm-button] + [data-ofm-button] { margin-top: 10px; }
[data-find-login-btn] { width: 100%; margin-top: 20px; }

/* ===== 재인증 - 찾기 화면과 같은 머리글·폼 간격·전체 너비 버튼. 비밀번호 폼과 소셜 버튼이 함께 있으면 사이를 띄운다 ===== */
[data-content-container="reauth"] { background-color: #fff; padding: 0 16px; }
[data-content-container="reauth"] > p { width: 100%; margin: 50px 0; font-size: 28px; line-height: normal; }
[data-content-container="reauth"] > p strong { font-weight: 700; }
[data-reauth-form] { display: flex; flex-direction: column; gap: 10px; width: 100%; }
[data-reauth-form] [type="submit"] { margin-top: 0; }
[data-reauth-form] + [data-login-btn-list] { margin-top: 30px; }
[data-reauth-cancel] { width: 100%; }
[data-login-btn-list] + [data-reauth-cancel] { margin-top: 10px; }

/* ===== 간편 로그인 관리 ===== */
/* 머리글 간격은 재인증 화면과 같다. */
/* 줄마다 아이콘, 이름과 연결 일시, 버튼을 한 줄에 둔다. */
/* 이름은 안내 문장과 같은 크기로 쓰고 연결 일시는 한 단계 작게 쓴다. */
[data-content-container="social"] { background-color: #fff; padding: 0 16px; }
[data-content-container="social"] > p { width: 100%; margin: 50px 0 30px; font-size: 16px; line-height: normal; }
[data-content-container="social"] > [data-login-error-msg] { display: block; width: 100%; margin-bottom: 20px; font-size: 14px; line-height: 20px; }
[data-social-link-list] li { display: flex; align-items: center; gap: 12px; }
[data-social-link-list] [data-ofm-button] { width: auto; flex: 0 0 auto; }
[data-social-link-list] [data-ofm-button][data-btn-type] { pointer-events: none; }
[data-social-link-list] [data-ofm-button][data-btn-type] i { margin: 0; }
[data-social-link-list] li > a[data-ofm-button], [data-social-link-list] li > form { margin-left: auto; flex: 0 0 auto; }
[data-social-link-info] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
[data-social-link-info] strong { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--gray_scale1_900); }
[data-social-link-at] { font-size: 14px; line-height: 20px; color: var(--gray_scale1_500); }
[data-social-link-close] { width: 100%; margin-top: 30px; }

/* ===== Pass (비밀번호 재설정) - 찾기 화면과 같은 머리글·폼 간격·전체 너비 버튼 ===== */
[data-content-container="pass"] { background-color: #fff; padding: 0 16px; }
[data-content-container="pass"] > p { width: 100%; margin: 50px 0; font-size: 28px; line-height: normal; }
[data-content-container="pass"] > p strong { font-weight: 700; }
[data-pass-form] { display: flex; flex-direction: column; gap: 10px; width: 100%; }
/* 회원 전환 인증의 버튼 아래 안내. 찾기 화면의 버튼 아래 안내와 같은 모양이다. */
[data-pass-form] > [data-transition-note] { width: 100%; margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; text-align: center; color: var(--gray_scale1_500); }
/* 비밀번호 변경의 버튼 위 안내. 저장하면 모든 기기에서 로그아웃된다는 사실을 알린다. */
[data-pass-form] > [data-pass-change-notice] { width: 100%; margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--gray_scale1_500); }
[data-pass-form] [type="submit"] { margin-top: 10px; }

/* 폼 게스트 비밀번호 재설정 - 안내문, 남은 시간, 만료 뒤 재발송 */
[data-reset-guide] { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-bottom: 20px; font-size: 14px; line-height: 20px; }
[data-reset-countdown] { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 28px; margin-bottom: 10px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--gray_scale1_800); }
[data-reset-remaining][hidden], [data-reset-resend][hidden], [data-reset-expired][hidden] { display: none; }
/* 안내는 재설정 폼 밖의 p 라 제목 규칙([data-content-container="pass"] > p)보다 우선해야 한다. */
[data-content-container="pass"] > [data-reset-expired] { width: 100%; margin: -4px 0 10px; font-size: 12px; line-height: 16px; color: var(--semantic_danger_500); }
/* 재발송 버튼은 타이머 자리에 서고 화면 머리의 [처음으로] 와 같은 작은 높이다. */
[data-reset-resend] [data-ofm-button] { min-height: 28px; height: 28px; padding: 0 10px; font-size: 12px; line-height: 26px; font-weight: 700; }

/* ===== 안내형 화면 (account/_notice.blade.php) - 제목과 본문 문구, 버튼이 카드의 가로와 세로 가운데에 놓인다. ===== */
[data-content-container="notice"] { justify-content: center; gap: 30px; min-height: 420px; padding: 0 16px; background-color: #fff; }
[data-notice-text] { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: center; }
[data-notice-text] > p { margin: 0; font-size: 28px; line-height: normal; }
[data-notice-text] > span { font-size: 16px; line-height: 24px; }
[data-notice-text] strong { font-weight: 700; }
[data-notice-actions] { display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* ===== Join 위저드 공통 ===== */
[data-join-step] { width: 100%; }
[data-join-step][hidden] { display: none; }
[data-content-container="join"] {
  --grid_gutter_x: 32px;
  flex: 1; display: flex; flex-direction: column; flex-wrap: wrap;
  width: 100%; align-items: center; padding: 0 16px; box-sizing: border-box;
}
/* join 단계 div 는 article 의 직계 자식이 아니라 <form data-join-create> 한 겹 아래에 있다(complete 단계만 예외 - form 밖에 있어 위의 [data-join-step="complete"] > p 로 따로 잡는다).
   그래서 이 셀렉터는 container 와 join-step 사이를 직계(>)가 아니라 하위(공백)로 잡는다 */
[data-content-container="join"] [data-join-step] > p {
  width: 100%; margin: 50px 0; font-size: 28px; line-height: normal;
}
[data-content-container="join"] [data-join-step] > p strong { font-weight: 700; }
[data-content-container="join"] [data-join-step] > p span { font-size: 15px; }
[data-join-create] { width: 100%; }
[data-join-form] { display: flex; flex-direction: column; flex-wrap: wrap; width: 100%; }
[data-join-form][data-step="profile"] { gap: 20px; }
[data-join-form] [data-step-next], [data-join-form] [type="submit"] { margin-top: 30px; }

/* 회원 전환 화면의 이메일 칸은 약관 목록과 떨어뜨린다. */
[data-member-conversion-email] { margin-bottom: 30px; }

/* 약관 동의 */
[data-join-form][data-step="terms"] > ul { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
[data-check-btn] { display: flex; flex-wrap: wrap; align-items: center; padding: 0 10px; }
[data-check-btn="all"] { padding: 7px 9px 7px 10px; border: 1px solid var(--gray_scale1_300); border-radius: var(--border_radius); }
[data-check-btn="all"][data-check-on="true"] { padding: 6px 8px 6px 9px; border: 2px solid var(--brand_primary_500); }
[data-check-btn="all"][data-check-on="true"] span { font-weight: 700; color: var(--brand_primary_500); }
[data-check-btn] > [data-checkbox-radio] { flex: 1; display: flex; flex-direction: row-reverse; justify-content: space-between; }
[data-check-btn] > [data-checkbox-radio] span, [data-check-btn] > [data-checkbox-radio] [data-ofm-button] { margin-left: 10px; }
[data-check-btn] > [data-checkbox-radio] [data-ofm-button] { min-height: 24px; height: 24px; font-size: 16px; line-height: 20px; padding: 0; text-decoration: underline; background: none; border: 0; }
[data-check-btn] > p { width: 100%; padding-left: 42px; margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--gray_scale1_700); }
[data-check-btn] > ul { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-left: 47px; margin-top: 10px; }
[data-check-btn] > ul li { display: flex; align-items: center; }
[data-check-btn] > ul li [data-checkbox-radio] span { white-space: nowrap; }
[data-join-form][data-step="terms"] [data-error-msg] { margin-top: 4px; width: 100%; padding-left: 42px; font-size: 12px; line-height: 16px; color: var(--semantic_danger_600); }

/* 마케팅 수신동의 안내 팝업 */
[data-marketing-terms-content] { flex: 1; display: flex; flex-direction: column; }
[data-marketing-terms-content] table { width: 100%; margin-top: 10px; border: 1px solid var(--gray_scale1_200); }
[data-marketing-terms-content] caption { padding: 10px 0; font-size: 12px; text-align: left; }
[data-marketing-terms-content] th, [data-marketing-terms-content] td { width: calc(100% / 3); font-size: 12px; line-height: 16px; border: 1px solid var(--gray_scale1_200); }
[data-marketing-terms-content] th { padding: 10px 0; text-align: center; vertical-align: middle; background-color: var(--gray_scale2_100); }
[data-marketing-terms-content] td { padding: 10px; }
[data-marketing-terms-content] > p { margin-top: 10px; padding: 0 10px; font-size: 12px; line-height: 16px; color: var(--gray_scale1_700); }
[data-marketing-terms-content] > a { width: 150px; margin: 20px auto 10px; }

/* 관심정보 선택 - 지역 / 주제·유형 (칩 선택) */
[data-join-form][data-step^="interest"] { gap: 10px; }
[data-join-form][data-step^="interest"] > span { font-size: 16px; font-weight: 700; line-height: 20px; }
[data-join-form][data-step^="interest"] > span span { font-size: 12px; font-weight: 400; line-height: 16px; }
[data-join-form][data-step^="interest"] dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
[data-join-form][data-step^="interest"] dt { width: 100%; font-size: 12px; line-height: 16px; }
[data-join-form][data-step^="interest"] dd [data-checkbox-radio] input { position: absolute; opacity: 0; width: 0; height: 0; }
[data-join-form][data-step^="interest"] dd [data-checkbox-radio] span {
  display: flex; padding: 7px 15px; border: 1px solid var(--gray_scale1_300);
  border-radius: var(--border_radius); font-size: 12px; line-height: 16px; background-color: #fff; cursor: pointer;
}
[data-join-form][data-step^="interest"] dd [data-checkbox-radio] input:checked + span {
  color: #fff; border-color: var(--brand_primary_500); background-color: var(--brand_primary_500);
}
[data-join-form][data-step^="interest"] dd [data-checkbox-radio] input:disabled + span {
  border-color: var(--gray_scale1_100); color: var(--gray_scale1_200);
}
[data-join-form][data-step^="interest"] [data-step-next], [data-join-form][data-step^="interest"] [type="submit"] { margin-bottom: 14px; }

/* 가입 완료 */
[data-join-step="complete"] { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; width: 100%; position: relative; padding: 0 16px; box-sizing: border-box; }
[data-join-step="complete"] > p { text-align: center; font-size: 28px; color: #fff; line-height: normal; }
[data-join-step="complete"] > p strong { font-weight: 700; }
[data-join-step="complete"] > a { width: 100%; }
[data-join-step="complete"] > *:not([data-bg]) { z-index: 2; }
/* 배경 슬라이드는 로그인과 동일한 제너릭 [data-bg]/[data-img] 규칙 재사용 */
