/* LD PASS 통합 인증 — 신뢰형 미니멀 (잉크 모노크롬, lodong 아이덴티티). */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  --ink: #16171b;
  --ink2: #2e2f35;
  --mut: #6b6f76;
  --mut2: #9a9ea6;
  --line: #e7e7e3;
  --bg: #f4f4f1;
  --paper: #ffffff;
  --danger: #c0392b;
  --green: #0a8754;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(20, 20, 30, 0.06);
  padding: 30px 28px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: #14151a url("/img/ldpass-icon-square.png") center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; flex: 0 0 auto;            /* 패딩 있는 클린 LD 아이콘, "LD" 텍스트 숨김 */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--mut); margin-top: 1px; }

.title { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; }
.title b { font-weight: 800; }
.desc { font-size: 13px; color: var(--mut); margin: 0 0 18px; line-height: 1.5; }
.desc b { color: var(--ink); font-weight: 700; }

.alert {
  background: #fdecea; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  color: var(--danger); font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 14px;
}
.notice {
  background: #e9f4ee; border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  color: var(--green); font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 14px;
}

.form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--ink); }

.field input, .id-input {
  width: 100%; height: 46px; padding: 0 13px; font-size: 14.5px; font-family: var(--font);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 23, 27, 0.08); }

.id-input { display: flex; align-items: center; padding: 0; overflow: hidden; }
.id-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 23, 27, 0.08); }
.id-input input { border: none; box-shadow: none !important; height: 44px; flex: 1; }
.id-input .domain { padding: 0 13px; font-size: 13.5px; color: var(--mut2); white-space: nowrap; }

.btn-primary {
  height: 48px; width: 100%; margin-top: 4px;
  background: var(--ink); color: #fff; border: none; border-radius: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .14s;
}
.btn-primary:hover { background: var(--ink2); }
.btn-ghost {
  height: 42px; width: 100%;
  background: transparent; color: var(--mut); border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
}

.foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--mut); }
.foot a { color: var(--ink); font-weight: 700; text-decoration: none; margin-left: 4px; }
.foot a:hover { text-decoration: underline; }

.legal { font-size: 11.5px; color: var(--mut2); text-align: center; margin-top: 14px; }

/* consent */
.scope-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.scope-row {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
}
.scope-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ink); flex: 0 0 auto; }
.scope-row b { display: block; font-size: 13.5px; font-weight: 600; }
.scope-row em { display: block; font-size: 12px; color: var(--mut); font-style: normal; margin-top: 2px; }
.form-cancel { margin-top: 9px; }

/* 약관 동의 */
.agree { margin: 4px 0 2px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.agree-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.agree-row.all { font-weight: 700; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.agree-row input { width: 17px; height: 17px; accent-color: var(--ink); flex: 0 0 auto; }
.agree-sub { display: flex; flex-direction: column; gap: 8px; padding-top: 9px; }
.agree-sub .agree-row { color: var(--mut); }
.agree-row em { color: var(--green); font-style: normal; font-weight: 700; }
.agree-row a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* 문서(약관/방침) 페이지 */
.doc-wrap { min-height: 100vh; background: var(--bg); padding: 40px 20px; }
.doc {
  max-width: 720px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: 34px 34px 28px;
}
.doc .brand { margin-bottom: 14px; }
.doc-meta { font-size: 12.5px; color: var(--mut2); margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; }
.doc p { font-size: 13.5px; color: var(--ink2); line-height: 1.7; margin: 0 0 8px; }
.doc ul { margin: 0 0 8px; padding-left: 18px; }
.doc li { font-size: 13.5px; color: var(--ink2); line-height: 1.7; margin-bottom: 4px; }
.doc b { color: var(--ink); font-weight: 700; }
.doc-back { display: inline-block; margin-top: 24px; font-size: 13px; color: var(--mut); text-decoration: none; }
.doc-back:hover { color: var(--ink); }

/* ── 마이페이지(계정 허브) ── */
.acc-body { background: var(--bg); }
.acc-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.acc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.acc-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.acc-brand .brand-name { font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.acc-top-right { display: flex; align-items: center; gap: 12px; }
.acc-user { font-size: 12.5px; color: var(--mut); }
.btn-ghost-sm { height: 32px; padding: 0 12px; background: transparent; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.btn-ghost-sm:hover { border-color: var(--mut2); }
.btn-primary-sm { height: 34px; padding: 0 14px; margin-left: 10px; background: var(--ink); color: #fff; border: none; border-radius: 8px; font-family: var(--font); font-size: 12.5px; font-weight: 700; cursor: pointer; }

.acc-main { max-width: 940px; margin: 0 auto; padding: 30px 22px 60px; }
.acc-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.acc-sub { font-size: 13.5px; color: var(--mut); margin: 0 0 24px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.acc-card.span2 { grid-column: 1 / -1; }
.acc-card-h { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.acc-card-h-r { font-size: 12.5px; font-weight: 500; color: var(--mut); } .acc-card-h-r b { color: var(--ink); font-weight: 700; }
.acc-sub-h { font-size: 12px; font-weight: 700; color: var(--mut2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }

.acc-profile { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.acc-avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.acc-nick { font-weight: 700; font-size: 15px; } .acc-email { font-size: 12.5px; color: var(--mut); }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.acc-row > span:first-child { color: var(--ink); }
.acc-dim { color: var(--mut); font-size: 12.5px; }
.acc-note { font-size: 11.5px; color: var(--mut2); margin: 12px 0 0; line-height: 1.55; }
.acc-empty { font-size: 13px; color: var(--mut); padding: 16px 0; }

.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: #e9f4ee; color: var(--green); }
.badge.mut { background: #f1f1ee; color: var(--mut); }
.badge.danger { background: #fdecea; color: var(--danger); }

.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.svc-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.svc-info { flex: 1; min-width: 0; } .svc-name { font-weight: 600; font-size: 13.5px; } .svc-scope { font-size: 11.5px; color: var(--mut2); margin-top: 1px; }

.method-list { display: flex; flex-direction: column; gap: 9px; }
.method { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; }
.method-brand { font-weight: 600; } .method-num { color: var(--mut); font-family: var(--mono); } .method-exp { color: var(--mut2); margin-left: auto; }

.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--mut2); text-transform: uppercase; letter-spacing: .03em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tx-table th.r, .tx-table td.r { text-align: right; }
.tx-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.tx-date { color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-desc { color: var(--ink); } .tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-badge { display: inline-flex; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }

.sub-list { display: flex; flex-direction: column; gap: 10px; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; }
.sub-name { font-size: 13.5px; } .sub-name b { font-weight: 700; margin-left: 6px; }
.sub-meta { font-size: 12px; color: var(--mut); margin-top: 3px; }
.sub-act { display: flex; align-items: center; gap: 9px; }

.acc-foot { text-align: center; font-size: 11.5px; color: var(--mut2); margin-top: 30px; }
.acc-foot a { color: var(--mut2); }
@media (max-width: 760px) { .acc-grid { grid-template-columns: 1fr; } }

/* ── 2FA 설정 ── */
.steps { list-style: none; counter-reset: s; margin: 4px 0 18px; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 16px 38px; font-size: 13px; line-height: 1.55; }
.steps > li:before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.steps > li b { color: var(--ink); }
.steps > li span { color: var(--mut); }
.qr-box { margin: 12px 0 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
.qr-box img { display: block; border-radius: 4px; }
.key-fold { margin-top: 6px; }
.key-fold summary { font-size: 12px; color: var(--mut); cursor: pointer; }
.key-box { margin: 8px 0 4px; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--ink); word-break: break-all; }
.key-hint { font-size: 11.5px; color: var(--mut2); }

/* 밝은 인증 카드용 — 다크 로고 배너(흰 메탈릭 로고가 보이게) */
.brand-banner { display: flex; align-items: center; justify-content: center; background: #0d0e12; border-radius: 14px; padding: 20px 16px; margin-bottom: 22px; }
.brand-banner img { width: 62%; max-width: 215px; height: auto; display: block; }
