:root {
  --navy: #1e3459;
  --navy-deep: #122541;
  --navy-soft: #304b75;
  --gold: #ffd445;
  --canvas: #e13b2b;
  --text: #17233a;
  --muted: #657187;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--navy-deep);
}

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

a { color: inherit; }

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 40px 20px 72px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 212, 69, 0.15), transparent 32%),
    linear-gradient(145deg, #132744 0%, var(--navy) 55%, #29476f 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.ambient-one {
  width: 380px;
  height: 380px;
  top: -200px;
  right: -70px;
  border: 70px solid rgba(255, 212, 69, 0.12);
}

.ambient-two {
  width: 440px;
  height: 440px;
  bottom: -280px;
  left: -170px;
  border: 90px solid rgba(255, 255, 255, 0.07);
}

.access-card {
  width: min(100%, 570px);
  padding: 38px 44px 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 28px 80px rgba(4, 17, 37, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: center;
}

.brand-wrap {
  width: min(100%, 350px);
  margin: -12px auto 18px;
  display: grid;
  place-items: center;
  padding: 14px 20px;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: white;
  box-shadow:
    0 4px 0 var(--gold),
    0 10px 26px rgba(30, 52, 89, 0.13);
}

.school-logo {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  margin: 13px auto 25px;
  max-width: 390px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.access-options {
  display: grid;
  gap: 13px;
}

.access-button {
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  gap: 15px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid #dbe1ea;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 42, 73, 0.07);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, background 180ms ease;
}

.access-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #fffdf5;
  box-shadow: 0 12px 26px rgba(20, 42, 73, 0.13);
}

.access-button:focus-visible {
  outline: 4px solid rgba(255, 212, 69, 0.72);
  outline-offset: 3px;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.microsoft-box { background: #f3f7ff; }
.canvas-box { background: #fff3f1; }

.microsoft-logo {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-logo i:nth-child(1) { background: #f35325; }
.microsoft-logo i:nth-child(2) { background: #81bc06; }
.microsoft-logo i:nth-child(3) { background: #05a6f0; }
.microsoft-logo i:nth-child(4) { background: #ffba08; }

.service-logo {
  width: 29px;
  height: 29px;
}

.button-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.button-copy strong {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.button-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.access-button:hover .arrow { transform: translateX(3px); }

.help-text {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.help-text a {
  color: var(--navy);
  font-weight: 750;
  text-underline-offset: 3px;
}

footer {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 560px) {
  .page-shell { padding: 24px 14px 64px; }
  .access-card {
    padding: 31px 19px 27px;
    border-radius: 24px;
  }
  .brand-wrap {
    width: min(100%, 305px);
    padding: 12px 16px;
  }
  .access-button {
    grid-template-columns: 50px 1fr 20px;
    gap: 12px;
    padding: 12px;
  }
  .icon-box {
    width: 50px;
    height: 50px;
  }
}

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