/* 로그인·사용 등록·약관 화면 — 판정표와 같은 색·글꼴 */
:root {
  --paper: #e7ebee; --sheet: #ffffff; --ink: #18232e; --sub: #586572; --rule: #c3cbd2; --rule-soft: #e1e6ea;
  --focus: #2a5f8f; --brand: #1a4d8f; --error: #c0262d; --ok: #1d6a4f; --in: #fff8d6; --in-line: #d9c27a;
  font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10161b; --sheet: #1a2229; --ink: #e6eaed; --sub: #9aa6b0; --rule: #34414b; --rule-soft: #26313a;
    --focus: #7fb0dc; --brand: #7fa9e0; --error: #ff6b6b; --ok: #5fbf97; --in: #34301c; --in-line: #6f6334;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 48px 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand h1 { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand p { margin: 2px 0 0; color: var(--sub); font-size: .88rem; }
.card {
  width: 100%; max-width: 420px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px 28px 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.card.wide { max-width: 560px; }
.card h2 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.02em; }
.card .lead { margin: 0 0 20px; color: var(--sub); font-size: .9rem; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.field > span em { color: var(--error); font-style: normal; margin-left: 2px; }
.field small { display: block; color: var(--sub); font-size: .78rem; margin-top: 4px; }
input[type=email], input[type=text], input[type=tel], select {
  width: 100%; height: 40px; padding: 0 11px; font: inherit; font-size: 16px; color: var(--ink); /* 16px 미만이면 휴대폰이 확대 */
  background: var(--in); border: 1px solid var(--in-line); border-radius: 4px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input.code { letter-spacing: .5em; font-size: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { input.code { letter-spacing: .2em; font-size: 1.2rem; } } /* 좁은 휴대폰·글자 크게에서 6자리 앞이 잘리던 것(2026-10-09) */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; font-size: .9rem; }
.choices label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); font-weight: 600; }
.choices input { margin: 0; }
.agree { border-top: 1px solid var(--rule-soft); margin-top: 18px; padding-top: 14px; }
.agree label { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin-bottom: 8px; cursor: pointer; }
.agree label input { margin-top: 4px; }
.agree a { color: var(--brand); }
.agree .all { font-weight: 700; padding-bottom: 8px; border-bottom: 1px dashed var(--rule-soft); }
button.go {
  width: 100%; height: 44px; margin-top: 6px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  color: #fff; background: var(--brand); border: 0; border-radius: 4px;
}
button.go:disabled { opacity: .55; cursor: default; }
.links { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; }
.links button { all: unset; cursor: pointer; color: var(--brand); }
.links button:hover { text-decoration: underline; }
.msg { min-height: 1.4em; margin: 10px 0 0; font-size: .88rem; color: var(--error); }
.msg.ok { color: var(--ok); }
.info { background: var(--paper); border-radius: 4px; padding: 12px 14px; font-size: .9rem; margin: 0 0 14px; }
.info dt { color: var(--sub); font-size: .8rem; }
.info dd { margin: 0 0 6px; }
footer { margin-top: auto; padding-top: 28px; color: var(--sub); font-size: .8rem; text-align: center; }
footer a { color: var(--sub); }
[hidden] { display: none !important; }
/* 약관 */
.doc { max-width: 760px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 32px 36px; }
.doc h1 { font-size: 1.3rem; margin: 0 0 4px; }
.doc .ver { color: var(--sub); font-size: .85rem; margin: 0 0 22px; }
.doc h2 { font-size: 1.02rem; margin: 22px 0 6px; }
.doc p, .doc li { font-size: .93rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: .88rem; margin: 6px 0; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper); }
@media (max-width: 520px) {
  body { padding-top: 24px; }
  .card { padding: 22px 18px 18px; }
  .row2 { grid-template-columns: 1fr; }
  .doc { padding: 22px 18px; }
}
/* 한 줄: 입력 칸 + 옆 단추(인증번호 받기) / 남은 시간 */
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; min-width: 0; }
.inline input:disabled { background: var(--paper); border-color: var(--rule); }
button.side { flex: none; height: 40px; padding: 0 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--brand); background: var(--sheet); border: 1px solid var(--brand); border-radius: 4px; white-space: nowrap; }
button.side:disabled { opacity: .55; cursor: default; }
.timer { flex: none; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--error); font-size: .9rem; }
.timer.over { color: var(--sub); }
.btn2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
button.go.sub { background: var(--sheet); color: var(--brand); border: 1px solid var(--brand); }
.links a { color: var(--brand); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* 카카오톡 안 브라우저 안내(inapp.js) */
.inapp { position: sticky; top: 0; z-index: 99; padding: 10px 14px; background: #fff3c4; color: #5a4300; font-size: 14px; line-height: 1.5; border-bottom: 1px solid #e6cf7a; }
