@font-face {
  font-family: Satoshi;
  src: url("/auth/font.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  background: #f7f8fc;
  height: 100%;
  overflow: clip;
  overscroll-behavior: none;
}
body {
  /* Keep offscreen extension UI from stretching the document. The access
     page remains scrollable when its content exceeds the viewport. */
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: none;
  margin: 0;
  padding: 10px;
  font-family: Satoshi, Arial, sans-serif;
  color: #fff;
}
button,
input {
  font: inherit;
}
.access-surface {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 20px);
  border-radius: 32px;
  background-color: #5b3be8;
  background-image:
    radial-gradient(
      ellipse 95% 110% at 100% 20%,
      rgb(134 182 242 / 40%) 0%,
      rgb(100 158 230 / 24%) 46%,
      rgb(100 158 230 / 0%) 80%
    ),
    linear-gradient(108deg, #5b3be8 0%, #5b3be8 16%, #4e72d8 50%, #367fcf 100%);
  display: flex;
  flex-direction: column;
}
.dot-field {
  position: absolute;
  inset: 0;
  overflow: clip;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.24) 1.3px,
    transparent 1.8px
  );
  background-size: 23px 23px;
  mask-image: linear-gradient(transparent, black 20%, black 80%, transparent);
  opacity: 0.6;
}
.dot-field:after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at center, #c7e4ff55, transparent 48%);
  animation: drift 24s ease-in-out infinite alternate;
}
header,
footer {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header {
  padding-block: 30px;
}
header img {
  width: 148px;
  height: auto;
  filter: brightness(0) invert(1);
}
header > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e5eaff;
}
footer {
  padding-block: 28px;
  color: #dce4ff;
  font-size: 12px;
  font-weight: 550;
}
.access-content {
  flex: 1;
  width: min(1100px, calc(100% - 96px));
  margin: 50px auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #edf0ff;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
h1 {
  font-size: clamp(44px, 5.5vw, 74px);
  line-height: 1.05;
  font-weight: 550;
  letter-spacing: -0.055em;
  margin: 28px 0 24px;
}
h1 span {
  color: #dceaff;
}
.intro-copy {
  font-size: 18px;
  line-height: 1.65;
  max-width: 380px;
  color: #f0f2ff;
  font-weight: 500;
}
.access-note {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 50px;
}
.note-line {
  width: 26px;
  height: 1px;
  background: #ffffff80;
}
.access-note p {
  font-size: 13px;
  line-height: 1.65;
  color: #e6eaff;
}
.access-card {
  border-radius: 28px;
  padding: 38px 36px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  color: #20212c;
  box-shadow: 0 25px 70px -45px #1a164766;
  animation: arrive 0.65s ease-out both;
}
.lock-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8edfa;
  color: #4964a5;
  margin-bottom: 25px;
}
.lock-mark svg {
  width: 23px;
  height: 23px;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin: 0 0 12px;
}
.card-copy {
  font-size: 14px;
  line-height: 1.65;
  color: #626575;
  margin: 0 0 26px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 9px;
}
#passcode {
  width: 100%;
  min-width: 0;
  height: 62px;
  border: 1px solid #dce0e9;
  border-radius: 13px;
  background: #fff;
  color: #20212c;
  letter-spacing: 0.48em;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  padding: 10px 16px 10px 28px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#passcode:focus {
  outline: none;
  border-color: #7789a6;
  box-shadow: 0 0 0 3px #456da712;
}
#code-help {
  font-size: 11px;
  color: #6a6d7d;
  margin: 9px 0 0;
}
#access-message {
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #514966;
  line-height: 1.5;
  margin: 14px 0;
}
#retry-message {
  margin: -6px 0 16px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #514966;
}
button {
  border: 0;
  border-radius: 999px;
  background: #1a1b22;
  color: #fff;
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    gap 0.3s;
}
button svg {
  width: 21px;
  height: 21px;
}
button:hover {
  background: #2c3040;
  gap: 24px;
}
button:focus-visible {
  outline: 3px solid #537fcc;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.host-note {
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
  color: #686b7b;
  margin: 22px 0 0;
}
@keyframes drift {
  to {
    transform: translate(10%, 7%);
    opacity: 0.45;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  body {
    padding: 7px;
  }
  .access-surface {
    border-radius: 24px;
    min-height: calc(100svh - 14px);
    background-image:
      radial-gradient(
        ellipse 100% 75% at 100% 100%,
        rgb(134 182 242 / 36%),
        transparent 80%
      ),
      linear-gradient(
        165deg,
        #5b3be8 0%,
        #5b3be8 30%,
        #4e72d8 62%,
        #367fcf 100%
      );
  }
  header,
  footer {
    width: calc(100% - 40px);
  }
  header {
    padding-block: 24px;
  }
  header img {
    width: 125px;
  }
  header > span {
    font-size: 10px;
  }
  .access-content {
    width: min(440px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin: 26px auto 32px;
  }
  .introduction {
    text-align: center;
  }
  .eyebrow {
    justify-content: center;
    font-size: 10px;
  }
  h1 {
    font-size: 45px;
    margin: 18px 0;
  }
  .intro-copy {
    font-size: 15px;
    margin: 0 auto;
    max-width: 310px;
  }
  .access-note {
    display: none;
  }
  .access-card {
    padding: 28px 25px;
    border-radius: 24px;
  }
  h2 {
    font-size: 23px;
  }
  .lock-mark {
    margin-bottom: 18px;
  }
  footer {
    font-size: 10px;
    padding-block: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
