:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: #e6e9ef;
  background: #0b0e14;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 140, 255, 0.14), transparent 34rem),
    linear-gradient(145deg, #0b0e14 0%, #11151f 52%, #0c111c 100%);
}

.access-layout {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.access-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(122, 160, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  left: -12vw;
  top: 8vh;
}

.orbit-two {
  width: min(44vw, 540px);
  height: min(44vw, 540px);
  left: 2vw;
  top: 18vh;
  transform: rotate(28deg);
}

.signal {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aa0ff;
  box-shadow: 0 0 26px 8px rgba(91, 140, 255, 0.28);
}

.signal-one {
  left: 20%;
  top: 30%;
}

.signal-two {
  left: 34%;
  top: 68%;
}

.brand-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand,
.workspace-badge {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #0b0e14;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(145deg, #8eb0ff, #5b8cff);
  box-shadow: 0 8px 28px rgba(91, 140, 255, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #828da0;
  font-size: 12px;
}

.workspace-badge {
  gap: 8px;
  color: #aab2c0;
  font-size: 12px;
}

.workspace-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.access-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 64px 0;
}

.access-story {
  max-width: 650px;
}

.story-kicker,
.panel-kicker {
  margin: 0 0 16px;
  color: #7aa0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-story h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.access-story h1 span {
  color: #8eb0ff;
}

.access-story > p:not(.story-kicker) {
  max-width: 570px;
  margin: 28px 0 0;
  color: #aab2c0;
  font-size: 17px;
  line-height: 1.7;
}

.journey {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: #aab2c0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey i {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, #5b8cff, rgba(91, 140, 255, 0.12));
}

.access-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(21, 26, 38, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #aab2c0;
  font-size: 12px;
  font-weight: 600;
}

.panel-label svg {
  width: 18px;
  fill: none;
  stroke: #7aa0ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.panel-content {
  padding: 34px;
}

.panel-content h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.panel-content > p:not(.panel-kicker) {
  margin: 16px 0 0;
  color: #aab2c0;
  font-size: 14px;
  line-height: 1.65;
}

.microsoft-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #e6e9ef;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #1b2230;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.microsoft-button:hover {
  border-color: rgba(122, 160, 255, 0.7);
  background: #212a3a;
  transform: translateY(-1px);
}

.microsoft-button:focus-visible {
  outline: 3px solid rgba(91, 140, 255, 0.32);
  outline-offset: 3px;
}

.microsoft-button svg {
  width: 21px;
  height: 21px;
}

.auth-error {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  color: #fecaca;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(248, 113, 113, 0.1);
}

body[data-auth-error="false"] .auth-error,
body[data-auth-state="available"] .auth-unavailable,
body[data-auth-state="unavailable"] .auth-available {
  display: none;
}

.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.capabilities span {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 7px;
  color: #aab2c0;
  font-size: 12px;
  background: rgba(11, 14, 20, 0.36);
}

.capabilities span::before {
  content: "\2713";
  margin-right: 7px;
  color: #34d399;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #667085;
  font-size: 11px;
}

@media (max-width: 840px) {
  .access-stage {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(620px, calc(100% - 32px));
    padding: 44px 0;
  }

  .access-story {
    text-align: center;
  }

  .access-story > p:not(.story-kicker) {
    margin-right: auto;
    margin-left: auto;
  }

  .journey {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand-bar {
    min-height: 64px;
    padding: 12px 16px;
  }

  .workspace-badge {
    display: none;
  }

  .access-stage {
    min-height: calc(100vh - 64px);
  }

  .access-story h1 {
    font-size: 38px;
  }

  .access-story > p:not(.story-kicker) {
    font-size: 15px;
  }

  .journey {
    gap: 8px;
    font-size: 10px;
  }

  .journey i {
    width: 22px;
  }

  .panel-content {
    padding: 26px 22px;
  }

  .panel-content h2 {
    font-size: 26px;
  }

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

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .microsoft-button {
    transition: none;
  }
}
