body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loading screen ────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #020308;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1);
}
.loader.done {
  opacity: 0; pointer-events: none;
}
#loader-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.loader-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.loader-rings-icon {
  width: 80px; height: 36px;
  background: url('../Olympic_rings_with_transparent_rims.png') center/contain no-repeat;
  opacity: 0;
  animation: loaderPulse 1.8s 0.3s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; filter: brightness(1) drop-shadow(0 0 8px rgba(74,163,255,.3)); }
  50%      { opacity: 0.9; filter: brightness(1.3) drop-shadow(0 0 20px rgba(74,163,255,.6)); }
}

/* ── Login card ────────────────────────────────────────────── */
.login-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(600px, calc(100vw - 44px));
  padding: calc(40px + env(safe-area-inset-top, 0px)) 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(9, 16, 30, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 26px 70px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.7s 0.2s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s 0.2s cubic-bezier(0.22,1,0.36,1);
}
.login-wrap.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.login-title {
  font-size: clamp(34px, 10vw, 58px);
  font-weight: 800;
  letter-spacing: .10em;
  text-align: center;
  line-height: 1.05;
  text-shadow: 0 0 36px rgba(74, 163, 255, .55);
  margin-bottom: 8px;
}

.login-big-logo {
  width: min(220px, 45%);
  margin: 0 0 6px 0; /* tighter */
  display: block;    /* removes inline spacing quirks */
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)) drop-shadow(0 0 20px rgba(120, 160, 255, .18));
}

.login-sub {
  font-size: 20px;
  letter-spacing: .10em;
  color: rgba(255, 255, 255, .52);
  margin-bottom: 6px;
  text-align: center;
}
