:root {
  --bg: #130a2a;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bg-hover: rgba(255, 255, 255, 0.18);

  --maxw: 520px;
  --radius: 14px;
  --shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100%;
  padding:
    calc(clamp(28px, 6vh, 60px) + env(safe-area-inset-top, 0px))
    18px
    calc(56px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: start center;
  position: relative;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.page__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1200px 700px at 50% 20%,
    rgba(155, 100, 255, 0.14),
    rgba(10, 6, 24, 0.86) 55%,
    rgba(10, 6, 24, 0.92) 100%
  );
}

.wrap {
  width: min(var(--maxw), 100%);
  position: relative;
  z-index: 1;
  text-align: center;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brandImage {
  width: min(var(--maxw), 100%);
  height: 140px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.logo {
  width: 72px;
  height: 72px;
  display: block;
  background: #fff;
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.12;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.panel {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.links {
  display: grid;
  gap: 12px;
}

.btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, transform 120ms ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid rgba(155, 100, 255, 0.65);
  outline-offset: 2px;
}

.divider {
  margin: 18px 0;
  position: relative;
  height: 22px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.divider__rail {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.16),
      rgba(155, 100, 255, 0.26),
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0)
    );
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.divider__orb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 22px rgba(255, 255, 255, 0.25),
    0 8px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.divider__orbInner {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 6, 24, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.noscript {
  width: min(var(--maxw), 100%);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

