/* 로그인 문 (shared/auth.js). 색은 불러오는 화면의 :root 값을 그대로 쓴다 (--bg, --paper, --accent …) */
body.auth-lock { overflow: hidden; }
.auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: var(--bg); overflow-y: auto; }
.auth-card { width: 100%; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow, none); }
.auth-brand { display: flex; align-items: center; gap: 10px; padding: 18px 22px; color: var(--side-fg, #fff);
  background: linear-gradient(180deg, var(--side, #c0182c), var(--side-2, #940f20)); }
.auth-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: rgb(255 255 255 / .14); }
.auth-brand b { display: block; font-size: 15px; }
.auth-brand small { color: var(--side-muted, #f6b9bf); font-size: 12px; }
.auth-body { padding: 22px; display: grid; gap: 14px; }
.auth-body h1 { margin: 0; font-size: 20px; font-weight: 600; }
.auth-body form { display: grid; gap: 12px; }
.auth-fld { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.auth-fld input { font: inherit; font-size: 15px; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; }
.auth-fld input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(192 24 44 / .12); }
.auth-btn { border: 0; border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; }
.auth-btn:disabled { opacity: .5; cursor: wait; }
.auth-btn.ghost { background: none; color: var(--accent); border: 1px solid var(--line); }
.auth-msg { margin: 0; min-height: 1.5em; font-size: 13px; color: var(--muted); }
.auth-msg[data-kind="bad"] { color: var(--accent); font-weight: 600; }
.auth-text { margin: 0; color: var(--muted); line-height: 1.6; }
.auth-who { margin: 0; font-size: 13px; background: var(--soft); border-radius: 8px; padding: 8px 10px; }

/* 로그인한 사람 (사이드바 아래) */
.me { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: rgb(255 255 255 / .08); font-size: 12.5px; }
.me b { font-size: 13.5px; }
.me small { color: var(--side-muted); }
.me button { justify-self: start; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; opacity: .85; }
