/* 로그인·가입·비밀번호 화면 공용(세 사이트 layouts/auth.php): 빛번짐·점 격자 바탕 가운데 로고(.auth-logo) + 꼬리표(.auth-badge) + 흰 카드(.form-wrap).
   승인제 사이트라 홍보 면 없이 카드 하나. 바탕 색은 --auth-*(다크 따로). 판매·공급은 /assets/auth-box.css, 팜은 /ui/auth-box.css */
:root { --auth-glow1: rgba(47, 107, 255, .16); --auth-glow2: rgba(31, 58, 104, .14); --auth-glow3: rgba(120, 170, 255, .14); --auth-dot: rgba(31, 58, 104, .14); --auth-ring: rgba(47, 107, 255, .14); --auth-ring-fill: rgba(47, 107, 255, .035); --auth-ring-fill2: rgba(47, 107, 255, .02); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --auth-glow1: rgba(47, 107, 255, .18); --auth-glow2: rgba(107, 149, 255, .1); --auth-glow3: rgba(47, 107, 255, .08); --auth-dot: rgba(255, 255, 255, .07); --auth-ring: rgba(107, 149, 255, .16); --auth-ring-fill: rgba(107, 149, 255, .04); --auth-ring-fill2: rgba(107, 149, 255, .02); } }
:root[data-theme="dark"] { --auth-glow1: rgba(47, 107, 255, .18); --auth-glow2: rgba(107, 149, 255, .1); --auth-glow3: rgba(47, 107, 255, .08); --auth-dot: rgba(255, 255, 255, .07); --auth-ring: rgba(107, 149, 255, .16); --auth-ring-fill: rgba(107, 149, 255, .04); --auth-ring-fill2: rgba(107, 149, 255, .02); }
.auth { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; word-break: keep-all;
  background: radial-gradient(60vw 50vh at 12% 8%, var(--auth-glow1), transparent 70%), radial-gradient(55vw 55vh at 92% 92%, var(--auth-glow2), transparent 70%), radial-gradient(40vw 40vh at 85% 10%, var(--auth-glow3), transparent 70%), var(--pc-page); }
/* 바탕 장식: 옅은 점 격자(가운데로 갈수록 사라짐) + 큰 흐린 원 두 개 */
.auth::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--auth-dot) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 22%, #000 75%); mask-image: radial-gradient(ellipse at center, transparent 22%, #000 75%); }
.auth::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -180px; border-radius: 50%; border: 1px solid var(--auth-ring); box-shadow: 0 0 0 70px var(--auth-ring-fill), 0 0 0 140px var(--auth-ring-fill2); }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 48px 16px 24px; }
.auth-logo { display: block; margin-bottom: 24px; text-align: center; font-size: 32px; color: var(--logo-ink); }
.auth-badge { margin: -12px 0 18px; text-align: center; }
.form-wrap { width: 100%; max-width: 400px; margin: 0 auto; padding: 36px 32px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 32, 60, .06); }
.form-wrap.wide { max-width: 480px; }
.form-wrap .title { margin: 0; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -0.8px; }
.form-wrap .subtitle { margin: 8px 0 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.form-wrap > form { margin-top: 28px; }
.form-wrap .field { margin-bottom: 18px; }
.auth-inline-row { display: flex; gap: 8px; align-items: stretch; }
.auth-inline-row input { flex: 1; min-width: 0; }
.auth-inline-row .btn.sm { flex-shrink: 0; height: 50px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.form-wrap label { padding-bottom: 0; color: var(--ink2); }
.form-wrap input:not([type=checkbox]):not([type=file]) { height: 50px; padding: 0 14px; font-size: 16px; }
.form-wrap input[type=file] { box-shadow: none; height: auto; padding: 0; font-size: 14px; }
.form-wrap .btn.full { width: 100%; height: 52px; font-size: 16px; font-weight: 600; margin-top: 8px; }
.form-wrap .hint { font-size: 13px; }
/* auth-field-hint: 입력란 아래 한 줄(가운데). auth-field-inline: 왼쪽(약관·비밀번호 확인 등) */
.auth-field-hint, .auth-field-inline { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.auth-field-hint { text-align: center; }
.auth-field-inline { text-align: left; }
.auth-field-hint.err, .auth-field-inline.err { color: var(--red); }
.auth-field-hint.ok, .auth-field-inline.ok { color: var(--green); }
.auth-field-hint[hidden], .auth-field-inline[hidden] { display: none; }
.form-wrap input.field-bad, .m-card input.field-bad { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-line, rgba(220, 38, 38, .35)); }
.m-card .pwd-rules, .form-wrap .pwd-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.m-card .pwd-rules li, .form-wrap .pwd-rules li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.m-card .pwd-rules li::before, .form-wrap .pwd-rules li::before { content: '✕'; font-size: 11px; font-weight: 700; color: var(--red); }
.m-card .pwd-rules li.on::before, .form-wrap .pwd-rules li.on::before { content: '✓'; color: var(--green); }
.m-card .pwd-rules li.on, .form-wrap .pwd-rules li.on { color: var(--ink); }
.form-wrap .msg { text-align: center; font-size: 14px; line-height: 1.55; border-radius: 10px; }
.auth .site-footer { position: relative; }
.site-footer { width: 100%; padding: 12px 16px; font-size: 12px; line-height: 1.7; text-align: center; color: var(--ink2); }
.site-footer a { margin: 0 6px; color: inherit; text-decoration: underline; }
.site-footer a:hover { color: var(--primary); }

@media (max-width: 520px) { .form-wrap, .form-wrap.wide { padding: 28px 20px 24px; } }
.auth-footer { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; font-size: 14px; color: var(--ink2); }
.auth-footer a, .auth-footer button { margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; }
.auth-footer a.auth-footer-sub { color: var(--ink2); font-weight: 500; }
.auth-footer a.auth-footer-sub:hover { color: var(--ink); text-decoration: underline; }
.auth-footer-muted { font-size: 13px; font-weight: 500; color: var(--ink2); }
