:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --surface: #151619;
  --border: #2b2d32;
  --text: #f4f1ec;
  --muted: #aaa7a1;
  --subtle: #77756f;
  --accent: #dd8734;
  --accent-hover: #ee9b49;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); }
h1, h2, p { margin-top: 0; }
.muted { color: var(--muted); }
.section-label { margin: 0 0 8px; color: var(--accent-hover); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.access-page { background: radial-gradient(circle at 18% 20%, rgba(221, 135, 52, .09), transparent 28rem), var(--bg); }
.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  width: min(100%, 1240px);
  min-height: 100dvh;
  margin: auto;
  padding: 36px;
}
.access-identity { display: flex; align-items: center; gap: clamp(12px, 3vw, 42px); min-width: 0; padding: 40px; }
.access-identity img { width: clamp(170px, 21vw, 280px); height: auto; object-fit: contain; }
.access-identity h1 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: 1.02; letter-spacing: -.045em; }
.access-panel {
  align-self: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(21, 22, 25, .96);
  box-shadow: 0 30px 90px rgba(8, 6, 4, .35);
}
.access-panel h2 { margin-bottom: 13px; font-size: 32px; line-height: 1.15; letter-spacing: -.025em; }
.access-panel > .muted { margin-bottom: 28px; line-height: 1.65; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #17110b;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid rgba(221, 135, 52, .32); outline-offset: 2px; }
.button-primary { background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-wide { width: 100%; }
.security-note { margin: 17px 0 0; color: var(--subtle); font-size: 11px; text-align: center; }
.notice { margin: 0 0 22px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.notice-success { border-color: rgba(98, 185, 141, .35); background: rgba(98, 185, 141, .08); color: #a7dcc1; }
.notice-error { border-color: rgba(216, 109, 115, .38); background: rgba(216, 109, 115, .08); color: #ecabb0; }
.error-shell { display: grid; place-items: center; align-content: center; width: min(calc(100% - 40px), 520px); min-height: 100dvh; margin: auto; text-align: center; }
.error-shell img { width: 110px; height: 110px; object-fit: contain; }
.error-code { margin: 12px 0 3px; color: var(--accent); font-size: 62px; font-weight: 850; letter-spacing: -.06em; }
.error-shell h1 { margin-bottom: 10px; font-size: 32px; }
.error-shell .button { margin-top: 12px; }

@media (max-width: 760px) {
  .access-shell { grid-template-columns: 1fr; padding: 20px; }
  .access-identity { justify-content: center; padding: 20px 10px 0; }
  .access-identity img { width: 150px; }
  .access-identity h1 { font-size: 46px; }
  .access-panel { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
