/* ==========================================================================
   bf.outlogin — 사이드 로그인

   전역 main.css '11-1. 아웃로그인' 에서 옮겨 왔다.

   ※ .mem-lv · .mem-gauge 는 여기 없다
     마이페이지(theme/.../shop/mypage.php)도 같은 등급 표시를 쓴다. 둘이
     나눠 쓰는 것이라 전역에 남겼다.

   ※ .chk 도 전역이다 — 회원가입 · 설문 · 장바구니가 함께 쓴다.
   ========================================================================== */

.widget-login { padding: 20px 20px 16px; }
.login-field { display: grid; gap: 7px; }
.login-field input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sky-50);
  font-size: 14px;
  transition: all .2s;
}
.login-field input::placeholder { color: var(--ink-400); }
.login-field input:focus {
  background: var(--surface);
  border-color: var(--sky-b3);
  box-shadow: 0 0 0 3px rgba(62,159,222,.13);
}

.login-opt {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px;
  font-size: 12.5px;
}
.login-find a { color: var(--ink-500); }
.login-find a:hover { color: var(--sky-t2); text-decoration: underline; }

.login-sns { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); }
.sns-tit { margin-bottom: 9px; font-size: 12.5px; color: var(--ink-400); text-align: center; }
.login-sns ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sns {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all .2s;
}
.sns:hover { border-color: var(--sky-b2); background: var(--sky-50); }
.sns b {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff;
}
.sns span { font-size: 11px; color: var(--ink-500); }
.sns-naver b  { background: #03C75A; }
.sns-kakao b  { background: #FEE500; color: #3C1E1E; }
.sns-google b { background: #fff; color: #4285F4; border: 1px solid var(--line); }
.sns-facebook b { background: #1877F2; }
.sns-twitter b  { background: #0F1419; }
.sns-payco b    { background: #FA2828; }
/* 켠 서비스 수만큼 — 1 · 2개면 칸을 나눠 쓴다 */
.login-sns ul:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
.login-sns ul:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 로그인 상태 */
.mem-top { display: flex; align-items: center; gap: 10px; }
.mem-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sky-300), var(--sky-500));
  color: #fff;
}
.mem-thumb .ico { width: 24px; height: 24px; }
.mem-txt { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-600); }
.mem-txt b { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.mem-home { color: inherit; }
.mem-home:hover b,
.mem-home:focus-visible b { color: var(--sky-t2); }
.mem-logout {
  flex: none; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: var(--r-xs);
  font-size: 11.5px; color: var(--ink-500);
}
.mem-logout:hover { border-color: var(--sky-b2); color: var(--sky-t2); }

.mem-stat {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px; padding: 12px 0;
  background: var(--sky-50); border-radius: var(--r-sm);
}
.mem-stat li { text-align: center; position: relative; }
.mem-stat a { display: block; border-radius: var(--r-sm); text-decoration: none; transition: background .15s; }
.mem-stat a:hover { background: var(--sky-50); }
.mem-stat a:hover b { color: var(--sky-t3); }
.mem-stat a:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.mem-stat li + li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1px; height: 22px; margin-top: -11px; background: var(--sky-200);
}
.mem-stat span { display: block; font-size: 11.5px; color: var(--ink-500); }
.mem-stat b {
  display: block; margin-top: 2px;
  font-family: var(--font-en);
  font-size: 15px; font-weight: 700; color: var(--sky-t3);
}
.mem-bar { margin-top: 12px; }
.mem-bar-info { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink-500); }
.mem-bar-info b { color: var(--sky-t2); font-weight: 700; }
.mem-link {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin-top: 14px;
}
.mem-link a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 12px; color: var(--ink-600);
  transition: all .2s;
}
.mem-link a:hover { background: var(--sky-50); border-color: var(--sky-b2); color: var(--sky-t3); }
.mem-link .ico { width: 17px; height: 17px; }

.login-demo {
  display: block; width: 100%; margin-top: 14px; padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-300);
}
.login-demo:hover { color: var(--sky-t1); }


/* ---------------------------------------------------------- 반응형 */

@media (max-width: 600px) {
  .mem-link { gap: 4px; }
}

/* 이 위젯 안의 로그인 · 회원가입 버튼. 다른 데서 쓰지 않아 여기 둔다
   (base.css 의 .bf-btn-* 공용 변형과는 별개다). */
.bf-btn-login {
  width: 100%; height: 44px; margin-top: 9px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(62,159,222,.3);
}
.bf-btn-login:hover { background: linear-gradient(135deg, var(--sky-600), var(--sky-700)); }
.bf-btn-join {
  width: 100%; height: 42px; margin-top: 12px;
  border-radius: var(--r-sm);
  background: var(--sky-50);
  border: 1px dashed var(--sky-b2);
  color: var(--sky-t3); font-size: 13.5px; font-weight: 600;
}
.bf-btn-join:hover { background: var(--sky-100); border-style: solid; }
