:root {

  /* color */
  --primary-color: #637DFF;
  --primary-light-color: #f7fafc;
  --bg-white: #ffffff;
  --bg-footer: #242424;
  --text-color-main: #242424;

  /* Border Radius */
  --rounded-xs: 8px;
  --rounded-sm: 12px;
  --rounded-md: 16px;
  --rounded-lg: 20px;
  --rounded-xl: 24px;
  --rounded-2xl: 28px;
  --rounded-3xl: 32px;
  --rounded-4xl: 36px;
  --rounded-5xl: 40px;
  --rounded-6xl: 44px;
  --rounded-7xl: 48px;
  --rounded-8xl: 52px;
  --rounded-9xl: 56px;
  --rounded-10xl: 60px;
  --rounded-full: 9999px;

  --header-height: 75px;
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-bg-blur: blur(10px);

  --footer-text-color: #A9AAAF;

}

.login-page input[type="text"], .login-page input[type="password"], .login-page input[type="email"] {
  border: 1px solid rgba(0, 0, 0, .1);
}

.register-page input[type="text"], 
.register-page input[type="password"], 
.register-page input[type="email"],
.register-page input[type="tel"],
.register-page select {
  border: 1px solid rgba(0, 0, 0, .1);
}

/* 커스텀 셀렉트박스 스타일 */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: clamp(14px, 0.78vw, 15px);
  line-height: 24px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: #bbb;
}

.custom-select-trigger:focus {
  outline: none;
  border-color: #4177ED;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(225deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 12px 16px;
  font-size: clamp(14px, 0.78vw, 15px);
  line-height: 24px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-select-option:hover {
  background-color: #f5f5f5;
}

.custom-select-option.selected {
  background-color: #f0f4ff;
  color: #4177ED;
  font-weight: 500;
}

br.desktop-only {
  display: block;
}

br.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  br.desktop-only {
    display: none;
  }

  br.mobile-only  {
    display: block;
  }
}

/* 공통 애니메이션 */
.animate {
  --animate-delay: 0s;
  --animate-duration: 0.8s;
  --animate-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-up,
.animate-fade-in {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: var(--animate-duration);
  animation-delay: var(--animate-delay);
  animation-timing-function: var(--animate-timing);
}

.animate-fade-up {
  transform: translateY(24px);
  animation-name: fade-up;
}

.animate-fade-in {
  animation-name: fade-in;
}

.animate-delay-0 { --animate-delay: 0s; }
.animate-delay-100 { --animate-delay: 0.1s; }
.animate-delay-200 { --animate-delay: 0.2s; }
.animate-delay-300 { --animate-delay: 0.3s; }
.animate-delay-400 { --animate-delay: 0.4s; }
.animate-delay-500 { --animate-delay: 0.5s; }
.animate-delay-600 { --animate-delay: 0.6s; }

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}