/* app/unit-login.css — 통합거래 콘솔 잠금 화면
 *
 * 공용 토큰(app/tokens.css)만 쓰고 색·모서리 값을 새로 만들지 않는다. 복기 저널의
 * 잠금 화면과 같은 구조를 유지해, 두 주소를 오가는 사람이 다시 배울 것이 없게 한다.
 */
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); -webkit-font-smoothing: antialiased;
}
.wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 30px 26px; box-shadow: var(--shadow-2); animation: fadeUp .3s ease;
}
.login-theme-toggle { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 10; width: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.mark { width: 36px; height: 36px; display: block; flex: none; }
/* 브랜드 표식이라 본문 최소 크기 규칙의 예외다(DESIGN-LANGUAGE 표 참고). */
h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: 12px; color: var(--text-3); font-family: var(--font-number); }
p.lead { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 20px; }
p.lead b { color: var(--text-strong); }

button {
  width: 100%; min-height: 44px; border: none; border-radius: 6px; padding: 13px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:disabled { opacity: .6; cursor: default; }
.ghost { background: var(--surface-control); border: 1px solid var(--border-strong); color: var(--text-strong); margin-top: 10px; }
button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 6px;
  padding: 12px 13px; color: var(--text); font-size: 14px; font-family: var(--font-number); margin-bottom: 12px;
}
input:focus { outline: none; border-color: var(--accent-text); }

.msg { font-size: 12.5px; margin-top: 14px; line-height: 1.5; min-height: 18px; }
.err { color: var(--neg); }
.ok { color: var(--accent-text); }
.muted { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 16px; }
.muted .out { color: var(--accent-text); }
.hidden { display: none; }

@media (max-width: 640px) {
  .login-theme-toggle { width: 44px; }
  /* iOS가 입력칸에서 화면을 자동 확대하지 않도록 16px 아래로 내리지 않는다. */
  .card input { font-size: 16px; }
}
