:root {
  --navy: #0a1b4d;
  --navy-light: #132a6b;
  --gold: #c8962e;
  --gold-light: #f1cb6b;
  --bg: #f7f6f3;
  --card-bg: #ffffff;
  --text: #1c2340;
  --text-muted: #5b6280;
  --error: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --card-bg: #131a33;
    --text: #eef0fa;
    --text-muted: #a7adc9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 12px 40px rgba(10, 27, 77, 0.12);
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 8px;
}

h1 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
  color: var(--text);
}

.lede {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 28px;
}

.files-section {
  text-align: left;
  margin-bottom: 28px;
}

.files-section h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0 0 10px;
}

.files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e6ee;
  border-radius: 10px;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .files-list { border-color: #262f4f; }
}

.files-list li + li {
  border-top: 1px solid #e4e6ee;
}

@media (prefers-color-scheme: dark) {
  .files-list li + li { border-top-color: #262f4f; }
}

.files-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
}

@media (prefers-color-scheme: dark) {
  .files-list a { color: var(--gold-light); }
}

.files-list a:hover {
  background: rgba(200, 150, 46, 0.08);
}

.files-list .file-size {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

form { text-align: left; }

.field {
  margin-bottom: 16px;
}

.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

@media (prefers-color-scheme: dark) {
  label { color: var(--gold-light); }
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dae5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.2);
}

button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

button:hover { opacity: 0.9; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

#form-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

#form-status.success { color: #1a7f37; }
#form-status.error { color: var(--error); }

footer {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
