/* 이 페이지만 body 배경이 #f0f4f9라 공유 --bg 기본값(#f8fafc)을 덮어쓴다. */
:root { --bg: #f0f4f9; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f172a; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }

.login-card { display: flex; background: var(--card); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; max-width: 960px; min-height: 580px; overflow: hidden; }

/* 좌측 파란색 패널 */
.left-panel { flex: 1.1; background: linear-gradient(135deg, #076043 0%, #0a7a52 100%); padding: 48px 40px; color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; }
.brand-logo { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.main-title { font-size: 26px; font-weight: 800; line-height: 1.35; margin-top: 24px; margin-bottom: 12px; }
.sub-title { font-size: 14px; color: #bfe8d5; line-height: 1.5; margin-bottom: 32px; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 14px 16px; display: flex; items-center; gap: 14px; }
.feature-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 18px; flex-shrink: 0; }
.feature-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: #d6f3e8; line-height: 1.3; }

.copyright { font-size: 12px; color: #9fd9c0; margin-top: 30px; }
.copyright-links { margin-bottom: 6px; }
.copyright-links a { color: #bfe8d5; text-decoration: underline; }

/* 우측 폼 패널 */
.right-panel { flex: 0.9; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 32px; }
.tab-btn { flex: 1; text-align: center; padding-bottom: 12px; font-size: 16px; font-weight: 700; color: var(--muted-2); border: none; background: none; cursor: pointer; position: relative; }
.tab-btn.active { color: var(--brand); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background-color: var(--brand); border-radius: 3px 3px 0 0; }

.form-group { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
input { width: 100%; padding: 12px 16px; border: 1px solid var(--line-input); border-radius: 10px; font-size: 16px; outline: none; transition: border-color 0.2s; }
input:focus { border-color: var(--brand); }

.forgot-link { text-align: right; display: block; font-size: 12px; color: var(--muted); text-decoration: none; margin-top: 8px; margin-bottom: 24px; }
.forgot-link:hover { text-decoration: underline; }

/* 이용약관/개인정보 동의. disclosure.css의 "결정 버튼 바로 앞에 눈에 띄게"
   원칙을 그대로 따른다 — 가입 버튼 위, 체크 안 하면 제출 자체가 막힌다
   (checkbox required 속성으로 브라우저가 기본 검증한다). */
.agree-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.agree-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-bottom: 0; cursor: pointer; }
.agree-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin: 0; cursor: pointer; }
.agree-required { color: var(--brand); font-weight: 700; }
.agree-row a { color: var(--ink-2); text-decoration: underline; }

.btn-submit { width: 100%; padding: 14px; background: var(--brand); color: #ffffff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--brand-hover); }
.btn-submit-green { background-color: var(--success); }

/* 카카오 로그인. 국내 사용자가 가장 익숙한 소셜 로그인이라 신뢰감에 영향이
   크다는 피드백으로 추가했다 — 카카오 브랜드 가이드의 노란 배경(#FEE500) +
   진한 텍스트(#191600) 조합을 그대로 쓴다(다크 모드에서도 동일, 브랜드 버튼은
   테마를 안 탄다). */
.oauth-divider { display: flex; align-items: center; text-align: center; margin: 18px 0; font-size: 12px; color: var(--muted); }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.oauth-divider span { padding: 0 10px; }
.btn-kakao { display: flex; width: 100%; padding: 14px; background: #FEE500; color: #191600; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; align-items: center; justify-content: center; gap: 6px; text-decoration: none; box-sizing: border-box; }
.btn-kakao:hover { background: #fada0a; }
.oauth-notice { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; margin-top: 10px; }
.oauth-notice a { color: var(--muted); text-decoration: underline; }

/* 재설정/회원가입 폼은 기본 숨김. login.js가 탭 전환 시 .style.display로 직접 토글한다. */
#forgotForm, #findUsernameForm, #registerForm { display: none; }

@media (max-width: 768px) {
  .login-card { flex-direction: column; }
  .left-panel { padding: 32px 24px; }
}
