/* 회원 화면(로그인·가입·비밀번호): 헤더 없는 가운데 카드.
   모양 규칙: 버튼은 알약, 입력칸 10px, 카드 16px. */
:root { --danger: #c8372b; }

body.auth-page { background: var(--bg-soft); }
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.auth-card, .auth-sub { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.auth-card { padding: 36px 32px 32px; }
.auth-card .logo { display: block; text-align: center; }
.auth-title { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.auth-lead { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* 자물쇠: 몸통 + 고리 */
.lock { position: relative; width: 16px; height: 12px; margin-top: 7px; border-radius: 3px; background: var(--ink); flex: 0 0 16px; }
.lock::before { content: ""; position: absolute; left: 3px; bottom: 10px; width: 10px; height: 8px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }

/* 입력 */
.field { margin-top: 18px; }
.field > label, .field .lbl { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .opt { font-weight: 500; color: var(--muted); }
.auth input[type="text"], .auth input[type="email"], .auth input[type="password"], .auth input[type="tel"], .auth select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #ccd3cf; border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.auth select { padding: 0 8px; appearance: auto; }
.auth input::placeholder { color: #8a918d; }
.auth input:focus, .auth select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth [aria-invalid="true"], .auth [aria-invalid="true"]:focus { border-color: var(--danger); }
.auth [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #f6dedb; }
.help { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.help.bad, .err { color: var(--danger); }
.err { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.err:empty { display: none; }
.form-err { margin-top: 16px; }

.birth { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.birth .lbl.span3 { grid-column: span 3; }
.birth .lbl { margin-bottom: 0; }

.check { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.field.check { margin-top: 20px; }

/* 버튼 */
.btn { width: 100%; height: 52px; margin-top: 24px; border-radius: 100px; font-size: 16px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #2a2e2c; }
.btn.green { background: var(--accent); }
.btn.green:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn:focus-visible, .linkish:focus-visible, .step-head:focus-visible, .chev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.under { text-decoration: underline; text-underline-offset: 3px; }
.right-link { margin-top: 14px; text-align: right; font-size: 13px; color: var(--muted); }
.right-link a:hover, .auth-sub a:hover { color: var(--accent); }

/* 아래 별도 카드 + 저작권 */
.auth-sub { margin-top: 12px; padding: 20px 32px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.auth-sub a { font-weight: 700; color: var(--ink); }
.auth-sub small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.auth-copy { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* 가입 2단계 아코디언 */
.step { margin-top: 22px; border-top: 1px solid var(--line); }
.step + .step { margin-top: 0; }
.step-head { width: 100%; padding: 18px 0 4px; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 17px; font-weight: 700; }
.step-head:disabled { cursor: default; }
.step-head .no { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.step.done .step-head .no { background: var(--accent); }
.step-sum { padding: 4px 0 18px 34px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.step-sum .linkish { margin-left: 6px; }
.step-body { padding-bottom: 6px; }

/* 약관 */
.terms { margin-top: 14px; }
.term { padding: 12px 0; }
.term.all { padding-top: 4px; border-bottom: 1px solid var(--line); }
.term.all .check { font-size: 15px; font-weight: 700; }
.term-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req { color: var(--accent); font-weight: 700; }
.chev { width: 32px; height: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.chev[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.term-body { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.term-body ol { padding-left: 18px; }
.term-full { margin-top: 10px; max-height: 180px; overflow: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.term-full p + p { margin-top: 8px; }
.linkish { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent); }
.term-body .linkish { margin-top: 6px; }

/* 비밀번호 찾기 결과 */
.done-msg { margin-top: 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.devbox { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); font-size: 13px; line-height: 1.6; }
.devbox b { display: block; color: var(--accent-strong); }
.devbox a { display: block; margin-top: 6px; color: var(--accent-strong); text-decoration: underline; overflow-wrap: anywhere; }
a.btn { text-decoration: none; }

@media (max-width: 760px) {
  .auth { padding: 32px var(--gutter); justify-content: flex-start; }
  .auth-card { padding: 28px 22px 26px; }
  .auth-sub { padding: 18px 22px; }
  .birth { gap: 6px; }
}
