/* B안 — 해가 진 뒤의 디자인(js/theme.js). 허브(현황판) 디자인 — statusboard/frontend/build.py 의 BASE_CSS 와 로그인 화면(LOGIN) 그대로다:
   흰 바탕 위 검은 둥근 카드(24px), 어두운 입력칸, Pretendard 굵은 제목, 스위더 파랑(#0069d0). */
:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --brand: #0069d0;
  --card: #0a0a0a;
  --field: #151517;
  --field-focus: #1a1a1d;
  --field-border: #2c2c30;
  --sub: #9aa3b0;
  --soft: #c3cad3;
  --dim: #6b7280;
  --accent: #7cc4ff;
  --accent-soft: rgba(124, 196, 255, .14);
  --accent-line: rgba(124, 196, 255, .30);
  --check: #7fb4ee;
  --error: #ff8a80;
  --white: #FFFFFF;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--white); }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "system-ui", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

.shell { display: flex; justify-content: center; padding: 20px; min-height: 100vh; align-items: flex-start; }
.card { width: 100%; max-width: 520px; margin: 20px 0 40px; background: var(--card); border-radius: 24px; padding: 34px 30px 30px; color: var(--white); }

.head { margin-bottom: 26px; text-align: center; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.brand img { height: 22px; width: auto; filter: invert(1); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 3px 9px 3px 8px; line-height: 1;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.lead a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }

form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { font-size: 12px; font-weight: 700; color: var(--sub); padding: 0 0 0 2px; }
legend { margin-bottom: 8px; }

/* 고르는 줄 — 로그인 화면의 '이 iPad 가 기억하는 사람들' · 한 로그인의 갈 곳 고르기와 같은 줄. */
.choices { display: flex; flex-direction: column; gap: 8px; }
.choices.grid { display: grid; grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; cursor: pointer;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: 14px;
  font-size: 15px; font-weight: 800; color: var(--white);
}
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input, .agree input { accent-color: var(--check); width: 20px; height: 20px; margin: 0; flex: none; }

textarea, input:not([type]), input[type="text"] {
  width: 100%; padding: 14px; font-size: 16px; border: 1.5px solid var(--field-border); border-radius: 11px;
  outline: none; background: var(--field); color: var(--white);
}
textarea { resize: vertical; line-height: 1.55; }
textarea:focus, input:focus { border-color: var(--brand); background: var(--field-focus); }
::placeholder { color: var(--dim); }

.row { display: flex; justify-content: space-between; gap: 12px; }
.count { margin-left: auto; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.error { margin: 0; font-size: 13px; font-weight: 600; color: var(--error); }

/* 동의 줄 — 로그인 화면의 약관 줄(.tall). 줄 전체가 label 이라 글자를 눌러도 체크된다. */
.field > .agree { display: flex; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--soft); line-height: 1.5; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit {
  width: 100%; margin-top: 6px; background: var(--brand); color: var(--white); border: none; border-radius: 10px;
  padding: 14px 24px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.submit:hover { opacity: .92; }
.submit:disabled { opacity: .6; cursor: progress; }

.sent { padding: 18px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); text-align: center; }
.sent h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.sent p { margin: 0; font-size: 13.5px; color: var(--soft); line-height: 1.6; }
.sent b { color: var(--white); }
