/* 로그인 / 회원가입 / 관리자 페이지 전용 스타일 (기존 앱 스타일과 분리) */

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #1e293b;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.auth-card .auth-sub {
  margin: 0 0 22px;
  font-size: 13px;
  color: #64748b;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.auth-field input:focus {
  outline: none;
  border-color: #2563eb;
}

.auth-btn {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.auth-btn:hover { background: #1d4ed8; }
.auth-btn:disabled { background: #94a3b8; cursor: not-allowed; }

.auth-msg {
  display: none;
  margin-top: 14px;
  padding: 9px 11px;
  font-size: 13px;
  border-radius: 6px;
}

.auth-msg.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-msg.success { display: block; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.auth-foot {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #64748b;
}

.auth-foot a { color: #2563eb; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ── 관리자 페이지 ── */

body.admin-body {
  display: block;
  padding: 32px 20px;
  align-items: initial;
  justify-content: initial;
}

.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-top h1 { margin: 0; font-size: 19px; }

.admin-actions { display: flex; gap: 8px; }

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.btn-sm:hover { background: #f1f5f9; }
.btn-sm.approve { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-sm.approve:hover { background: #15803d; }
.btn-sm.reject { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-sm.reject:hover { background: #b91c1c; }

.pending-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.pending-table th,
.pending-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.pending-table th {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-empty, .admin-denied {
  padding: 26px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.admin-denied { color: #b91c1c; }
