/* ── 폰트 ── */
@font-face {
  font-family: 'Pretendard';
  src: url('../../fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 로그인 페이지 전체 ── */
.login-page {
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', Arial, sans-serif;
  background: #f4f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  padding: 40px 16px;
}

/* ── 로고 ── */
.login-logo {
  display: block;
}

/* ── 카드 ── */
.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 36px 32px;
}

/* ── 에러 메시지 ── */
.login-messages {
  margin-bottom: 16px;
}

.login-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c0392b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}


/* ── 폼 ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-field {
  position: relative;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.login-input:focus {
  border-color: #1A1A2E;
}

.login-input::placeholder {
  color: #aaa;
}

/* ── 로그인 상태 유지 ── */
.login-options {
  display: flex;
  align-items: center;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.login-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #1A1A2E;
  cursor: pointer;
}

/* ── 주 버튼 ── */
.login-btn-primary {
  width: 100%;
  padding: 14px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.login-btn-primary:hover {
  background: #2B2B4E;
}

/* ── 하단 링크 ── */
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.login-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.login-links a:hover {
  color: #111;
  text-decoration: underline;
}

.login-links .divider {
  color: #ccc;
  font-size: 12px;
}

/* ── 소셜 로그인 ── */
.login-social {
  margin-top: 24px;
}

.login-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #bbb;
  font-size: 12px;
}

.login-social-divider::before,
.login-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0f0;
}

.login-social-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 14px;
}

.login-social-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}

.social-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.social-btn.kakao  { background: #FEE500; }
.social-btn.naver  { background: #03C75A; }
.social-btn.google { background: #ffffff; border: 1.5px solid #e0e0e0; }

/* ── 메인으로 돌아가기 ── */
.login-back {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.login-back:hover {
  color: #444;
}
