:root {
  color-scheme: light;
  --navy: #10243a;
  --navy-soft: #223b54;
  --red: #b42332;
  --red-dark: #8e1b28;
  --ink: #172536;
  --muted: #647487;
  --line: #dbe3ea;
  --paper: #ffffff;
  --canvas: #f3f6f8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 10% 0%, #e6edf3 0, transparent 44%), var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
.page-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 24px; }
.auth-panel {
  width: min(100%, 470px);
  margin: 4vh auto 0;
  padding: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(16, 36, 58, .08);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  display: block; width: min(230px, 70vw); max-height: 66px; height: auto;
  object-fit: contain; border-radius: 8px; background: white;
}
.eyebrow { margin-top: 36px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 10px 0 12px; color: var(--navy); font-size: clamp(29px, 5vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.intro { margin: 0 0 26px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.vault-form { display: grid; gap: 11px; }
.vault-form label { font-size: 13px; color: var(--navy); font-weight: 720; }
.vault-form input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cbd5df; border-radius: 9px;
  color: var(--ink); background: white; font: inherit; outline: none;
}
.vault-form input:focus, .file-toolbar input:focus { border-color: #3a6385; box-shadow: 0 0 0 3px rgba(58, 99, 133, .14); }
.vault-form button {
  min-height: 48px; margin-top: 6px; border: 0; border-radius: 9px; background: var(--red);
  color: white; font: inherit; font-weight: 750; cursor: pointer; transition: background .16s, transform .16s;
}
.vault-form button:hover { background: var(--red-dark); transform: translateY(-1px); }
.vault-form button:focus-visible, .text-button:focus-visible, .download-link:focus-visible { outline: 3px solid #6da3ca; outline-offset: 3px; }
.notice { margin: 18px 0; padding: 13px 15px; border: 1px solid #bad5c5; border-radius: 9px; background: #f0f8f3; color: #245b3a; font-size: 14px; line-height: 1.5; }
.notice.error { border-color: #f1c0c4; background: #fff5f5; color: #9a202b; }
.security-note { display: flex; gap: 12px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #edf1f4; }
.security-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.shield { color: var(--red); font-size: 15px; }
.resend-form { margin-top: 14px; }
.text-button, .back-link { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); font-weight: 600; }
.page-footer { margin: 24px auto 0; color: #748294; text-align: center; font-size: 11px; line-height: 1.6; }
.vault-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.account { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.account strong { color: var(--navy); }
.vault-intro { padding: 34px 0 22px; }
.vault-intro .eyebrow { margin-top: 0; }
.vault-intro h1 { margin-top: 9px; }
.vault-intro p { max-width: 670px; color: var(--muted); line-height: 1.6; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.collection-meta span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-soft); font-size: 11px; font-weight: 700; }
.file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 24px; color: var(--muted); font-size: 12px; }
.file-toolbar input { width: min(100%, 420px); height: 43px; padding: 0 13px; border: 1px solid #cbd5df; border-radius: 9px; font: inherit; outline: none; }
.file-group { margin: 0 0 25px; }
.file-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--navy); font-size: 14px; text-transform: capitalize; }
.file-group h2 span { color: var(--muted); font-size: 11px; font-weight: 600; }
.file-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.pdf-mark { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 9px; background: #fff1f1; color: var(--red); font-size: 10px; font-weight: 850; }
.file-details { display: grid; gap: 4px; min-width: 0; flex: 1; }
.file-details strong { overflow-wrap: anywhere; color: var(--navy); font-size: 13px; }
.file-details span { color: var(--muted); font-size: 11px; }
.download-link { padding: 8px 11px; border: 1px solid #e4b8bc; border-radius: 8px; color: var(--red); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.download-link:hover { background: #fff4f4; }
.empty-state { padding: 26px; border: 1px dashed #bcc8d2; border-radius: 12px; background: white; color: var(--muted); }
.empty-state h2 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.empty-state p { margin: 0; font-size: 13px; line-height: 1.6; }
.no-results { padding: 20px; color: var(--muted); text-align: center; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .page-shell { width: min(100% - 28px, 1080px); padding-top: 24px; }
  .auth-panel { margin-top: 4vh; padding: 25px 22px; }
  .vault-header { align-items: flex-start; flex-direction: column; }
  .account { width: 100%; justify-content: space-between; }
  .file-row { align-items: flex-start; gap: 10px; padding: 11px; }
  .pdf-mark { min-width: 34px; height: 34px; }
  .download-link { align-self: center; padding: 7px 8px; }
}
