/* ============================================================
   kt초이스 — 로그인/회원가입 공통 스타일 (auth-shared)
   common.css 토큰 사용. 0-B 디자인 시스템 표준 적용.
   ============================================================ */
.auth-main { min-height:calc(100vh - 400px); }
.auth-wrap { max-width:440px; margin:0 auto; padding:64px 24px 96px; }

/* 상단 네비게이션(브레드크럼) — 목업 기준. 모바일에선 숨긴다. */
.crumb { display:flex; align-items:center; justify-content:flex-end; gap:6px; font-size:var(--fs-label2); color:var(--gray-400); margin-bottom:14px; }
.crumb a { color:var(--gray-400); transition:color .15s; }
.crumb a:hover { color:var(--blue-600); }
.crumb .sep { color:var(--gray-300); }
.crumb .cur { color:var(--gray-800); font-weight:var(--fw-semibold); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:280px; }
@media (max-width:768px){ .crumb { display:none; } }

.auth-head { text-align:center; margin-bottom:32px; }
.auth-logo { display:inline-flex; align-items:center; gap:8px; margin-bottom:28px; }
.auth-logo img { height:28px; width:auto; }
.auth-logo span { font-size:var(--fs-heading2); font-weight:var(--fw-bold); color:var(--gray-900); }
.auth-title { font-size:var(--fs-title3); font-weight:var(--fw-bold); color:var(--gray-900); letter-spacing:var(--ls-title); margin-bottom:8px; }
.auth-sub { font-size:var(--fs-body2); color:var(--gray-500); line-height:1.5; }
.social-list { display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.social-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px; border-radius:var(--r-12); font-size:var(--fs-body2); font-weight:var(--fw-bold); border:1px solid transparent; font-family:inherit; transition:filter .15s, background .15s, box-shadow .15s; }
.social-btn svg { width:20px; height:20px; flex:0 0 auto; }
.social-btn.kakao { background:#fff; color:var(--gray-800); border-color:var(--gray-200); }
.social-btn.kakao:hover { background:var(--gray-50); border-color:var(--gray-300); }
.social-btn.naver { background:#fff; color:var(--gray-800); border-color:var(--gray-200); }
.social-btn.naver:hover { background:var(--gray-50); border-color:var(--gray-300); }
.social-btn.google { background:#fff; color:var(--gray-800); border-color:var(--gray-200); }
.social-btn.google:hover { background:var(--gray-50); border-color:var(--gray-300); }
.social-btn.flash { animation:socialFlash 1.1s ease; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:26px 0; color:var(--gray-400); font-size:var(--fs-label2); }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--gray-200); }
.auth-form { display:flex; flex-direction:column; gap:14px; }
.auth-field { display:flex; flex-direction:column; gap:6px; }
.auth-field-row { display:flex; gap:8px; align-items:flex-end; }
.auth-field-row .auth-field { flex:1; min-width:0; }
.auth-field label { font-size:var(--fs-label2); font-weight:var(--fw-semibold); color:var(--gray-700); }
.auth-field input { height:52px; padding:0 16px; border:1.5px solid var(--gray-200); border-radius:var(--r-12); font-size:var(--fs-body2); color:var(--gray-900); font-family:inherit; background:#fff; transition:border-color .15s; width:100%; }
.auth-field input:focus { outline:none; border-color:var(--blue-600); }
.auth-field input::placeholder { color:var(--gray-400); }
.auth-field.error input { border-color:var(--status-negative); }
.auth-field.ok input { border-color:var(--status-positive); }
.auth-btn-check { flex:0 0 auto; height:52px; padding:0 16px; border-radius:var(--r-12); background:var(--gray-100); color:var(--gray-700); font-size:var(--fs-label1); font-weight:var(--fw-bold); white-space:nowrap; transition:background .15s; }
.auth-btn-check:hover { background:var(--gray-200); }
.field-msg { font-size:12.5px; line-height:1.5; display:none; }
.field-msg.show { display:block; }
.field-msg.error { color:var(--status-negative); }
.field-msg.ok { color:var(--status-positive); }
.auth-row { display:flex; align-items:center; justify-content:space-between; font-size:var(--fs-label2); color:var(--gray-500); margin-top:2px; }
.auth-links a { color:var(--gray-500); }
.auth-links a:hover { color:var(--blue-600); }
.auth-links .sep { margin:0 8px; color:var(--gray-300); }
.auth-chk { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:13.5px; color:var(--gray-700); background:none; border:none; font-family:inherit; padding:0; text-align:left; }
.auth-chk .box { width:18px; height:18px; border-radius:5px; border:1.5px solid var(--gray-300); background:#fff; flex:0 0 auto; position:relative; transition:background .15s, border-color .15s; }
.auth-chk.on .box { background:var(--blue-600); border-color:var(--blue-600); }
.auth-chk.on .box::after { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7'/%3E%3C/svg%3E") center/12px 12px no-repeat; }
.auth-submit { height:54px; border-radius:var(--r-12); background:var(--blue-600); color:#fff; font-size:var(--fs-body1); font-weight:var(--fw-bold); margin-top:8px; font-family:inherit; transition:background .15s; }
.auth-submit:hover { background:var(--blue-700); }
.auth-submit:disabled { background:var(--gray-200); color:var(--gray-400); cursor:not-allowed; }
.auth-notice { align-items:flex-start; gap:10px; padding:14px 16px; border-radius:var(--r-12); font-size:13.5px; line-height:1.55; margin-top:14px; display:none; }
.auth-notice.show { display:flex; }
.auth-notice .ic { flex:0 0 auto; width:18px; height:18px; margin-top:1px; }
.auth-notice .msg { flex:1; min-width:0; }
.auth-notice b { font-weight:var(--fw-bold); }
.auth-notice .go-link { flex:0 0 auto; font-weight:var(--fw-bold); color:var(--blue-600); white-space:nowrap; margin-left:4px; }
.auth-notice.warn { background:rgba(255,146,0,.08); border:1px solid rgba(255,146,0,.28); color:var(--gray-800); }
.auth-notice.warn .ic { color:var(--status-cautionary); }
.auth-notice.error { background:rgba(255,66,66,.07); border:1px solid rgba(255,66,66,.24); color:var(--gray-800); }
.auth-notice.error .ic { color:var(--status-negative); }
.auth-notice.ok { background:rgba(0,191,64,.08); border:1px solid rgba(0,191,64,.26); color:var(--gray-800); }
.auth-notice.ok .ic { color:var(--status-positive); }
.auth-foot { text-align:center; margin-top:28px; font-size:var(--fs-label1); color:var(--gray-500); }
.auth-foot a { color:var(--blue-600); font-weight:var(--fw-bold); }
.auth-demo { margin-top:32px; padding:14px 16px; border:1px dashed var(--gray-300); border-radius:var(--r-12); font-size:var(--fs-caption1); color:var(--gray-500); line-height:1.75; }
.auth-demo b { color:var(--gray-700); }
.auth-demo code { font-family:inherit; background:var(--gray-100); padding:1px 5px; border-radius:4px; color:var(--gray-700); }
/* 필수 입력 표시 (*) */
.req-star { color:var(--status-negative,#FF4242); font-weight:var(--fw-bold,700); }
.req-legend { margin:0 0 4px; font-size:12px; color:var(--gray-500,#6B6C72); }

/* 이메일 인증번호 입력 */
.email-verify[hidden] { display:none; }
.email-verify .code-row { display:flex; align-items:stretch; gap:8px; }
.email-verify .code-input-wrap { position:relative; flex:1 1 auto; }
.email-verify .code-input-wrap input { width:100%; padding-right:60px; }
.email-verify .code-timer { position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-size:13px; font-weight:var(--fw-semibold,600); color:var(--status-negative,#FF4242);
  font-variant-numeric:tabular-nums; pointer-events:none; }
.email-verify .code-timer.expired { color:var(--gray-400,#B0B1B8); }
.email-verify .auth-btn-check { flex:0 0 auto; }
.email-verify .code-foot { margin-top:8px; text-align:right; }
.email-verify .code-resend { font-size:12.5px; color:var(--gray-500,#6B6C72);
  text-decoration:underline; text-underline-offset:2px; background:none; border:0; cursor:pointer; font-family:inherit; }
.email-verify .code-resend:hover { color:var(--gray-700,#2E2F33); }

.terms-all { display:flex; align-items:center; gap:10px; padding:14px 16px; background:var(--gray-50); border-radius:var(--r-12); font-weight:var(--fw-bold); color:var(--gray-900); font-size:var(--fs-label1); margin-top:4px; }
.terms-all .box { width:20px; height:20px; border-radius:6px; }
.terms-list { display:flex; flex-direction:column; gap:11px; padding:14px 4px 2px; }
.terms-item { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.terms-item .auth-chk { color:var(--gray-600); }
.terms-item .req { color:var(--blue-600); font-weight:var(--fw-bold); margin-right:3px; }
.terms-item .opt { color:var(--gray-400); font-weight:var(--fw-bold); margin-right:3px; }
/* ⚠ <a> 에서 <button> 으로 바뀌었다. 버튼 기본 스타일(배경·테두리·패딩)을 지워
   기존 링크와 똑같이 보이게 맞춘다. */
.terms-item .view { font-size:12.5px; color:var(--gray-400); flex:0 0 auto;
  background:none; border:none; padding:0; font-family:inherit; cursor:pointer;
  text-decoration:underline; text-underline-offset:2px; }
.terms-item .view:hover { color:var(--gray-700); }

/* ── 약관 보기 모달 ── */
.tm-dim { position:fixed; inset:0; background:rgba(15,23,42,.5); z-index:1200; }
.tm-dim[hidden] { display:none; }
.tm-modal { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); z-index:1210;
  width:min(680px,94vw); max-height:86vh; display:flex; flex-direction:column;
  background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 20px 60px rgba(15,23,42,.3); }
.tm-modal[hidden] { display:none; }
.tm-head { display:flex; align-items:flex-start; gap:10px; padding:20px 24px 16px; border-bottom:1px solid var(--gray-100); }
.tm-head h3 { margin:0; font-size:17px; font-weight:800; color:var(--gray-900); flex:1; }
.tm-head .tm-date { font-size:12px; color:var(--gray-400); white-space:nowrap; margin-top:3px; }
.tm-x { flex:0 0 auto; width:30px; height:30px; border:none; background:none; cursor:pointer;
  color:var(--gray-500); font-size:20px; line-height:1; border-radius:50%; }
.tm-x:hover { background:var(--gray-100); color:var(--gray-900); }
.tm-body { padding:20px 24px 24px; overflow:auto; font-size:14px; line-height:1.75; color:var(--gray-700);
  word-break:break-word; }
.tm-body img { max-width:100%; height:auto; }
.tm-body table { width:100%; border-collapse:collapse; }
.tm-body td, .tm-body th { border:1px solid var(--gray-200); padding:6px 8px; }
.tm-empty { padding:40px 0; text-align:center; color:var(--gray-400); font-size:14px; }
.tm-foot { padding:12px 24px; border-top:1px solid var(--gray-100); background:var(--gray-50); text-align:right; }
.tm-close { height:38px; padding:0 20px; border-radius:8px; border:1px solid var(--gray-200);
  background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--gray-700); cursor:pointer; }
.tm-close:hover { border-color:var(--gray-400); }
.auth-success { text-align:center; padding:24px 0 8px; }
.auth-success .ic-wrap { width:64px; height:64px; border-radius:50%; background:rgba(0,191,64,.1); display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.auth-success .ic-wrap svg { width:32px; height:32px; color:var(--status-positive); }
.auth-success h2 { font-size:var(--fs-heading1); font-weight:var(--fw-bold); color:var(--gray-900); margin-bottom:8px; }
.auth-success p { font-size:var(--fs-label1); color:var(--gray-500); margin-bottom:28px; line-height:1.6; }
@media (max-width:480px) {
  .auth-wrap { padding:40px 20px 72px; }
  .auth-title { font-size:var(--fs-heading1); }
}
/* ===== 회원가입 환영 유입경로 팝업 (welcome survey) ===== */
.wc-overlay { position:fixed; inset:0; z-index:420; display:flex; align-items:center; justify-content:center; padding:20px; }
.wc-overlay[hidden] { display:none; }
.wc-dim { position:absolute; inset:0; background:rgba(15,23,42,.5); animation:wcFade .2s ease; }
.wc-modal { position:relative; z-index:1; width:100%; max-width:404px; background:#fff; border-radius:var(--r-20); padding:32px 26px 24px; box-shadow:0 24px 60px rgba(15,23,42,.24); animation:wcPop .26s cubic-bezier(.2,.7,.3,1); }
.wc-close { position:absolute; top:16px; right:16px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:none; background:none; color:var(--gray-400); cursor:pointer; border-radius:50%; transition:background .15s, color .15s; }
.wc-close:hover { background:var(--gray-100); color:var(--gray-700); }
.wc-close svg { width:20px; height:20px; }
.wc-emoji { font-size:var(--fs-display3); line-height:1; text-align:center; margin-bottom:14px; }
.wc-title { font-size:var(--fs-heading1); font-weight:var(--fw-bold); color:var(--gray-900); text-align:center; letter-spacing:var(--ls-heading); }
.wc-title .wc-logo { height:19px; width:auto; vertical-align:-2px; margin-right:2px; }
.wc-sub .wc-logo { height:13px; width:auto; vertical-align:-1px; margin-right:1px; }
.wc-sub { font-size:var(--fs-body2); color:var(--gray-500); text-align:center; margin-top:9px; line-height:1.55; }
.wc-optional { font-size:var(--fs-label2); color:var(--gray-400); }
.wc-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:22px; }
.wc-opt { padding:14px 10px; border:1.5px solid var(--gray-200); border-radius:var(--r-12); background:#fff; font-size:var(--fs-label1); font-weight:var(--fw-semibold); color:var(--gray-700); cursor:pointer; transition:border-color .15s, background .15s, color .15s; font-family:inherit; }
.wc-opt:hover { border-color:var(--blue-300); }
.wc-opt.on { border-color:var(--blue-600); background:var(--blue-50); color:var(--blue-700); font-weight:var(--fw-bold); }
.wc-actions { display:flex; gap:9px; margin-top:22px; }
.wc-skip { flex:0 0 auto; height:50px; padding:0 18px; border-radius:var(--r-12); border:1px solid var(--gray-200); background:#fff; font-size:var(--fs-label1); font-weight:var(--fw-bold); color:var(--gray-500); cursor:pointer; font-family:inherit; transition:border-color .15s, color .15s; }
.wc-skip:hover { border-color:var(--gray-400); color:var(--gray-700); }
.wc-submit { flex:1; height:50px; border-radius:var(--r-12); border:none; background:var(--blue-600); color:#fff; font-size:var(--fs-body2); font-weight:var(--fw-bold); cursor:pointer; font-family:inherit; transition:background .15s; }
.wc-submit:hover { background:var(--blue-700); }
.wc-thanks { text-align:center; padding:8px 0 6px; }
.wc-thanks .wc-emoji { margin-bottom:16px; }
.wc-thanks h2 { font-size:var(--fs-heading2); font-weight:var(--fw-bold); color:var(--gray-900); }
.wc-thanks p { font-size:var(--fs-body2); color:var(--gray-500); margin-top:8px; line-height:1.55; }
@media (max-width:768px) {
  .wc-overlay { align-items:flex-end; padding:0; }
  .wc-modal { max-width:none; border-radius:20px 20px 0 0; padding:28px 20px calc(22px + env(safe-area-inset-bottom)); animation:wcSheet .28s cubic-bezier(.2,.7,.3,1); }
}   kt초이스 — 아이디/비밀번호 찾기 페이지 전용 스타일 (find-account)
   auth-shared 스타일(위 블록) 위에 탭·결과 화면만 추가.
   ============================================================ */
/* ⚠ 탭은 CSS 변수(--gray-50 등)에 의존하지 않고 고정값으로 둔다.
   토큰이 로드되지 않은 환경에서도 세그먼트(회색 박스 안 좌우 반반) 모양이 깨지지 않게 한다.
   ⚠ display:flex 가 반드시 부모(.fa-tabs)에 적용돼야 버튼이 한 줄에 반반으로 놓인다.
     이게 안 먹으면 버튼이 세로로 쌓이므로, 배포 시 이 파일이 꼭 갱신돼야 한다. */
.fa-tabs { display:flex; flex-direction:row; flex-wrap:nowrap; gap:4px;
  background:#F4F4F5; border-radius:12px; padding:4px; margin-bottom:28px; }
.fa-tab { flex:1 1 0; min-width:0; text-align:center; padding:12px 0; border:0; background:transparent;
  border-radius:10px; font-size:15px; font-weight:700; color:#6B6C72; font-family:inherit; cursor:pointer;
  transition:background .15s, color .15s; }
.fa-tab.on { background:#fff; color:#171719; box-shadow:0 1px 4px rgba(15,23,42,.1); }
.fa-panel { display:none; }
.fa-panel.on { display:block; }

.fa-result { display:none; text-align:center; padding:12px 0 4px; }
.fa-result.show { display:block; }
.fa-result .ic-wrap { width:60px; height:60px; border-radius:50%; background:rgba(0,191,64,.1); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.fa-result .ic-wrap svg { width:28px; height:28px; color:var(--status-positive); }
.fa-result .ic-wrap.mail { background:rgba(37,99,235,.1); }
.fa-result .ic-wrap.mail svg { color:var(--blue-600); }
.fa-result .fa-lead { font-size:13.5px; color:var(--gray-500); margin-bottom:6px; }
.fa-result .fa-title { font-size:var(--fs-body2); font-weight:var(--fw-bold); color:var(--gray-900); margin-bottom:8px; }
.fa-result-email { font-size:var(--fs-headline1); font-weight:var(--fw-bold); color:var(--gray-900); letter-spacing:var(--ls-headline); margin-bottom:6px; }
.fa-result-method { font-size:13.5px; color:var(--gray-500); margin-bottom:26px; }
.fa-actions { display:flex; gap:8px; }
.fa-actions[hidden] { display:none; }
.fa-actions .auth-submit { margin-top:0; }
.fa-actions .auth-btn-check { height:54px; font-size:var(--fs-label1); }

/* 찾은 아이디 표시 (아이디 찾기 버튼 위) */
.fa-idfound { margin:6px 0 14px; padding:16px 18px; border:1px solid var(--gray-200,#E5E7EB);
  border-radius:var(--r-12,12px); background:var(--gray-50,#F7F7F8); text-align:center; }
.fa-idfound[hidden] { display:none; }
.fa-idfound-lead { font-size:13px; color:var(--gray-500,#6B6C72); margin:0 0 6px; }
.fa-idfound-email { font-size:18px; font-weight:var(--fw-bold,700); color:var(--gray-900,#171719); margin:0; word-break:break-all; }
.fa-idfound-method { font-size:12.5px; color:var(--gray-500,#6B6C72); margin:6px 0 0; }
.fa-idfound-method:empty { display:none; }

.fa-otp-foot { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.fa-otp-timer { font-size:13px; font-weight:var(--fw-semibold); color:var(--status-negative); font-variant-numeric:tabular-nums; }
.fa-otp-timer.expired { color:var(--gray-400); }
.fa-otp-resend { font-size:13px; font-weight:var(--fw-semibold); color:var(--gray-500); text-decoration:underline; text-underline-offset:2px; }
