:root {
  --background: #070c14;
  --surface: #101827;
  --surface-deep: #0a111d;
  --border: #25324a;
  --text: #edf3ff;
  --muted: #96a5bd;
  --primary: #0052ff;
  --primary-hover: #1a64ff;
  --danger: #ff7c82;
  --focus: #8eb1ff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 34vw);
  min-height: 100vh;
}

.access-context {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px 36px;
  border-top: 3px solid var(--primary);
  background: var(--background);
}

.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-lockup img { width: 29px; height: 35px; object-fit: contain; }
.brand-lockup strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand-lockup span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

.context-copy { max-width: 590px; }
.module-code { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.context-copy h1 { margin: 14px 0 12px; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.context-copy p { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; }
.environment, .host-label { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; }

.access-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px 36px;
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.mobile-brand { display: none; }
.form-wrap { width: 100%; max-width: 350px; margin: auto; }
.access-label { margin: 0 0 10px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-wrap h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.form-intro { margin: 10px 0 32px; color: var(--muted); }

form { display: grid; gap: 9px; }
label { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
input {
  width: 100%; height: 46px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-deep); color: var(--text); font: inherit;
}
input:hover { border-color: #3b4d70; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button {
  position: absolute; top: 6px; right: 6px; height: 34px; padding: 0 8px;
  border: 0; background: transparent; color: var(--muted); font: 12px/1 inherit; cursor: pointer;
}
.password-field button:hover { color: var(--text); }

.form-error { min-height: 22px; margin: 8px 0 0; color: var(--danger); font-size: 12px; }
.submit-button {
  height: 46px; margin-top: 2px; border: 0; border-radius: 6px;
  background: var(--primary); color: #fff; font: 650 14px/1 inherit; cursor: pointer;
}
.submit-button:hover { background: var(--primary-hover); }
.submit-button:disabled { opacity: .62; cursor: wait; }

@media (max-width: 760px) {
  .access-shell { display: block; min-height: 100dvh; }
  .access-context { display: none; }
  .access-panel { min-height: 100dvh; padding: 28px 24px 24px; border: 0; border-top: 3px solid var(--primary); }
  .mobile-brand { display: flex; }
  .form-wrap { margin: auto; }
  .host-label { text-align: center; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
