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

/* Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.header-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Login Button */
.login-button {
  background-color: #252525;
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 0.7rem;
  font-weight: 400;
  height: 30px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.login-button:hover {
  background-color: rgba(24, 28, 37, 0.9);
  border-color: #5f5f5f;
}

body {
  font-family: "Lora", serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15%;
}

/* Background Rectangle */
.container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: #181c25;
  z-index: 1;
}

/* Background Video */
.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  left: 0px;
  top: 0px;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: opacity 1s ease-in-out;
}

/* Dark Overlay */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: linear-gradient(
    to right,
    rgba(24, 28, 37, 0.85) 30%,
    rgba(24, 28, 37, 0.8) 50%,
    rgba(24, 28, 37, 0.65) 70%,
    rgba(24, 28, 37, 0.6) 100%
  );
  z-index: 3;
}

/* 모바일에서는 균일한 오버레이 유지 */
@media (max-width: 768px) {
  .overlay {
    background: rgba(24, 28, 37, 0.7);
  }
}

/* Content */
.content {
  position: absolute;
  z-index: 4;
  max-width: 600px;
  top: 60%;
  left: 15%;
  transform: translateY(-50%);
  transition: top 0.8s ease-out, transform 0.8s ease-out;
}

/* Content 최종 위치 */
.content.final-position {
  top: 50%;
  transform: translateY(-50%);
}

/* Title - Sheet.B Dev Studio */
.title {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 2rem;
  min-height: 1.2em;
  white-space: nowrap;
  text-align: left;
}

/* 모바일에서는 중앙 정렬 */
@media (max-width: 768px) {
  .content {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
  }

  .content.final-position {
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .title {
    text-align: center;
  }
}

/* 커서 스타일 */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #ffffff;
  margin-left: 2px;
  position: relative;
  top: 10px;
  animation: blink 1s infinite;
}

/* 커서 깜빡임 애니메이션 */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Menu Navigation */
.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu a {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.84rem, 1.75vw, 1.225rem);
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease, opacity 0.15s ease;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 0;
}

.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.menu a:hover {
  color: #ffffff;
  padding-left: 1rem;
}

.menu a:hover::before {
  width: 1.5rem;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  .container {
    padding: 2rem 10%;
    justify-content: center;
    text-align: center;
  }

  .content {
    max-width: 100%;
  }

  .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .menu {
    align-items: center;
  }

  .menu a {
    font-size: 0.966rem;
    padding: 0.3rem 0;
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 8%;
  }

  .title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .menu a {
    font-size: 0.8855rem;
    padding: 0.2rem 0;
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* 개인정보 동의 체크박스 스타일 */
.privacy-agreement {
  margin: 1.5rem 0;
}

.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.privacy-checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-text {
  flex: 1;
}

.privacy-text .english,
.privacy-text .korean {
  display: block;
  margin-bottom: 2px;
}

/* 호버 효과 */
.privacy-checkbox-label:hover .checkmark {
  border-color: #007bff;
}

/* 폼 유효성 검사 스타일 */
.privacy-checkbox-label input[type="checkbox"]:invalid + .checkmark {
  border-color: #dc3545;
}

.privacy-checkbox-label
  input[type="checkbox"]:invalid
  + .checkmark
  + .privacy-text {
  color: #dc3545;
}
