:root {
  --bg: #050505;
  --panel: rgba(12, 12, 14, 0.84);
  --panel-strong: #101014;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.68);
  --accent: #ff7a1a;
  --red: #db3028;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.login-page {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.32)),
    url("/assets/hero-track.png") center / cover fixed;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.login-panel {
  width: min(460px, 100%);
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.login-logo {
  display: block;
  width: min(310px, 100%);
  height: auto;
  margin-bottom: 28px;
}

.portal-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
}

h2 {
  font-size: 24px;
  line-height: 1.1;
}

.portal-copy,
.hero p,
.doc-card p {
  color: var(--muted);
  line-height: 1.65;
}

form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkline {
  grid-template-columns: 20px 1fr;
  align-items: start;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

button,
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: 4px;
  padding: 0 18px;
  background: var(--accent);
  color: #120904;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.actions a + a {
  background: transparent;
  color: var(--text);
}

.error {
  margin: 18px 0 0;
  padding: 12px;
  border-left: 3px solid var(--red);
  background: rgba(219, 48, 40, 0.12);
  color: #ffd7d2;
}

.success {
  margin: 18px 0 0;
  padding: 12px;
  border-left: 3px solid #2a9d8f;
  background: rgba(42, 157, 143, 0.14);
  color: #d7fff7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 32px;
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.topbar nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.dashboard.narrow {
  width: min(720px, calc(100% - 40px));
}

.request-panel {
  padding: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.nda-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  line-height: 1.65;
}

.nda-box p {
  margin: 0;
}

.nda-box p + p {
  margin-top: 10px;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.12)),
    url("/assets/hero-jet.png") center / cover;
  border: 1px solid var(--line);
}

.hero > div {
  width: min(640px, 100%);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.doc-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.doc-card p {
  margin: 12px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

@media (max-width: 760px) {
  .login-panel,
  .hero,
  .doc-card {
    padding: 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .topbar nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }
}
