/* ============================================================
   auth.css - 인증 페이지 전용 스타일 (로그인, 회원가입, 네이버가입)
   ============================================================ */

/* 페이지 배경 */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

/* 카드 컨테이너 */
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 40px 36px;
}
.auth-card.auth-card-wide {
  max-width: 560px;
}

/* 카드 제목 */
.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 28px;
  font-weight: 400;
}

/* 네이버 배지 */
.auth-naver-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 24px;
}
.auth-naver-badge img {
  height: 20px;
}

/* 브랜드 헤더 */
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}
.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
}
.auth-brand-desc {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 4px;
}

/* ─── 폼 컨트롤 ─── */
.auth-form .form-group {
  margin-bottom: 18px;
}
.auth-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}
.auth-form .form-control {
  height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #2d3748;
  transition: all 0.2s ease;
}
.auth-form .form-control:focus {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  outline: none;
}
.auth-form .form-control::placeholder {
  color: #a0aec0;
  font-size: 0.88rem;
}
.auth-form select.form-control {
  appearance: auto;
}

/* ─── 주요 버튼 ─── */
.auth-btn-primary {
  display: block;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}
.auth-btn-primary:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.4);
  transform: translateY(-1px);
}
.auth-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(66, 153, 225, 0.3);
}

/* 가입 버튼 (초록) */
.auth-btn-join {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}
.auth-btn-join:hover {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
}

/* ─── 구분선 ─── */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  gap: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-divider span {
  font-size: 0.82rem;
  color: #a0aec0;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── 네이버 로그인/가입 버튼 ─── */
.auth-naver-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 1.5px solid #03c75a;
  border-radius: 10px;
  background: #03c75a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(3, 199, 90, 0.25);
}
.auth-naver-btn:hover {
  background: #02b351;
  border-color: #02b351;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(3, 199, 90, 0.35);
  transform: translateY(-1px);
}
.auth-naver-btn:active {
  transform: translateY(0);
}
.auth-naver-btn img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  object-position: 15% center;
  border-radius: 4px;
}

/* 네이버 아웃라인 스타일 */
.auth-naver-btn-outline {
  background: #fff;
  color: #03c75a;
  border: 1.5px solid #03c75a;
  box-shadow: 0 2px 8px rgba(3, 199, 90, 0.1);
}
.auth-naver-btn-outline:hover {
  background: #f0fdf4;
  color: #02a34a;
}
.auth-naver-btn-outline img {
  filter: none;
}

/* ─── 하단 링크 ─── */
.auth-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.auth-links a {
  font-size: 0.85rem;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-links a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}
.auth-links .auth-link-sep {
  color: #cbd5e0;
}

/* 카드 하단 안내 */
.auth-footer-link {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
  font-size: 0.88rem;
  color: #718096;
}
.auth-footer-link a {
  color: #3182ce;
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-link a:hover {
  text-decoration: underline;
  color: #2b6cb0;
}

/* ─── 가입 방법 선택 버튼 그룹 ─── */
.auth-method-group {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-method-btn:hover {
  border-color: #cbd5e0;
  background: #edf2f7;
  color: #2d3748;
  text-decoration: none;
}
.auth-method-btn.active {
  border-color: #4299e1;
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  color: #2b6cb0;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
}
.auth-method-btn.naver-method {
  border-color: #03c75a;
  color: #03c75a;
}
.auth-method-btn.naver-method:hover {
  background: #f0fdf4;
}
.auth-method-btn img {
  height: 22px;
}

/* ─── 생년월일 필드 ─── */
.auth-birth-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-birth-row input[type="text"] {
  height: 48px;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #2d3748;
  transition: all 0.2s ease;
}
.auth-birth-row input[type="text"]:focus {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  outline: none;
}
.auth-birth-row select {
  height: 48px;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #2d3748;
  transition: all 0.2s ease;
  appearance: auto;
}
.auth-birth-row select:focus {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  outline: none;
}
.auth-birth-row .birth-label {
  font-size: 0.88rem;
  color: #4a5568;
  font-weight: 500;
  flex-shrink: 0;
}
.auth-birth-row .birth-input-year {
  width: 100px;
}
.auth-birth-row .birth-input-day {
  width: 70px;
}

/* ─── 비밀번호 일치 피드백 ─── */
.pw-feedback {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.pw-match {
  color: #2f855a;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
}
.pw-mismatch {
  color: #c53030;
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

/* ─── 약관 섹션 ─── */
.auth-terms-section {
  margin-top: 24px;
  margin-bottom: 20px;
}
.auth-terms-block {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.auth-terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7fafc;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.auth-terms-header:hover {
  background: #edf2f7;
}
.auth-terms-header .terms-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3748;
}
.auth-terms-header .terms-toggle {
  font-size: 0.75rem;
  color: #a0aec0;
  transition: transform 0.3s;
}
.auth-terms-header[aria-expanded="true"] .terms-toggle {
  transform: rotate(180deg);
}
.auth-terms-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.auth-terms-box.show {
  max-height: 400px;
}
.auth-terms-box textarea {
  width: 100%;
  border: none;
  padding: 12px 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #4a5568;
  background: #fff;
  resize: none;
  outline: none;
}

/* 약관 체크박스 */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fafafa;
  border-top: 1px solid #edf2f7;
  cursor: pointer;
}
.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4299e1;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-checkbox .checkbox-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #4a5568;
}
.auth-checkbox .checkbox-required {
  color: #e53e3e;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── 반응형 ─── */
@media (max-width: 576px) {
  .auth-page {
    padding: 20px 10px 40px;
  }
  .auth-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .auth-title {
    font-size: 1.35rem;
  }
  .auth-birth-row {
    flex-wrap: wrap;
  }
  .auth-birth-row .birth-input-year {
    width: 80px;
  }
  .auth-birth-row .birth-input-day {
    width: 60px;
  }
  .auth-method-group {
    flex-direction: column;
  }
  .auth-links {
    gap: 16px;
  }
  .auth-naver-btn {
    font-size: 0.88rem;
  }
}
