/* 로그인 카드 · 계정 메뉴 (auth.js, 목업 docs/mockups/login.html). 인트로의 계약서 O가 가운데로 커져 이 카드가 된다 — 오른쪽 위 접힌 모서리가 그 흔적. */
.LoginLayer { position: fixed; inset: 0; z-index: 1002; display: grid; place-items: center; padding: 16px; overflow-y: auto; visibility: hidden; }
.LoginLayer.on { visibility: visible; }
.LoginLayer.modal { background: rgba(20, 24, 30, .32); }
.LoginCard { position: relative; width: min(400px, 100%); padding: 34px 36px 28px; border-radius: var(--r-panel); background: var(--card); display: flex; flex-direction: column; gap: 16px; color: var(--text); font-size: 15px; }
.LoginLayer.modal .LoginCard { box-shadow: 0 18px 50px rgba(20, 24, 30, .22); }
.LoginCard::after { content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 0 var(--r-panel) 0 10px; background: var(--accent-soft); box-shadow: inset 1px -1px 0 rgba(29, 94, 240, .22); }
.LoginCard > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--easeOutExpo), transform .9s var(--easeOutExpo); }
.LoginLayer.on .LoginCard > * { opacity: 1; transform: none; }
.LoginLayer.on .LoginCard > :nth-child(2) { transition-delay: .05s; }
.LoginLayer.on .LoginCard > :nth-child(3) { transition-delay: .09s; }
.LoginLayer.on .LoginCard > :nth-child(4) { transition-delay: .15s; }
.LoginLayer.on .LoginCard > :nth-child(5) { transition-delay: .22s; }
.LoginLayer.out .LoginCard > * { opacity: 0; transform: none; transition: opacity .25s; transition-delay: 0s; }
.LoginCard.shake { animation: lg-shake .45s var(--easeOutExpo); }
@keyframes lg-shake { 20% { transform: translateX(-8px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.lg-brand { display: flex; align-items: center; gap: 8px; font: 800 18px/1 var(--display); font-stretch: 118%; letter-spacing: -.01em; color: var(--fg); }
.lg-brand svg { width: 16px; height: 20px; }
.LoginCard h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--fg); text-wrap: balance; }
.LoginCard h2 + p { margin: -12px 0 0; font-size: 14px; color: var(--muted); }
.lg-body { display: flex; flex-direction: column; gap: 14px; }
.lg-fields { display: flex; flex-direction: column; gap: 12px; }
.lg-f label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.lg-f .lg-opt { font-weight: 400; color: var(--muted); }
.lg-f .box { position: relative; }
.lg-f input { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface2); font: 15px var(--font); color: var(--fg); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s, background .25s; }
.lg-f input::placeholder { color: var(--dim); }
.lg-f input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg-f.bad input { box-shadow: inset 0 0 0 1.5px var(--red); }
.lg-eye { position: absolute; right: 6px; top: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 600 12.5px var(--font); color: var(--muted); cursor: pointer; }
.lg-eye:hover { background: #fff; color: var(--fg); }
.lg-keep { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.lg-keep input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.lg-err { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--red); }
.lg-err:empty { display: none; }
.lg-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; color: var(--fg); }
.lg-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.lg-rules li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.lg-rules li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.lg-rules li.ok { color: var(--fg); }
.lg-rules li.ok::before { background: var(--green); box-shadow: none; }
.lg-go { height: 48px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font: 600 15px var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .3s, transform .25s var(--easeOutExpo); }
.lg-go:hover { background: var(--fg); }
.lg-go:active { transform: scale(.97); }
.lg-go:disabled { background: var(--dim); cursor: default; transform: none; }
.lg-go.busy { background: var(--fg); }
.lg-go.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lg-spin .8s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-cancel { align-self: center; border: 0; background: none; padding: 2px 6px; font: 600 13px var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lg-cancel:hover { color: var(--fg); }
.lg-foot { margin: 0; padding-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); box-shadow: inset 0 1px 0 var(--line); }
.lg-foot p { margin: 0; }
/* 회원가입 (11-16, 목업 https://claude.ai/artifact/Cyf8fYPN3AzzMzpzowS8Ec) */
.LoginCard.wide { width: min(440px, 100%); }
.lg-join { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--accent-soft); text-align: left; font: inherit; color: var(--fg); cursor: pointer; transition: background .25s; }
.lg-join:hover { background: var(--surface2); }
.lg-join span { display: flex; flex-direction: column; gap: 2px; }
.lg-join b { font-size: 14px; }
.lg-join small { font-size: 12.5px; color: var(--muted); }
.lg-join em { font-style: normal; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.lg-sec { margin: 2px 0 -4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lg-hint:empty { display: none; }
.lg-hint.ok { color: var(--green); }
.lg-hint.no { color: var(--red); }
.lg-rules.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.lg-agree { align-items: flex-start; line-height: 1.45; }
.lg-agree input { margin-top: 2px; }
.lg-agree.bad { color: var(--red); }
.lg-terms { border: 0; background: none; padding: 0 2px; font: 600 12.5px var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 420px) { .lg-two { grid-template-columns: minmax(0, 1fr); } .LoginCard { padding: 26px 20px 22px; } }
/* 로그인 뒤 MOREN이 돌아올 때 O는 줄어든 카드 밑에 바로 놓인다 */
.mark.snap .o { transition: none; }

/* 계정 동그라미 · 메뉴 */
button.user-av { border: 0; padding: 0; cursor: pointer; font-family: var(--font); }
button.user-av:empty { visibility: hidden; }
.AcctMenu { position: fixed; z-index: 900; width: 232px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(20, 24, 30, .16); display: flex; flex-direction: column; gap: 2px; }
.AcctMenu[hidden] { display: none; }
.AcctMenu .who { padding: 8px 10px 10px; margin-bottom: 4px; box-shadow: inset 0 -1px 0 var(--line); font-size: 12.5px; color: var(--muted); }
.AcctMenu .who b { display: block; font-size: 14.5px; color: var(--fg); }
.AcctMenu button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font: 14px var(--font); color: var(--fg); cursor: pointer; }
.AcctMenu button:hover { background: var(--surface2); }
.AcctMenu button.out { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .LoginLayer:not(.modal) { background: var(--bg); } }
