* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding-top: 70px;
}

/* 헤더 스타일 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  background-color: #2c3e50;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 16px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 20px 0;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #e74c3c;
}

.nav-arrow {
  margin-left: 6px;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.nav-arrow svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  transition: color 0.3s;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-link {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: block;
  transition: color 0.3s;
}

.dropdown-link:hover {
  color: #e74c3c;
}

.cta-button {
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: middle;
}

.cta-button:hover {
  background-color: #c0392b;
  color: white;
  text-decoration: none;
}

/* 모바일 메뉴 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-content {
  background: white;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-menu.show {
  display: block;
  opacity: 1;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 15px 20px;
  display: block;
  transition: background-color 0.3s;
}

.mobile-nav-link:hover {
  background-color: #f8f9fa;
  color: #e74c3c;
}

.mobile-dropdown {
  background-color: #f8f9fa;
}

.mobile-dropdown-link {
  padding: 12px 40px;
  font-size: 14px;
  color: #666;
}

/* 모바일 CTA 버튼 */
.mobile-cta {
  background-color: #f8f9fa;
  border-top: 2px solid #e74c3c;
  margin-top: 10px;
}

.mobile-cta-link {
  color: #e74c3c !important;
  font-weight: bold !important;
  text-align: center;
  background-color: #e74c3c;
  color: white !important;
  margin: 10px 20px;
  border-radius: 4px;
  padding: 12px 20px !important;
  transition: background-color 0.3s;
}

.mobile-cta-link:hover {
  background-color: #c0392b !important;
  color: white !important;
}

/* 메인 컨텐츠 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #2c3e50;
}

.page-subtitle {
  color: #666;
  margin-bottom: 10px;
  font-size: 16px;
}

.page-description {
  color: #666;
  margin-bottom: 60px;
  font-size: 16px;
}

/* 폼 스타일 */
.form-container {
  background: white;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #e74c3c;
}

.password-help {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 8px;
}

.submit-button {
  width: 100%;
  background-color: #e74c3c;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.submit-button:hover {
  background-color: #c0392b;
}

/* 푸터 */
.footer {
  width: 100%;
  overflow: hidden;
  position: relative;
  color: #ecf0f1;
  text-align: center;
  padding: 0;
  margin: 0;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
}

.footer-image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.footer-image {
  width: 100%;
  max-width: 1440px;
  height: auto;
  display: block;
}

.footer-links-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  overflow: hidden;
}

.footer-link {
  position: absolute;
  display: block;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

/* INUSCOMMUNITY 링크 영역 */
.inus-link {
  top: 27.6%;
  left: 25%;
  width: 17.5%;
  height: 7.5%;
}

/* Table. 링크 영역 */
.table-link {
  top: 27.6%;
  left: 46%;
  width: 10.5%;
  height: 7.5%;
}

/* POPPLY 링크 영역 */
.popply-link {
  top: 27.6%;
  left: 60%;
  width: 14.5%;
  height: 7.5%;
}

/* 모달 스타일 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  margin: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  /* text-align: center; */
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #e74c3c;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
}

.modal-icon.success {
  background-color: #27ae60;
}

.modal-icon.error {
  background-color: #e74c3c;
}

.modal-icon.info {
  background-color: #3498db;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-message {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.modal-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-button:hover {
  background-color: #c0392b;
}

/* 비밀번호 재설정 스타일 */
.reset-step {
  transition: all 0.3s ease;
}

.reset-step.hidden {
  display: none;
}

/* 반응형 */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .nav {
    padding: 0 15px;
  }

  .nav-menu {
    display: none;
  }

  .cta-button {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .logo {
    font-size: 18px;
  }

  .page-title {
    font-size: 36px;
  }

  .main-content {
    padding: 40px 15px;
  }

  .form-container {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .modal-content {
    padding: 30px 20px;
    margin: 10px;
  }

  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .modal-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 10px;
  }

  .logo {
    font-size: 16px;
  }

  .logo-icon {
    padding: 6px 10px;
    font-size: 14px;
  }

  .page-title {
    font-size: 28px;
  }

  .main-content {
    padding: 30px 10px;
  }

  .form-container {
    padding: 25px 15px;
    margin: 0 10px;
  }
}
