/* ── 폰트 ── */
@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: 480px;
  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;
}

/* ── 카드 헤더 ── */
.find-header {
  margin-bottom: 28px;
}

.find-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.find-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* ── 에러 메시지 ── */
.login-messages {
  margin-bottom: 16px;
}

.login-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c0392b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

/* ── 폼 ── */
.find-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-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;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.login-btn-primary:hover {
  background: #2B2B4E;
}

/* ── 보조 버튼 ── */
.find-btn-secondary {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #1A1A2E;
  border: 1.5px solid #1A1A2E;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.find-btn-secondary:hover {
  background: #f4f5f7;
}

/* ── 하단 링크 ── */
.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-back {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.login-back:hover {
  color: #444;
}

/* ── 계정 목록 (id_result) ── */
.find-account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.find-account-item {
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.find-account-item:hover {
  border-color: #ddd;
  background: #fafafa;
}

.find-account-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.find-account-id {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.find-account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.find-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.find-badge-local {
  background: #e8eaf6;
  color: #3949ab;
}

.find-badge-naver {
  background: #e8f5e9;
  color: #2e7d32;
}

.find-badge-normal {
  background: #f0fdf4;
  color: #16a34a;
}

.find-badge-withdrawal {
  background: #fef2f2;
  color: #b91c1c;
}

.find-account-date {
  font-size: 12px;
  color: #999;
}

.find-account-action {
  flex-shrink: 0;
}

.find-pw-btn {
  padding: 8px 14px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  white-space: nowrap;
}

.find-pw-btn:hover {
  background: #2B2B4E;
}

/* ── 빈 상태 (계정 없음) ── */
.find-empty {
  text-align: center;
  padding: 32px 0 16px;
}

.find-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.find-empty-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.find-empty-sub {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}

/* ── 성공 화면 (pw_result) ── */
.find-success {
  text-align: center;
  padding: 16px 0 8px;
}

.find-success-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.find-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #2e7d32;
  stroke-width: 2.5;
  fill: none;
}

.find-success-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.find-success-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── 반응형 ── */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 20px 24px;
  }

  .find-account-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .find-account-action {
    width: 100%;
  }

  .find-pw-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}
