/* ═══════════════════════════════════════════
   auth.css — 로그인 & 회원가입 페이지
   auth/login.html, auth/signup.html
═══════════════════════════════════════════ */

/* ─── Input ─── */
.input-field {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa;
}
.input-field:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(var(--red-rgb),0.08); }
.input-field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Buttons ─── */
.btn-primary {
  width: 100%; padding: 0.8rem;
  background: var(--red); color: #fff;
  border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover:not(:disabled) { background: var(--red-dk); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  padding: 0.75rem 1.2rem;
  background: #fff; border: 1.5px solid var(--red);
  border-radius: 8px; font-weight: 500; font-size: 0.88rem;
  cursor: pointer; color: var(--red); white-space: nowrap;
  transition: background 0.15s;
}
.btn-outline:hover:not(:disabled) { background: #fef2f2; }
.btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-google {
  width: 100%; padding: 0.75rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; color: var(--mid);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover { border-color: #d1d5db; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ─── Messages ─── */
.error-msg   { color: var(--red); font-size: 0.82rem; margin-top: 0.4rem; display: none; }
.success-msg { color: #16a34a; font-size: 0.82rem; margin-top: 0.35rem; }

/* ─── Step indicator (회원가입) ─── */
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; transition: all 0.2s; }
.step-dot.active   { background: var(--red); color: #fff; }
.step-dot.done     { background: #dcfce7; color: #16a34a; }
.step-dot.inactive { background: #f3f4f6; color: #9ca3af; }

/* ─── Card animation ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.card       { animation: fadeUp 0.35s ease both; }
.step-panel { animation: fadeUp 0.25s ease both; }

/* ─── Step panel 기본 숨김 (JS가 .is-active 토글) ─── */
.step-panel           { display: none; }
.step-panel.is-active { display: block; }

/* ─── 코드 박스 숨김 ─── */
.code-box             { display: none; }
.code-box.is-shown    { display: block; }

/* ─── 성공 메시지 기본 숨김 ─── */
.success-msg          { display: none; }
.success-msg.is-shown { display: block; }

/* ─── 에러 메시지 표시 ─── */
.error-msg.is-shown   { display: block; }

/* ─── 버튼 로딩 상태 ─── */
.btn-primary.is-loading { opacity: 0.6; pointer-events: none; }

/* ─── Password strength bar ─── */
.pw-bar { height: 3px; border-radius: 2px; background: #e5e7eb; transition: background 0.3s; }
.pw-bar.lit-weak   { background: var(--red); }
.pw-bar.lit-fair   { background: #f59e0b; }
.pw-bar.lit-strong { background: #22c55e; }
