html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  background: #020611;
  overflow-x: hidden;
}

body {
  border: 0 !important;
}

.beta-access-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 200, 0.10), transparent 0 22%),
    radial-gradient(circle at 82% 18%, rgba(0, 140, 255, 0.14), transparent 0 24%),
    radial-gradient(circle at 50% 85%, rgba(0, 255, 170, 0.08), transparent 0 28%),
    linear-gradient(135deg, #01030a 0%, #03101d 35%, #020916 60%, #000000 100%);
}

.beta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(70, 255, 230, 0.04), transparent 35%);
}

.beta-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 80px
    );
  transform: perspective(1000px) rotateX(70deg) scale(1.6);
  transform-origin: center center;
  opacity: 0.95;
  animation: floorShift 18s linear infinite;
}

.beta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0,255,200,0.05) 50%, transparent 100%);
  opacity: 0.5;
  animation: horizonSweep 8s linear infinite;
}

.code-rain {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.code-stream {
  position: absolute;
  top: -20%;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  animation-name: codeFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.32);
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.14;
  mix-blend-mode: screen;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(0, 170, 255, 0.45);
  left: -40px;
  top: 40px;
  animation: floatOrb 11s ease-in-out infinite;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(0, 255, 170, 0.30);
  right: -30px;
  bottom: 30px;
  animation: floatOrb 13s ease-in-out infinite reverse;
}

.beta-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  max-width: 620px;
  border-radius: 18px;
  padding: 1px;
  box-sizing: border-box;
  background:
    linear-gradient(135deg,
      rgba(0,255,200,0.55),
      rgba(0,120,255,0.38),
      rgba(0,255,200,0.20));
  box-shadow:
    0 0 0 1px rgba(130,255,235,0.15),
    0 16px 40px rgba(0,0,0,0.55),
    0 0 40px rgba(0,140,255,0.16);
}

.beta-panel-inner {
  position: relative;
  border-radius: 17px;
  padding: 26px 24px 22px 24px;
  background:
    linear-gradient(180deg, rgba(5,12,26,0.96), rgba(3,8,18,0.96));
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.beta-panel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(0,255,220,0.05), transparent);
  transform: translateX(-100%);
  animation: sweep 5.5s linear infinite;
  pointer-events: none;
}

.beta-datetime {
  margin: 0 0 16px 0;
  color: #8edfe6;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  opacity: 0.9;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.beta-datetime a {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(142, 223, 230, 0.6);
  text-decoration: none;
}

.beta-datetime a:hover {
  color: #cfffff;
  text-decoration: none;
}

.beta-form {
  position: relative;
  z-index: 1;
}

.beta-field {
  margin-bottom: 16px;
}

.beta-label {
  display: block;
  margin-bottom: 8px;
  color: #8edfe6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  opacity: 0.95;
}

.beta-animated-label {
  cursor: text;
  user-select: none;
}

.beta-animated-label span {
  display: inline-block;
  color: #8edfe6;
  transition:
    transform 0.18s ease,
    text-shadow 0.18s ease,
    filter 0.18s ease;
}

.beta-animated-label .label-space {
  width: 0.38em;
  min-width: 0.38em;
}

.beta-animated-label.is-active span:not(.label-space) {
  animation: betaHueShift 0.9s linear infinite,
             betaFloatGlow 1.2s ease-in-out infinite;
}

.beta-animated-label.is-active span:nth-child(1)  { animation-delay: 0.00s, 0.00s; }
.beta-animated-label.is-active span:nth-child(2)  { animation-delay: 0.06s, 0.08s; }
.beta-animated-label.is-active span:nth-child(3)  { animation-delay: 0.12s, 0.16s; }
.beta-animated-label.is-active span:nth-child(4)  { animation-delay: 0.18s, 0.24s; }
.beta-animated-label.is-active span:nth-child(5)  { animation-delay: 0.24s, 0.32s; }
.beta-animated-label.is-active span:nth-child(6)  { animation-delay: 0.30s, 0.40s; }
.beta-animated-label.is-active span:nth-child(7)  { animation-delay: 0.36s, 0.48s; }
.beta-animated-label.is-active span:nth-child(8)  { animation-delay: 0.42s, 0.56s; }
.beta-animated-label.is-active span:nth-child(9)  { animation-delay: 0.48s, 0.64s; }
.beta-animated-label.is-active span:nth-child(10) { animation-delay: 0.54s, 0.72s; }
.beta-animated-label.is-active span:nth-child(11) { animation-delay: 0.60s, 0.80s; }

.beta-field input {
  width: 100%;
  border: 1px solid rgba(96, 172, 205, 0.35);
  background:
    linear-gradient(180deg, rgba(8,18,34,0.95), rgba(5,12,24,0.95));
  color: #effcff;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0,255,200,0.03),
    0 0 0 0 rgba(0,255,200,0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.beta-field input::placeholder {
  color: rgba(211,235,242,0.42);
}

.beta-field input:focus {
  border-color: #86f7ff;
  box-shadow:
    0 0 0 2px rgba(126,249,255,0.10),
    0 0 14px rgba(126,249,255,0.18),
    0 0 32px rgba(122,255,200,0.10);
  transform: translateY(-1px);
}

.beta-actions {
  margin-top: 20px;
}

.beta-enter-button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(90deg, #07253a 0%, #0d5f75 45%, #0b375f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-family: Orbitron, Eurostile, "Bank Gothic", "Arial Narrow", sans-serif;
  box-shadow:
    inset 0 0 0 1px rgba(150,255,237,0.18),
    0 8px 24px rgba(0,0,0,0.35),
    0 0 18px rgba(0,180,255,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.beta-enter-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(150,255,237,0.28),
    0 12px 30px rgba(0,0,0,0.42),
    0 0 24px rgba(0,255,200,0.18);
}

.beta-enter-button:active {
  transform: translateY(1px);
}

.beta-enter-button.is-submitting {
  filter: brightness(1.08);
}

.btn-label {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255,255,255,0.06) 35%,
      rgba(120,255,245,0.18) 50%,
      rgba(255,255,255,0.06) 65%,
      transparent 100%);
  transform: translateX(-120%);
  animation: btnSweep 3.8s linear infinite;
}

.beta-alert {
  margin-top: 18px;
  border: 1px solid rgba(255,90,90,0.30);
  background: rgba(100, 8, 18, 0.38);
  color: #ffd9d9;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(255,0,0,0.05);
}

.beta-alert-text {
  display: inline-block;
  font-family: "Courier New", monospace;
  /* font-family: Orbitron, Eurostile, "Bank Gothic", "Arial Narrow", sans-serif; */
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd9d9;
  text-shadow:
    0 0 8px rgba(255, 120, 120, 0.28),
    0 0 18px rgba(255, 60, 60, 0.12);
}

.beta-title-wrap {
  position: relative;
  perspective: 1200px;
  margin-bottom: 22px;
}

.beta-title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120,240,255,0.55), transparent);
  opacity: 0.45;
  filter: blur(0.6px);
  animation: betaTitleScan 3.2s linear infinite;
  pointer-events: none;
}

.beta-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  font-family: Orbitron, Eurostile, "Bank Gothic", "Arial Narrow", sans-serif;
  font-size: clamp(32px, 7vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #eafcff;
  text-shadow:
    0 0 8px rgba(120, 240, 255, 0.35),
    0 0 18px rgba(0, 180, 255, 0.18),
    0 0 28px rgba(0, 255, 200, 0.10);
  white-space: nowrap;
}

.beta-title-char,
.title-space {
  display: inline-block;
  position: relative;
}

.beta-title-char {
  transform-origin: center center;
  will-change: transform, opacity, filter;
  animation: betaCharPhase 9.5s ease-in-out infinite;
  animation-delay: var(--char-delay, 0s);
}

.title-space {
  width: 0.55em;
  min-width: 0.55em;
}

.beta-title-char:nth-child(1)  { --char-delay: 0.00s; }
.beta-title-char:nth-child(2)  { --char-delay: 0.14s; }
.beta-title-char:nth-child(3)  { --char-delay: 0.28s; }
.beta-title-char:nth-child(4)  { --char-delay: 0.42s; }
.beta-title-char:nth-child(6)  { --char-delay: 0.56s; }
.beta-title-char:nth-child(7)  { --char-delay: 0.70s; }
.beta-title-char:nth-child(8)  { --char-delay: 0.84s; }
.beta-title-char:nth-child(9)  { --char-delay: 0.98s; }
.beta-title-char:nth-child(10) { --char-delay: 1.12s; }
.beta-title-char:nth-child(11) { --char-delay: 1.26s; }
.beta-title-char:nth-child(12) { --char-delay: 1.40s; }

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes btnSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes floatOrb {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-18px) translateX(10px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes codeFall {
  0% {
    transform: translateY(-20vh);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(140vh);
    opacity: 0;
  }
}

@keyframes floorShift {
  0% {
    transform: perspective(1000px) rotateX(70deg) scale(1.6) translateY(0);
  }
  100% {
    transform: perspective(1000px) rotateX(70deg) scale(1.6) translateY(70px);
  }
}

@keyframes horizonSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes betaHueShift {
  0%   { color: #7ef9ff; text-shadow: 0 0 6px rgba(126,249,255,.55), 0 0 16px rgba(126,249,255,.30); }
  20%  { color: #7affc8; text-shadow: 0 0 6px rgba(122,255,200,.55), 0 0 16px rgba(122,255,200,.30); }
  40%  { color: #8fa8ff; text-shadow: 0 0 6px rgba(143,168,255,.55), 0 0 16px rgba(143,168,255,.30); }
  60%  { color: #d18cff; text-shadow: 0 0 6px rgba(209,140,255,.55), 0 0 16px rgba(209,140,255,.30); }
  80%  { color: #7cf0ff; text-shadow: 0 0 6px rgba(124,240,255,.55), 0 0 16px rgba(124,240,255,.30); }
  100% { color: #7ef9ff; text-shadow: 0 0 6px rgba(126,249,255,.55), 0 0 16px rgba(126,249,255,.30); }
}

@keyframes betaFloatGlow {
  0%   { transform: translateY(0px) scale(1); filter: brightness(1); }
  50%  { transform: translateY(-1px) scale(1.06); filter: brightness(1.18); }
  100% { transform: translateY(0px) scale(1); filter: brightness(1); }
}

@keyframes betaCharPhase {
  0%,
  16% {
    transform: rotateY(0deg) scaleX(1) scaleY(1) translateZ(0);
    opacity: 1;
    filter: blur(0px);
  }

  30% {
    transform: rotateY(55deg) scaleX(0.82) scaleY(1.03) translateZ(-14px);
    opacity: 0.90;
    filter: blur(0.2px);
  }

  40% {
    transform: rotateY(78deg) scaleX(0.42) scaleY(1.05) translateZ(-26px);
    opacity: 0.45;
    filter: blur(0.5px);
  }

  48% {
    transform: rotateY(89deg) scaleX(0.08) scaleY(1.07) translateZ(-40px);
    opacity: 0.04;
    filter: blur(1px);
  }

  56% {
    transform: rotateY(-89deg) scaleX(0.08) scaleY(1.07) translateZ(-40px);
    opacity: 0.04;
    filter: blur(1px);
  }

  66% {
    transform: rotateY(-78deg) scaleX(0.42) scaleY(1.05) translateZ(-26px);
    opacity: 0.45;
    filter: blur(0.5px);
  }

  80% {
    transform: rotateY(-55deg) scaleX(0.82) scaleY(1.03) translateZ(-14px);
    opacity: 0.90;
    filter: blur(0.2px);
  }

  92%,
  100% {
    transform: rotateY(0deg) scaleX(1) scaleY(1) translateZ(0);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes betaTitleScan {
  0%   { transform: translateX(-20%) scaleX(0.7); opacity: 0; }
  15%  { opacity: 0.35; }
  50%  { transform: translateX(8%) scaleX(1); opacity: 0.55; }
  85%  { opacity: 0.20; }
  100% { transform: translateX(20%) scaleX(0.7); opacity: 0; }
}

@media (max-width: 640px) {
  .beta-access-wrap {
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)) 12px;
  }

  .beta-panel {
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  .beta-panel-inner {
    padding: 18px 14px 16px 14px;
  }

  .beta-title-wrap {
    margin-bottom: 18px;
  }

  .beta-title {
    width: 100%;
    justify-content: center;
    font-size: clamp(24px, 9vw, 34px);
    letter-spacing: 0.05em;
  }

  .title-space {
    width: 0.30em;
    min-width: 0.30em;
  }

  .beta-field {
    margin-bottom: 14px;
  }

  .beta-field input {
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .beta-enter-button {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .beta-datetime,
  .beta-alert-text,
  .beta-label {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 390px) {
  .beta-access-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .beta-panel-inner {
    padding: 16px 12px 14px 12px;
  }

  .beta-title {
    font-size: clamp(21px, 8.5vw, 30px);
    letter-spacing: 0.035em;
  }

  .title-space {
    width: 0.22em;
    min-width: 0.22em;
  }

  .beta-datetime,
  .beta-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .beta-enter-button,
  .beta-alert-text {
    font-size: 13px;
    letter-spacing: 0.10em;
  }
}

.totp-input {
  width: 220px;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(120, 255, 255, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(5, 18, 30, 0.96), rgba(8, 30, 46, 0.96));
  color: #eaffff;
  font-family: "Orbitron", "Courier New", monospace;
  font-size: 24px;
  letter-spacing: 0.45em;
  text-align: center;
  outline: none;
  box-shadow:
    inset 0 0 12px rgba(90, 220, 255, 0.08),
    0 0 10px rgba(90, 220, 255, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.totp-input::placeholder {
  color: rgba(210, 255, 255, 0.35);
  letter-spacing: 0.45em;
}

.totp-input:focus {
  border-color: #7efcff;
  box-shadow:
    inset 0 0 14px rgba(90, 220, 255, 0.14),
    0 0 14px rgba(90, 220, 255, 0.25),
    0 0 28px rgba(90, 220, 255, 0.12);
  transform: translateY(-1px);
}
