/* Login Page Styles */
* {
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background: #f8fafb;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.auth-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* 브랜드 로고 */
.brand-section {
  text-align: center;
  margin-bottom: 24px;
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* 탭 네비게이션 */
.auth-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.auth-tab.active {
  background: white;
  color: #10b981;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 폼 스타일 */
.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  min-width: 70px;
  text-align: left;
  margin-bottom: 0;
}

.form-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s;
  background: #f9fafb;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
  background: white;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* 버튼 스타일 */
.auth-button {
  width: 100%;
  padding: 14px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.auth-button:hover {
  background: #059669;
}

.auth-button:active {
  transform: translateY(1px);
}

/* 링크 섹션 */
.auth-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.auth-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #10b981;
  text-decoration: none;
}

/* 에러 메시지 */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* 소셜 로그인 (필요시) */
.social-login {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.social-text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  gap: 12px;
}

.social-button {
  flex: 1;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-button:hover {
  background: #f9fafb;
  text-decoration: none;
  color: #374151;
}

/* 반응형 */
@media (max-width: 480px) {
  .auth-container {
    margin: 20px;
    padding: 32px 24px;
  }

  .brand-title {
    font-size: 24px;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .form-label {
    min-width: auto;
  }

  .form-input {
    width: 100%;
  }

  .auth-links {
    flex-direction: column;
    gap: 12px;
  }

  .social-buttons {
    flex-direction: column;
  }
}

/* 애니메이션 */
.auth-container {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 폼 전환 애니메이션 */
.form-content {
  transition: opacity 0.3s ease;
}

.form-content.fade-out {
  opacity: 0;
}

.form-content.fade-in {
  opacity: 1;
}
