/* The Bertam staff canteen — warm, premium café scan experience */
:root {
  --page: #17130f;
  --surface: #ffffff;
  --ink: #1f2838;
  --muted: #6e6b66;
  --line: #e8e0d4;
  --blue: #9a6a2f;
  --blue-hover: #795024;
  --ice: #f6ede0;
  --green: #17805e;
  --green-wash: #eaf8f2;
  --red: #c74a5a;
  --red-wash: #fff0f2;
  --focus: 0 0 0 4px rgba(154,106,47,.18);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: linear-gradient(rgba(19,15,11,.68), rgba(19,15,11,.76)), url('../img/cafe-bg.jpg') center/cover fixed;
  color: var(--ink);
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.page-wrap {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,.3), 0 2px 12px rgba(0,0,0,.12);
  padding: 32px;
}
.identity-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  width: 100%;
}
.brand-logo { width: 150px; height: 150px; overflow: hidden; display: grid; place-items: start center; flex: none; }
.brand-logo img { width: 150px; height: auto; }
.identity-mark {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #e9f2ff;
  color: var(--blue);
  font-weight: 830;
  font-size: 19px;
  letter-spacing: -.06em;
  line-height: 1;
}
.identity-copy { display: flex; flex-direction: column; gap: 1px; }
.identity-name { font-size: 21px; font-weight: 810; letter-spacing: -.025em; line-height: 1.1; color:#10295a; }
.identity-type { color: #9a6a2f; letter-spacing: .16em; font-size: 9px; font-weight: 800; line-height: 1.15; }
.icon-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--ice);
  color: var(--blue);
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-success { background: var(--green-wash); color: var(--green); }
.icon-danger { background: var(--red-wash); color: var(--red); }
.title { margin: 0; font-size: clamp(29px, 6.4vw, 34px); line-height: 1.15; letter-spacing: -.044em; font-weight: 780; }
.subtitle { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.scan-datetime { display:flex; justify-content:space-between; gap:12px; margin-top:18px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#faf7f2; font-size:11px; color:var(--muted); }
.scan-datetime strong { color:var(--ink); text-align:right; font-size:12px; }
.form-stack { margin-top: 30px; }
.field-label { display: block; font-size: 12px; font-weight: 750; color: #39516f; margin-bottom: 10px; }
.input-box {
  border: 1.5px solid #d6e1ee;
  background: #fff;
  border-radius: 13px;
  padding: 0 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input-box:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.input-box input {
  outline: none;
  border: 0;
  width: 100%;
  min-height: 57px;
  font-size: 16px;
  font-weight: 650;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
}
.input-box input::placeholder { color: #9cadbf; text-transform: none; font-weight: 440; }
.hint { color: #8da1b6; font-size: 11px; line-height: 1.6; margin: 9px 1px 0; }
.btn {
  min-height: 54px;
  padding: 14px 17px;
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: background .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { width: 100%; background: var(--blue); color: #fff; margin-top: 22px; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: #f7f9fc; color: #3b5472; border-color: var(--line); }
.btn-secondary:hover { background: #eff4f9; }
.btn-full { width: 100%; }
.alert { padding: 13px 14px; margin-top: 18px; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.alert-error { background: var(--red-wash); border: 1px solid #fad8dd; color: var(--red); }
.person-box { margin-top: 25px; display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #faf7f2; }
.avatar { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #efe2cf; color: var(--blue); font-size: 18px; font-weight: 800; }
.person-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.person-meta strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.person-meta span { color: var(--muted); font-size: 12px; }
.detail-list { display: grid; margin: 16px 0 0; }
.detail-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; border-bottom: 1px solid #edf1f6; padding: 14px 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; max-width: 59%; text-align: right; color: var(--ink); font-size: 12px; font-weight: 760; overflow-wrap: anywhere; }
.button-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 26px; }
.button-grid .btn { margin: 0; }
.summary-box { padding: 21px; margin-top: 26px; border-radius: 15px; border: 1px solid #e8ddcd; background: linear-gradient(145deg,#fcfaf6,#f5ede2); }
.summary-compact { margin-top: 16px; }
.summary-top, .summary-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.summary-top span:first-child { font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.summary-number { color: var(--blue); font-weight: 800; font-size: 44px; letter-spacing: -.05em; line-height: 1; margin-top: 18px; }
.summary-number small { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 5px; color: var(--muted); }
.text-danger { color: var(--red); }
.progress-bar { height: 7px; border-radius: 20px; overflow: hidden; background: #e7dac8; margin-top: 19px; }
.progress-bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.summary-foot { margin-top: 10px; }
.detail-list-result { margin-bottom: 25px; }
.site-credit { margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); color: #827b72; font-size: 10px; line-height: 1.5; text-align: center; }
@media(max-width: 480px) {
  .page-wrap { padding: 20px 16px; }
  .card { border-radius: 21px; padding: 26px 22px; }
  .identity-line { margin-bottom: 29px; }
  .brand-logo { width: 165px; height: 165px; }
  .brand-logo img { width: 165px; }
  .button-grid { grid-template-columns: 1fr 1.5fr; }
}
@media(max-width: 350px) {
  .card { padding: 22px 18px; }
  .button-grid { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; } }
