/* ============================================
   LOCATEWISE - 로그인 페이지
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2f5c 0%, #064a3d 50%, #0a6e5c 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* 배경 움직이는 장식 도형 */
.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 158, 135, 0.25) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: floatBubble 8s ease-in-out infinite;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 79, 154, 0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: floatBubble 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* 작은 파티클 효과 */
.login-page .login-container::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(10, 158, 135, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

/* 글래스모피즘 로그인 카드 */
.login-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.login-logo {
  margin-bottom: 16px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(10, 110, 92, 0.2));
}

.login-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.login-subtitle {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* 카카오 버튼 - 3D 효과 */
.kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #FEE500 0%, #F5DC00 100%);
  color: #1A1A1A;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-family: var(--font-family);
  box-shadow:
    0 4px 12px rgba(254, 229, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kakao-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.kakao-btn:hover {
  background: linear-gradient(180deg, #FFE81A 0%, #F0D600 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(254, 229, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kakao-btn:hover::after {
  left: 100%;
}

.kakao-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3);
}

.kakao-btn svg {
  width: 22px;
  height: 22px;
}

/* 이메일 로그인 폼 슬라이드 */
.email-login-section {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.email-login-section.email-form-open {
  max-height: 400px;
  opacity: 1;
}

/* 서비스 안내 */
.login-features {
  margin-top: 36px;
  text-align: left;
}

.login-features h3 {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--font-weight-semibold);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.feature-item:hover {
  transform: translateX(6px);
  color: var(--primary);
}

.feature-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: var(--primary);
  transition: all var(--transition-base);
}

.feature-item:hover .icon {
  background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-200) 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(10, 110, 92, 0.2);
}

.feature-item .icon i {
  width: 20px;
  height: 20px;
}

/* 가격 테이블 개선 */
.pricing-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-gray-200);
}

.pricing-section h3 {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--font-weight-semibold);
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.pricing-table th {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-light);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.pricing-table td {
  padding: 14px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--color-gray-100);
  transition: background var(--transition-fast);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table .price-highlight {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.pricing-table tbody tr:hover td {
  background: var(--color-primary-50);
}

/* 반응형 */
@media (max-width: 768px) {
  .login-container {
    padding: 36px 24px;
    border-radius: var(--radius-xl);
  }

  .login-page::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
  }

  .login-page::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -80px;
  }
}

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

  .login-logo img {
    height: 64px;
  }

  .login-title {
    font-size: var(--font-size-xl);
  }
}
