/* 기본 스타일 */
:root {
  /* 주요 색상 변수 정의 */
  --primary-blue: #0052cc;
  --primary-blue-dark: #0747a6;
  --primary-blue-light: #4c9aff;
  --text-primary: #172b4d;
  --text-secondary: #253858;
  --background-light: #f4f5f7;
  --background-white: #ffffff;
  --error-red: #de350b;
  --success-green: #36b37e;
  --border-color: #dfe1e6;
}

body,
#auth-container {
  background: #f5f6fa; /* Apple 느낌의 밝은 그레이 */
  margin: 0;
  font-family: 'SF Pro Display', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  min-height: 100vh;
  color: #222;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* 컨테이너 - 최대 너비 제한 및 중앙 정렬 */
.container {
  max-width: 1200px;  /* 최대 너비 제한 */
  margin: 0 auto;
  padding: 0 20px;  /* 좌우 여백 추가 */
  box-sizing: border-box;
}

/* 제품 카드 - 리스트형, 그림자/테두리 없이 */
.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  border: 1px solid #ececec;
  padding: 0 16px;
  min-height: 38px;
  margin-bottom: 0;
  transition: border 0.2s, box-shadow 0.2s;
  max-width: 100%;
}

.product-card:hover {
  border-color: #b3b3b3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fafbfc;
}

/* 제품명 - 너무 굵지 않게 */
.product-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #222;
  margin: 0;
  padding: 0;
  letter-spacing: -0.3px;
  flex: 1;
  text-align: left;
  font-family: 'SF Pro Display', 'Noto Sans KR', sans-serif;
}

/* 다운로드 버튼을 pill(알약) 스타일로 */
.download-btn {
  background: #f5f6fa;
  color: #222;
  border: 1px solid #d1d1d6;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.18s, border 0.18s, color 0.18s;
  letter-spacing: 0.01em;
  outline: none;
}

.download-btn:hover,
.download-btn:focus {
  background: #e5e6ea;
  border-color: #b3b3b3;
  color: #111;
}

.download-btn:active {
  background: #e0e1e3;
  border-color: #a0a0a0;
  color: #111;
}

.download-btn .icon-download {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

.download-btn svg {
  fill: #222; /* 버튼 색상에 맞게 조정 */
  transition: fill 0.2s;
}

.download-btn:hover svg,
.download-btn:focus svg {
  fill: #1565c0; /* hover 시 색상 강조 */
}

/* 여러 버튼이 있을 때 pill 간격 */
.download-buttons-container {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

/* 아이콘은 필요시만, 작게 */
.product-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f6fa;
  border: 1px solid #ececec;
}

/* 2열 그리드 유지 */
.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  background: none;
}

/* 반응형: 모바일 1열 */
@media (max-width: 800px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }
  .container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .product-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .product-card {
    padding: 0 16px;
    min-height: 48px;
  }
  .download-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
  .tabs {
    display: none !important;
  }
  .toc {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    padding: 0 12px;
  }
  .toc-btn {
    background: #f5f6fa;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    color: #222;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s, border 0.18s;
  }
  .toc-btn.active {
    background: #e3e6eb;
    border-color: #357cff;
    color: #1976d2;
    font-weight: bold;
  }
}

/* 카테고리 타이틀 */
.category-title {
  margin: 32px 0 16px 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 4px solid var(--primary-blue);
}

/* 탭 */
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  background: none;
  border: none;
  box-shadow: none;
  margin: 32px 0 24px 0;
  padding: 0;
  box-sizing: border-box;
}

.tab {
  position: relative;
  background: none;
  border: none;
  outline: none;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: #222;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.22s cubic-bezier(.4,0,.2,1), color 0.22s cubic-bezier(.4,0,.2,1);
}

.tab:hover:not(.active) {
  background: #e3e6eb;   /* 더 진한 회색 */
  color: #1976d2;        /* 파란색 포인트 or #111로 더 진하게 */
}

.tab.active {
  background: #f2f3f6;
  color: #111;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

/* 페이지 제목 */
h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* 반응형 디자인 개선 */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;  /* 큰 화면에서도 최대 너비 유지 */
  }
}

#auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #e3f0ff 0%, #f9fcff 100%);
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30, 60, 120, 0.08);
  padding: 48px 36px 36px 36px;
  text-align: center;
  min-width: 340px;
  max-width: 400px;
  transition: box-shadow 0.3s;
  position: relative;
}

.logo-circle {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 2px 12px rgba(79, 140, 255, 0.13);
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  margin-bottom: 12px;  
  border-radius: 50%;
  padding: 6px;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #23408e;
  margin-bottom: 32px;
  line-height: 1.4;
  letter-spacing: -1px;
}

#auth-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.pw-label {
  font-size: 1.08rem;
  color: #23408e;
  margin-bottom: 4px;
  text-align: left;
  font-weight: 600;
  letter-spacing: -0.5px;
}

#auth-form input[type="password"] {
  font-size: 1.08rem;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e8eb;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  background: #f7f8fa;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
}

#auth-form input[type="password"]:focus {
  border: 1.5px solid #357cff;
  box-shadow: 0 0 0 2px #e3f0ff;
}

#auth-form button {
  background: #357cff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.08);
  margin-top: 4px;
  letter-spacing: 1px;
}

#auth-form button:hover, #auth-form button:focus {
  background: #1b4fc4;
  box-shadow: 0 4px 16px rgba(30, 60, 120, 0.13);
  transform: translateY(-2px) scale(1.03);
}

.company-logo {
  width: auto;
  height: 48px;
  max-width: 180px;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  padding: 0;
  background: none;
} 

/* SERP/FERP/CMS 전용: client/server 다운로드 버튼 폰트 더 작게 */
.tabs + main .download-btn.client-btn,
.tabs + main .download-btn.server-btn {
  font-size: 0.7rem;  /* 기존보다 더 작게 */
  padding: 8px 14px;  /* 버튼 높이도 약간 줄임 */
}

