/* =========================================
   사주ON — 회원가입/로그인 전용 CSS
   ========================================= */

body.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-base);
  font-family: var(--font-main);
}

/* ===== 레이아웃 ===== */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== 왼쪽 브랜드 패널 ===== */
.auth-brand-panel {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(212,175,55,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212,175,55,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
}
.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 40px;
}
.auth-logo span { color: var(--accent-light); font-style: italic; }
.auth-brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}
.auth-brand-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
}
.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.auth-feat i {
  color: var(--accent-light);
  width: 16px;
  text-align: center;
}
.auth-feat strong { color: var(--accent-light); }
.auth-brand-reviews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-mini-review {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-style: italic;
}

/* ===== 오른쪽 폼 패널 ===== */
.auth-form-panel {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}
.auth-form-inner {
  width: 100%;
  max-width: 480px;
}

/* ===== 탭 ===== */
.auth-tabs {
  display: flex;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
  border: 1.5px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-main);
}
.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== 폼 ===== */
.auth-form { animation: authSlideIn 0.3s ease; }
@keyframes authSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.auth-form-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.auth-form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.auth-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== 필드 ===== */
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.auth-field label i { color: var(--primary); margin-right: 5px; font-size: 0.8rem; }
.label-opt { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--bg-base);
  transition: all 0.2s;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,95,79,0.08);
}
.auth-input.error { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198,40,40,0.08); }
.auth-input.success { border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,0.08); }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.pw-toggle:hover { color: var(--primary); }
.auth-field-error { display: block; font-size: 0.78rem; color: #c62828; margin-top: 5px; min-height: 18px; }
.auth-field-success { display: block; font-size: 0.78rem; color: #2e7d32; margin-top: 5px; }

/* 비밀번호 강도 */
.pw-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: all 0.3s;
}
.pw-strength-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* 인증 버튼 */
.verify-btn {
  padding: 11px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.verify-btn:hover { background: var(--primary-dark); }
.verify-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 성별 그룹 */
.gender-group { display: flex; gap: 14px; }
.gender-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
}
.gender-opt input[type="radio"] { accent-color: var(--primary); }

/* ===== 옵션 ===== */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.auth-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
}
.auth-check-label input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.auth-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

/* ===== 약관 동의 ===== */
.auth-agree-wrap {
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.agree-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.agree-all-text { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); }
.agree-list { display: flex; flex-direction: column; gap: 8px; }
.agree-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-body);
  cursor: pointer;
  line-height: 1.5;
}
.agree-item input[type="checkbox"] { accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ===== 제출 버튼 ===== */
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s;
  box-shadow: 0 4px 14px rgba(44,95,79,0.28);
  margin-bottom: 16px;
}
.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,95,79,0.36); }
.auth-submit-btn:active { transform: translateY(0); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== 구분선 ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== 소셜 로그인 ===== */
.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.social-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.social-btn--kakao {
  background: #FEE500;
  color: #3C1E1E;
}
.social-btn--kakao:hover { background: #f0d800; }
.social-btn--naver {
  background: #03C75A;
  color: var(--white);
}
.social-btn--naver:hover { background: #02b34e; }
.naver-n {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== 전환 링크 ===== */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== 회원가입 완료 ===== */
.auth-success-screen {
  text-align: center;
  padding: 20px 0;
  animation: authSlideIn 0.4s ease;
}
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.auth-success-screen h2 { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.success-name { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; }
.success-point-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-pale);
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.success-point-box strong { font-size: 1.4rem; }
.success-point-box i { color: var(--accent); font-size: 1.2rem; }

/* ===== 토스트 ===== */
.auth-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 32px 20px; }
  .auth-form-inner { max-width: 440px; }
}
@media (max-width: 480px) {
  .auth-form-2col { grid-template-columns: 1fr; }
  .auth-form-panel { padding: 24px 16px; }
}
