:root {
  --ink: #f5f0e8;
  --muted: #b7a9a3;
  --line: rgba(245, 240, 232, .16);
  --panel: #332426;
  --paper: #24191b;
  --red: #c45344;
  --amber: #dfad64;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, sans-serif;
  --mono: 'Courier New', monospace;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--sans); }
.admin-shell { width: min(980px, calc(100% - 42px)); margin: 0 auto; padding: 36px 0 80px; }
.back-link { display: inline-block; color: var(--muted); font-family: var(--mono); font-size: 11px; text-decoration: none; margin-bottom: 72px; }
.back-link:hover { color: var(--amber); }
.admin-title { margin: 0 0 28px; color: var(--muted); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 18px; color: var(--amber); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 8vw, 84px); font-weight: 400; line-height: .95; letter-spacing: -.06em; }
.auth-card { max-width: 520px; padding: 44px; border: 1px solid var(--line); background: var(--panel); }
.auth-card > p:not(.eyebrow) { max-width: 430px; margin: 28px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.password-form { display: grid; gap: 20px; margin-top: 28px; }
.primary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.primary-button { min-height: 48px; padding: 0 22px; background: var(--red); color: #fff; }
.primary-button:hover { background: #d05e4e; }
.primary-button:disabled { cursor: wait; opacity: .55; }
.quiet-button { padding: 12px 0; color: var(--muted); background: transparent; border-bottom: 1px solid var(--line); }
.quiet-button:hover { color: var(--amber); border-color: var(--amber); }
.panel-header { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.muted { margin: 24px 0 0; color: var(--muted); font: 11px var(--mono); }
.notice { margin: 28px 0; padding: 17px 20px; color: var(--muted); border-left: 2px solid var(--amber); background: rgba(255, 255, 255, .035); font-size: 14px; line-height: 1.55; }
.notice strong { color: var(--ink); }
.content-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field:nth-child(1), .field:nth-child(2), .field:nth-child(3), .field:nth-child(4), .field:nth-child(5), .field:nth-child(7), .field:nth-child(8), .field:nth-child(12), .field:nth-child(13), .field:nth-child(14), .field:nth-child(15) { grid-column: 1 / -1; }
.field span { color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; padding: 14px 15px; color: var(--ink); background: rgba(255, 255, 255, .04); font: 15px/1.55 var(--sans); resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(223, 173, 100, .12); }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.status { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; }
.status.success { color: #a8d6ae; }
.status.error { color: #f09a86; }

@media (max-width: 680px) {
  .admin-shell { width: min(100% - 30px, 540px); padding-top: 24px; }
  .back-link { margin-bottom: 52px; }
  .auth-card { padding: 28px; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .content-form { grid-template-columns: 1fr; }
  .field, .field:nth-child(n) { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}
