/* Join Page Styles - Lineage Classic Theme */

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}

.join-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  background:
    /* 비네트 효과 */
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%),
    /* 기본 배경색 */
    #1a1410;
}

/* 카드 상단 드래곤 이미지 */
.join-bg-dragon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  opacity: 1;
  pointer-events: none;
  filter: grayscale(30%);
  z-index: 3;
}

/* 상단 장식 */
.join-ornament-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background:
    linear-gradient(180deg,
      rgba(139, 105, 20, 0.3) 0%,
      rgba(139, 105, 20, 0.1) 50%,
      transparent 100%
    );
  pointer-events: none;
}

/* 로고 영역 */
.join-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  text-align: center;
}


.join-logo-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(212, 168, 75, 0.4));
  transition: all 0.3s ease;
}

.join-logo-img:hover {
  filter: drop-shadow(0 4px 30px rgba(212, 168, 75, 0.6));
  transform: scale(1.02);
}

/* 회원가입 카드 */
.join-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 54px 48px;
  background: transparent url('/images/lintem_join_bg.webp') center center / 100% 100% no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.join-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: none;
  border-radius: 4px;
  pointer-events: none;
}

/* 회원가입 타이틀 */
.join-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 600;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #1c120a;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.join-alert {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-align: center;
}

.join-alert-error {
  background: rgba(160, 40, 40, 0.16);
  border: 1px solid rgba(160, 40, 40, 0.45);
  color: #5a1f1f;
}

/* 폼 그룹 */
.join-form-group {
  margin-bottom: 18px;
}

.join-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #2a1b11;
  letter-spacing: 0.05em;
}

.join-input {
  width: 100%;
  padding: 10px 2px 8px 2px;
  font-size: 14px;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #1a1209;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 18, 9, 0.5);
  border-radius: 0;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.join-input::placeholder {
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #6c5a45;
}

.join-input:focus {
  border-bottom-color: #0f0a06;
  box-shadow: none;
}

/* 체크박스 */
.join-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 6px;
}

.join-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1a1209;
  cursor: pointer;
  flex-shrink: 0;
}

.join-checkbox-label {
  font-size: 12px;
  color: #2a1b11;
  cursor: pointer;
  line-height: 1.4;
}

/* 가입하기 버튼 */
.join-btn {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: "MedievalSharp", "Times New Roman", serif;
  color: #1a1209;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px solid rgba(26, 18, 9, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(26, 18, 9, 0.15),
    0 0 6px rgba(26, 18, 9, 0.25);
}

.join-btn:hover {
  color: #0f0a06;
  border-color: rgba(15, 10, 6, 0.85);
  box-shadow:
    0 0 0 1px rgba(15, 10, 6, 0.2),
    0 0 8px rgba(15, 10, 6, 0.3);
}

.join-btn:active {
  transform: translateY(1px);
  border-color: rgba(15, 10, 6, 0.9);
  box-shadow:
    0 0 0 1px rgba(15, 10, 6, 0.25),
    0 0 5px rgba(15, 10, 6, 0.25);
}

/* 구분선 */
.join-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
}

.join-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #2a1b11 50%,
    transparent 100%
  );
}

.join-divider-text {
  font-size: 11px;
  color: #2a1b11;
  letter-spacing: 0.05em;
}

/* 링크 영역 */
.join-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.join-link-text {
  font-size: 12px;
  color: #2a1b11;
}

.join-link {
  font-size: 12px;
  color: #1a1209;
  font-weight: 600;
  transition: color 0.2s ease;
}

.join-link:hover {
  color: #0f0a06;
}

/* 푸터 */
.join-footer {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  z-index: 1;
  border-top: 1px solid rgba(139, 105, 20, 0.2);
}

.join-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(191, 160, 95, 0.3) 50%,
    transparent 100%
  );
}

.join-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.join-footer-link {
  font-size: 11px;
  color: #8b7355;
  text-decoration: none;
  transition: color 0.2s ease;
}

.join-footer-link:hover {
  color: #bfa05f;
}

.join-footer-divider {
  font-size: 10px;
  color: #4a4035;
}

.join-footer-copyright {
  font-size: 11px;
  color: #4a4035;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .join-page {
    padding: 20px;
  }

  .join-logo-img {
    width: 140px;
  }

  .join-card {
    padding: 34px 26px;
  }

  .join-title {
    font-size: 18px;
  }

  .join-checkbox-label {
    font-size: 11px;
  }

  .join-links {
    flex-direction: column;
    gap: 8px;
  }

  .join-footer-links {
    gap: 6px;
  }

  .join-footer-link {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .join-card {
    padding: 28px 20px;
  }

  .join-ornament-top {
    height: 40px;
  }

  .join-form-group {
    margin-bottom: 14px;
  }
}
