/* docs.css — หน้าด่านก่อนเข้าคลังเอกสารต้นฉบับ (LINE Login) · ใช้โทนเดียวกับหน้าแรก */
:root {
  --navy-950: #020a19; --navy-900: #061735; --navy-800: #0a2856;
  --blue: #1468c9; --gold: #f1bd55; --gold-soft: #ffe4a2; --white: #fff;
  --ink: #102447; --ink-soft: #54647f; --line: #dce4f1; --line-green: #06c755; --line-green-dark: #05a647;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy-950); }
body {
  min-height: 100vh; min-height: 100svh;
  font-family: "Sarabun", sans-serif; line-height: 1.6; color: var(--white);
  background:
    radial-gradient(circle at 20% 15%, rgba(20, 104, 201, .32), transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(241, 189, 85, .12), transparent 34%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950) 70%);
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
h1, h2, .brand { font-family: "Anuphan", sans-serif; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.hidden { display: none !important; }

.vault { width: 100%; max-width: 460px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; color: inherit; }
.crest {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: "Anuphan", sans-serif; font-weight: 700; font-size: 20px; color: #071735;
  background: linear-gradient(135deg, #ffe7a8, var(--gold) 55%, #d99425);
}
.brand { font-weight: 700; font-size: 17px; line-height: 1.25; }
.brand small { display: block; font-family: "Sarabun", sans-serif; font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, .66); }

.card {
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 20px;
  padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border-top: 4px solid var(--gold);
}
.kicker { font-size: 11.5px; letter-spacing: .12em; color: #8a5a00; font-weight: 700; margin-bottom: 4px; }
.card h1 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; color: var(--navy-900); }
.lead { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.reason {
  background: #f3f7fd; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 14.5px; margin-bottom: 16px;
}
.reason b { color: var(--navy-800); }

.btn-line {
  width: 100%; border: none; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  background: var(--line-green); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s;
}
.btn-line:hover:not(:disabled) { background: var(--line-green-dark); }
.btn-line:disabled { opacity: .55; cursor: not-allowed; }
.btn-line svg { width: 24px; height: 24px; flex: none; }
.btn-email {
  width: 100%; margin-top: 10px; border: 2px solid var(--navy-800); border-radius: 12px; padding: 13px 18px; cursor: pointer;
  background: #fff; color: var(--navy-800); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, color .15s;
}
.btn-email:hover:not(:disabled) { background: var(--navy-800); color: #fff; }
.btn-email svg { width: 24px; height: 24px; flex: none; }
.code-input { text-align: center; font-size: 26px; letter-spacing: .35em; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: calc(12px + .35em); }
.btn-go {
  width: 100%; border: none; border-radius: 12px; padding: 14px 18px; cursor: pointer; margin-top: 6px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue)); color: #fff; font-weight: 700; font-size: 17px;
}
.btn-go:hover:not(:disabled) { filter: brightness(1.08); }
.btn-go:disabled { opacity: .55; cursor: not-allowed; }
.link-quiet {
  display: block; width: 100%; margin-top: 12px; background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px;
}
.notice { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; }
/* กล่องวิธีค้นไฟล์ในคลัง (อยู่เหนือปุ่ม "เปิดคลังเอกสาร") — ตัวใหญ่พอให้คน 50+ อ่านได้ */
.tip { margin: 16px 0 10px; padding: 12px 14px 10px; border: 1px solid #f1d58a; border-left: 4px solid var(--gold); border-radius: 12px; background: #fff9e8; color: var(--ink); }
.tip strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--navy-900); }
.tip ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.65; }
.tip li + li { margin-top: 2px; }
.tip b { color: var(--navy-900); }
.tip .nb { white-space: nowrap; }

.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; border: 2px solid var(--gold); }
.who strong { display: block; font-size: 17px; color: var(--navy-900); line-height: 1.3; }
.who span { font-size: 13px; color: var(--ink-soft); }

label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 5px; color: var(--ink); }
label small { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fbfcfe; color: var(--ink);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; margin: 14px 0 4px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.msg { margin-top: 10px; font-size: 14px; padding: 9px 12px; border-radius: 8px; display: none; }
.msg.err { display: block; background: #fbeaea; color: #8c2f39; }
.msg.info { display: block; background: #eaf2fc; color: #1d4f8f; }

.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin: 18px auto; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.mock-flag { background: #fff3cd; color: #7a5a00; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; border: 1px solid #f1d98a; }
.back { display: inline-block; margin-top: 16px; color: rgba(255, 255, 255, .72); font-size: 14px; text-decoration: none; }
.back:hover { color: #fff; }

@media (max-width: 380px) { .card { padding: 22px 16px 18px; } .card h1 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
