/* TAM-Q 로그인 페이지 스타일 */

/* CSS 변수 */
:root {
  --primary-blue: #3b82f6;
  --light-blue: #60a5fa;
  --lighter-blue: #93c5fd;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-base: 'Noto Sans KR', 'Heebo', sans-serif;
  --font-heading: 'Noto Sans KR', 'Heebo', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

/* 헤더 스타일 */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gray-900);
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

/* 컨테이너 */
.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 2rem;
  gap: 2rem;
}

/* 사이드바 */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.sidebar-logo .logo-icon.blue {
  color: var(--primary-blue);
}

.sidebar-logo .logo-text.blue {
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* 로그인 버튼 */
.main-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-base);
  width: 100%;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--lighter-blue) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.login-btn .btn-icon {
  font-size: 1.25rem;
}

.login-btn .btn-text {
  font-weight: 600;
}

.login-options {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeIn 0.2s ease-out;
}

.login-options.show {
  display: flex;
}

.login-option-btn {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-base);
}

.login-option-btn .btn-icon {
  font-size: 1.1rem;
}

.login-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-option-btn.google-login {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.15));
}

.login-option-btn.guest-login {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.12));
}

/* 메인 콘텐츠 */
.main-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 로그인 메시지 */
.login-message {
  width: 100%;
  max-width: 600px;
}

.login-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, 0.1);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.login-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* 기능 소개 */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: 8px;
  color: var(--white);
}

.feature-text {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 1rem;
}

/* 푸터 */
.site-footer {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 -4px 12px rgba(31, 41, 55, 0.08);
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.site-footer .footer-company-name {
  font-weight: 700;
  color: var(--gray-800);
}

.site-footer .footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.site-footer .footer-details span {
  white-space: pre-wrap;
}

/* 로딩 상태 */
.login-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.login-btn.loading .btn-text {
  opacity: 0;
}

.login-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
  }
  
  .main-content {
    order: 1;
    padding: 1.5rem;
  }
  
  .login-card {
    padding: 2rem 1rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .login-description {
    font-size: 1rem;
  }
  
  .feature-item {
    padding: 0.75rem;
  }
  
  .feature-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .login-features {
    gap: 0.75rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .feature-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
  }

  .site-footer .footer-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}
