/* 로그인 상태 표시와 로그인·회원가입 창 */
/* 로그인 상태 */
.account { display: flex; align-items: center; flex-shrink: 0; }
.account-guest, .account-user { display: flex; align-items: center; gap: 6px; }
.account-guest[hidden], .account-user[hidden] { display: none; }
.account-user > span { max-width: 160px; overflow: hidden; color: var(--text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.account-button { padding: 6px 11px; color: var(--navy); border: 1px solid var(--navy); border-radius: 0; background: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.account-button:hover { color: #fff; background: var(--navy); }
.account-primary { color: #fff; background: var(--navy); }
.account-primary:hover { background: var(--navy-soft); }
.account-button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* 로그인·회원가입 창 */
.auth-dialog { width: min(400px, calc(100% - 28px)); padding: 0; color: var(--text); border: 1px solid var(--line-strong); border-top: 4px solid var(--navy); border-radius: 0; }
.auth-dialog::backdrop { background: rgba(0, 15, 60, .55); }
.auth-form { padding: 20px 22px 18px; display: flex; flex-direction: column; }
.auth-head { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.auth-head h2 { margin: 0; font-size: 1.15rem; }
.auth-close { padding: 4px 8px; color: var(--text-soft); border: 1px solid var(--line); border-radius: 0; background: #fff; font: inherit; font-size: .78rem; cursor: pointer; }
.auth-tabs { margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--navy); }
.auth-tabs button { padding: 8px; color: var(--navy); border: 0; border-radius: 0; background: #fff; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.auth-tabs button + button { border-left: 1px solid var(--navy); }
.auth-tabs button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.auth-form label { margin-top: 10px; font-size: .88rem; font-weight: 700; }
.auth-form input { height: 42px; margin-top: 4px; padding: 0 10px; color: var(--text); border: 1px solid #9299a8; border-radius: 0; font: inherit; }
.auth-form input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.auth-form small { margin-top: 3px; color: var(--text-soft); font-size: .74rem; }
.auth-error { margin: 12px 0 0; padding: 8px 10px; color: #a32323; border: 1px solid #e6b3b3; background: #fdf3f3; font-size: .82rem; }
.auth-submit { height: 44px; margin-top: 16px; color: #fff; border: 0; border-radius: 0; background: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: var(--navy-soft); }
.auth-submit:disabled { cursor: wait; opacity: .6; }
.auth-privacy { margin: 10px 0 0; color: var(--text-soft); font-size: .72rem; }
