:root {
  --bg: #f5f3ee;
  --card: #ffffff;
  --surface: #eceae4;
  --border: #dedad2;
  --text: #1c1917;
  --muted: #77716b;
  --accent: #c0502a;
  --blue: #1b32b3;
  color-scheme: light;
  font-family: "Syne", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(192, 80, 42, 0.08), transparent 26rem),
    linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.private-nav {
  height: 64px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 243, 238, 0.86);
  backdrop-filter: blur(14px);
}

.back-link,
.private-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-link {
  color: var(--muted);
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--text);
}

.back-icon {
  font-size: 16px;
}

.private-label {
  color: var(--text);
}

.private-label span {
  color: var(--accent);
  font-size: 8px;
}

.access-main {
  min-height: calc(100vh - 64px);
  padding: 56px;
  display: grid;
  place-items: center;
}

.access-card {
  width: min(100%, 960px);
  min-height: 570px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 18px 20px 0 rgba(28, 25, 23, 0.09);
}

.access-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1c1917;
}

.access-visual::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  color: rgba(255, 255, 255, 0.5);
  font: 500 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
}

.lock-orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.lock-orbit-one::before,
.lock-orbit-two::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(192, 80, 42, 0.9);
}

.lock-orbit-one {
  animation: spin 16s linear infinite;
}

.lock-orbit-one::before {
  top: 28px;
  right: 61px;
}

.lock-orbit-two {
  width: 230px;
  height: 230px;
  animation: spin 11s linear infinite reverse;
}

.lock-orbit-two::before {
  bottom: 16px;
  left: 70px;
  background: #7284ff;
}

.lock-mark {
  position: relative;
  width: 104px;
  height: 132px;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.35));
}

.lock-shackle {
  position: absolute;
  top: 0;
  left: 20px;
  width: 64px;
  height: 73px;
  border: 10px solid #fff;
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
}

.lock-body {
  position: absolute;
  inset: 54px 0 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
}

.lock-body span {
  width: 11px;
  height: 27px;
  border-radius: 999px;
  background: #fff;
}

.access-copy {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-row {
  margin-bottom: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font: 500 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.brand-row img {
  width: 66px;
  height: auto;
  padding-right: 13px;
  border-right: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 470px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.error-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(192, 80, 42, 0.35);
  border-radius: 7px;
  color: #8f3518;
  background: #fff4ef;
  font: 500 12px/1.4 "IBM Plex Mono", monospace;
}

.access-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font: 500 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

input,
button {
  min-height: 52px;
  border-radius: 7px;
  font-family: "IBM Plex Mono", monospace;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0 16px;
  color: var(--text);
  background: #faf9f7;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 50, 179, 0.12);
}

input[aria-invalid="true"] {
  border-color: var(--accent);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--blue);
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(27, 50, 179, 0.16);
}

.privacy-note {
  margin: 16px 0 0;
  color: #9a958e;
  font: 400 10px/1.5 "IBM Plex Mono", monospace;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-orbit {
    animation: none;
  }
}

@media (max-width: 760px) {
  .private-nav {
    padding: 0 20px;
  }

  .access-main {
    padding: 24px 16px 40px;
    place-items: start center;
  }

  .access-card {
    grid-template-columns: 1fr;
    box-shadow: 8px 10px 0 rgba(28, 25, 23, 0.08);
  }

  .access-visual {
    min-height: 230px;
  }

  .lock-orbit {
    width: 240px;
    height: 240px;
  }

  .lock-orbit-two {
    width: 170px;
    height: 170px;
  }

  .lock-mark {
    transform: scale(0.72);
  }

  .access-copy {
    padding: 38px 26px 34px;
  }

  .brand-row {
    margin-bottom: 38px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
