/* SNS 간편 로그인 버튼
 * /var/www/webapp/ainote/css/sns-auth.css
 * 아이노트 | KIAM AI | 2026-08-07
 *
 * login.html · register.html 공용. 두 화면의 폭에 맞춰 늘어난다.
 * 버튼 노출 여부는 js/sns-auth.js 가 서버 설정을 보고 결정한다.
 */

.sns-auth {
  margin-top: 22px;
}

/* 구분선 — "또는" */
.sns-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #9aa0ac;
  font-size: 13px;
  user-select: none;
}
.sns-auth-divider::before,
.sns-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.sns-auth-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: filter .18s ease, box-shadow .18s ease, transform .06s ease;
  box-sizing: border-box;
}
.sns-btn:hover   { filter: brightness(.97); box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.sns-btn:active  { transform: translateY(1px); }
.sns-btn:focus-visible {
  outline: 2px solid #4a7dff;
  outline-offset: 2px;
}
.sns-btn svg { flex: 0 0 auto; }

/* 구글 — 공식 가이드(흰 배경 + 회색 테두리) */
.sns-btn-google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
}

/* 카카오 — 공식 색상 #FEE500 + 검정 텍스트 */
.sns-btn-kakao {
  background: #fee500;
  color: rgba(0, 0, 0, .85);
  border-color: #fee500;
}

/* SNS 로그인 실패 안내 */
.sns-auth-error {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fdecea;
  color: #a52c22;
  border: 1px solid #f6c9c4;
  font-size: 14px;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .sns-auth-divider { color: #7d8697; }
  .sns-auth-divider::before,
  .sns-auth-divider::after { background: #333a45; }
  .sns-btn-google { background: #ffffff; color: #3c4043; border-color: #dadce0; }
  .sns-auth-error { background: #3a1d1a; color: #ffb4aa; border-color: #5c2b25; }
}
