﻿/**
 * 인증 페이지 스타일
 * - 로그인, 회원가입
 */

/* ==============================
   로그인 페이지 컨테이너 (SPA용)
   ============================== */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-50);
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

/* ==============================
   로그인 페이지 레이아웃
   ============================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-50);
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  padding: 48px 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-logo img {
  display: block;
  margin: 0 auto 12px;
}

.auth-logo-subtitle {
  font-size: 15px;
  color: var(--color-slate-500);
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

.auth-title {8px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32
  margin-bottom: 24px;
  text-align: center;
}

.auth-form {
  margin-bottom: 20px;
}

.auth-form .form-group:last-child {
  margin-bottom: 0;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider::before {
  margin-right: 12px;
}

.auth-divider::after {
  margin-left: 12px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.auth-footer-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer-link {
  color: var(--color-error);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.auth-footer-link:hover {
  color: var(--color-error);
  text-decoration: underline;
}

/* ==============================
   비밀번호 토글
   ============================== */
.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.15s ease;
}

.password-toggle:hover {
  color: var(--text-secondary);
}

/* ==============================
   인증 모달 (기존 페이지 위에 띄울 때)
   ============================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.auth-modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 32px;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ==============================
   로딩 상태
   ============================== */
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-white);
}

.btn[disabled] .auth-loading {
  opacity: 1;
}

/* ==============================
   반응형
   ============================== */
@media (max-width: 480px) {
  .auth-container,
  .auth-modal-card {
    padding: 28px 20px;
  }

  .auth-logo-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .auth-logo-text {
    font-size: 24px;
  }

  .auth-title {
    font-size: 20px;
  }
}

/* ========================================
   다크모드
======================================== */

[data-theme="dark"] .auth-page,
[data-theme="dark"] .auth-page-container {
  background: var(--bg-primary);
}

/* ==============================
   섹션 라벨 (회원가입 폼)
   ============================== */
.auth-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .auth-container,
[data-theme="dark"] .auth-modal-card {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

