*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --background: #05070b;
  --panel: rgba(12, 16, 24, 0.84);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f5f7fb;
  --muted: #8992a3;
  --subtle: #596273;
  --accent: #5f83ff;
  --accent-bright: #8ca6ff;
  --danger: #ff6b78;
}

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

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(72, 105, 220, 0.16),
      transparent 38%
    ),
    var(--background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.access-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  mask-image:
    radial-gradient(circle at center, black 10%, transparent 72%);
}

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

.ambient-one {
  width: 420px;
  height: 420px;
  top: -240px;
  left: calc(50% - 210px);
  background: rgba(64, 94, 210, 0.18);
}

.ambient-two {
  width: 260px;
  height: 260px;
  right: -140px;
  bottom: -100px;
  background: rgba(47, 68, 150, 0.12);
}

.access-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 153, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(106, 139, 255, 0.22),
      rgba(61, 84, 170, 0.05)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 35px rgba(37, 65, 165, 0.2);
}

.brand-mark span {
  color: #dce4ff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-meta {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #51d98a;
  box-shadow: 0 0 12px rgba(81, 217, 138, 0.65);
}

.access-heading {
  margin-top: 23px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 340px;
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.description {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.access-form {
  margin-top: 34px;
}

.access-form label {
  display: block;
  margin-bottom: 9px;
  color: #abb3c2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 66px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  outline: none;
  background: rgba(2, 5, 10, 0.72);
  color: var(--text);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.input-wrap input::placeholder {
  color: #4f5868;
}

.input-wrap input:focus {
  border-color: rgba(111, 141, 255, 0.75);
  background: rgba(3, 7, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(83, 115, 236, 0.11);
}

.reveal-button {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--subtle);
  font-size: 11px;
  cursor: pointer;
}

.reveal-button:hover {
  color: var(--text);
}

.error-message {
  margin: 10px 2px 0;
  color: var(--danger);
  font-size: 12px;
}

.access-button {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(137, 161, 255, 0.28);
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #5575e9,
      #405ecb
    );
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 14px 32px rgba(48, 75, 181, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 150ms ease,
    filter 150ms ease,
    box-shadow 150ms ease;
}

.access-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow:
    0 18px 38px rgba(48, 75, 181, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.access-button:active {
  transform: translateY(0);
}

.arrow {
  font-size: 19px;
  font-weight: 400;
}

.access-footer {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #4f5867;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #414958;
}

@media (max-width: 560px) {
  .access-shell {
    align-items: center;
    padding: 18px;
  }

  .access-panel {
    padding: 30px 24px;
    border-radius: 18px;
  }

  .access-footer {
    flex-wrap: wrap;
  }
}

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