* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f5f5f5; color: #333; min-height: 100vh; display: flex; flex-direction: column; }

/* ─── 상단 바 ─── */
.top-bar { background: #ffffff; border-bottom: 1px solid #e0e0e0; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.top-bar h1 { font-size: 20px; font-weight: 600; color: #1a1a1a; }
.top-bar-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #595959; text-decoration: none; transition: all 0.2s; }
.nav-link:hover { background: #f5f5f5; color: #1890ff; }

/* ─── 메인 컨테이너 ─── */
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 40px 36px; width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 24px; font-weight: 700; color: #1a1a1a; text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { font-size: 14px; color: #8c8c8c; text-align: center; margin-bottom: 28px; }

/* ─── 폼 필드 ─── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #262626; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 11px 14px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; color: #262626; background: #fff; transition: all 0.2s; outline: none; }
.form-group input:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.1); }
.form-group input::placeholder { color: #bfbfbf; }
.form-group .field-hint { font-size: 12px; color: #8c8c8c; margin-top: 4px; }
.form-group .field-warn { font-size: 12px; color: #ff4d4f; margin-top: 4px; display: none; }
.form-group .field-warn.show { display: block; }
.form-group input.input-error { border-color: #ff4d4f; }
.form-group input.input-error:focus { border-color: #ff4d4f; box-shadow: 0 0 0 2px rgba(255,77,79,0.1); }

/* ─── 버튼 ─── */
.btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary { background: #1890ff; color: white; width: 100%; padding: 12px; font-size: 15px; font-weight: 600; }
.btn-primary:hover { background: #0077ea; }
.btn-primary:disabled { background: #bfbfbf; cursor: not-allowed; }

/* ─── Google 로그인 버튼 ─── */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }
.auth-divider span { font-size: 12px; color: #8c8c8c; white-space: nowrap; }
.btn-google { width: 100%; padding: 11px 16px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: #262626; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; }
.btn-google:hover { border-color: #4285f4; background: #f8faff; }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-google svg { flex-shrink: 0; }

/* ─── 링크 ─── */
.auth-links { margin-top: 20px; text-align: center; font-size: 13px; color: #8c8c8c; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: #1890ff; text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .separator { display: inline-block; margin: 0 8px; color: #d9d9d9; }

/* ─── 에러 메시지 ─── */
.form-error { background: #fff2f0; border: 1px solid #ffccc7; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #ff4d4f; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }

/* ─── 스텝 표시 ─── */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.step { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #f0f0f0; color: #8c8c8c; }
.step.active { background: #1890ff; color: #fff; }
.step.done { background: #52c41a; color: #fff; }
.step-line { width: 40px; height: 2px; background: #f0f0f0; }
.step-line.done { background: #52c41a; }

/* ─── 토스트 ─── */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.18); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; max-width: 320px; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: #1890ff; } .toast-success { background: #52c41a; } .toast-error { background: #ff4d4f; }

/* ─── 인라인 버튼 입력 ─── */
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; min-width: 0; }
.btn-secondary { padding: 10px 16px; border: 1px solid #1890ff; border-radius: 6px; background: #fff; color: #1890ff; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.btn-secondary:hover { background: #e6f7ff; }
.btn-secondary:disabled { border-color: #d9d9d9; color: #bfbfbf; background: #f5f5f5; cursor: not-allowed; }
.form-group input[readonly] { background: #f5f5f5; color: #8c8c8c; cursor: not-allowed; }

/* ─── 카카오 로그인 버튼 ─── */
.btn-kakao { width: 100%; padding: 11px 16px; border: none; border-radius: 6px; background: #FEE500; color: #191919; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; margin-top: 8px; }
.btn-kakao:hover { background: #F0D800; }
.btn-kakao:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-kakao svg { flex-shrink: 0; }

/* ─── 반응형 ─── */
@media (max-width: 1024px) {
    .top-bar { padding: 0 24px; }
    .top-bar h1 { font-size: 18px; }
}
@media (max-width: 768px) {
    .top-bar { height: 56px; padding: 0 16px; }
    .auth-container { padding: 24px 12px; }
    .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .top-bar { height: 50px; padding: 0 12px; }
    .top-bar h1 { font-size: 16px; }
    .auth-card { padding: 24px 16px; }
    .auth-card h2 { font-size: 20px; }
    .toast-container { bottom: 12px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
    .step-indicator { gap: 4px; }
    .step-line { width: 24px; }
    .step { width: 28px; height: 28px; font-size: 12px; }
}
