* { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #060608;
    position: relative;
    overflow: hidden;
  }

  .bg {
    position: fixed; inset: 0; z-index: 0;
    background: #060608;
    overflow: hidden;
  }
  .glow {
    position: absolute;
    left: 0; top: 0;
    width: 46vw; height: 46vw;
    max-width: 620px; max-height: 620px;
    border-radius: 50%;
    filter: blur(90px);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: left, top, opacity;
  }
  .glow-violet { background: radial-gradient(circle, rgba(147,88,255,0.95), transparent 70%); }
  .glow-blue   { background: radial-gradient(circle, rgba(56,130,246,0.9), transparent 70%); }
  .glow-red    { background: radial-gradient(circle, rgba(226,69,43,0.85), transparent 70%); }

  @media (prefers-reduced-motion: reduce) {
    .glow { transition: none !important; opacity: 0.3 !important; left: 50vw !important; top: 50vh !important; }
  }

  .scene {
    position: fixed; inset: 0; z-index: 1;
    overflow: hidden;
    perspective: 1300px;
    perspective-origin: 50% 50%;
  }

  .parallax-container {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .shard {
    position: absolute;
    top: 0; left: 0;
    will-change: transform;
  }

  .shard-scale {
    transition: transform 2.4s ease, filter 2.4s ease, opacity 2.4s ease;
    will-change: transform, filter, opacity;
  }

  .shard-float {
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
  }
  .shard img { display: block; width: 100%; height: auto; }
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .shard-float { animation: none !important; }
    .shard-scale { transition: none !important; }
    .parallax-container { transition: none !important; }
  }

  .circuit { position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }

  .stage {
    position: fixed; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    pointer-events: none;
  }
  .card {
    position: relative;
    pointer-events: auto;
    width: 380px;
    padding: 36px 30px 28px;

  }

  .glass-layer {
    position: absolute;
    inset: 0;
    z-index: 0;

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2),
                box-shadow 0.4s ease;
  }

  .card:hover .glass-layer {
    transform: scale(1.006);
    box-shadow: 0 34px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
  }

  .liquidGlass-effect {
    position: absolute; inset: 0; z-index: 0;
    border-radius: inherit;
    backdrop-filter: blur(5px) saturate(140%);
    -webkit-backdrop-filter: blur(3px) saturate(140%);
    filter: url(#glass-distortion);
    overflow: hidden;
    isolation: isolate;

    background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));

  }
  .liquidGlass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.017);
}
  .liquidGlass-shine {
    position: absolute; inset: 0; z-index: 1;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    box-shadow: inset 1px 1px 1px 0 rgba(255,255,255,0.2),
                inset -1px -1px 1px 1px rgba(255,255,255,0.1);
  }
  .card-content { position: relative; z-index: 3; }

  .headline { text-align: center; margin-bottom: 34px; }
  .headline .card-glyph {
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2f45, #0a0b12 75%);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 0 28px rgba(99,179,237,0.2);
    overflow: hidden;
  }
  .headline .card-glyph .iris {
    width: 22px; height: 22px; border-radius: 50%;
    background: conic-gradient(from 90deg, #4cc9f0, #a78bfa, #4cc9f0);
  }
  .headline h1 {
    font-family: 'Space Grotesk'; font-weight: 700;
    font-size: 34px; letter-spacing: -0.02em; line-height: 1.05;
    color: #f5f6fb; margin-bottom: 10px;
  }
  .headline h1 span { color: #6fd6f2; }
  .headline p { font-size: 13.5px; color: rgba(242,243,248,0.68); }

  .field { position: relative; margin-bottom: 28px; }
  .field input {
    width: 100%; height: 52px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0 16px;
    color: #f2f3f8; font-size: 14.5px; font-family: 'Inter';
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .field input:focus {
    border-color: #4cc9f0;
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(76,201,240,0.15);
  }

  .field input:-webkit-autofill,
  .field input:-webkit-autofill:hover,
  .field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f2f3f8;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0.055) inset;
    box-shadow: 0 0 0px 1000px rgba(255,255,255,0.055) inset;
    transition: background-color 9999s ease-in-out 0s;
  }

  .field label {
    position: absolute; left: 16px; top: 16px;
    font-size: 14.5px; color: rgba(242,243,248,0.62);
    pointer-events: none;
    transition: all 0.18s ease;
  }
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label,
  .field input:-webkit-autofill + label {
    top: -22px; left: 4px;
    font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
    color: #6fd6f2;
  }

  .forgot { text-align: right; margin-bottom: 20px; }
  .forgot a { font-size: 12.5px; color: #6fd6f2; text-decoration: none; }

  .signup { margin-top: 22px; text-align: center; font-size: 13px; color: rgba(242,243,248,0.62); }
  .signup a { color: #f2f3f8; font-weight: 600; text-decoration: none; }

  .footer {
    position: fixed; left: 0; right: 0; bottom: 18px; z-index: 2;
    text-align: center; pointer-events: none;
    font-size: 11.5px; letter-spacing: 0.02em;
    color: rgba(242,243,248,0.45);
  }
  .footer .brand { color: #8fd9ef; font-weight: 600; }
  .footer .credit { color: rgba(242,243,248,0.6); }
  .button {
  --black: #000000;
  --ch-black: #141414;
  --eer-black: #1b1b1b;
  --night-rider: #2e2e2e;
  --white: #ffffff;
  --af-white: #f3f3f3;
  --ch-white: #e1e1e1;
  border-radius: 50px;
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0px 15px;
  border: none;
  color: white;
  position: relative;
  cursor: pointer;
  font-weight: 500;
  transition-duration: 0.2s;
  background-color: var(--ch-black);
  margin: 0 auto;
}

.button:before,
.button:after {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  border-radius: 50px;
  background: linear-gradient(
    45deg,
    var(--ch-black),
    var(--eer-black),
    var(--night-rider),
    var(--ch-white),
    var(--night-rider),
    var(--eer-black),
    var(--ch-black),
    var(--ch-black)
  );
  background-size: 400%;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: -1;
  animation: steam 20s linear infinite;
}

@keyframes steam {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.button:after {
  filter: blur(50px);
}

/* Touch devices retain the glass and lights without the desktop 3D scene. */
.login-compact body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.login-compact .stage {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: calc(100svh - 48px);
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
}
.login-compact .card { width: min(100%, 420px); padding: 32px 28px 28px; }
.login-compact .headline h1 { letter-spacing: 0; }
.login-compact .field input { font-size: 16px; }
.login-compact .field label { font-size: 16px; }
.login-compact .field input:focus + label,
.login-compact .field input:not(:placeholder-shown) + label,
.login-compact .field input:-webkit-autofill + label { font-size: 11px; }
.login-compact .forgot a, .login-compact .signup { font-size: 14px; line-height: 1.5; }
.login-compact .footer {
  position: relative; inset: auto; padding: 0 20px max(16px, env(safe-area-inset-bottom));
  line-height: 1.5; flex-shrink: 0;
}
.login-compact .card:hover .glass-layer { transform: none; }
.login-compact .glow {
  width: min(90vw, 560px); height: min(90vw, 560px); filter: blur(56px);
  opacity: .6; will-change: transform; animation: compact-glow 18s ease-in-out infinite alternate;
}
.login-compact .glow-violet { left: 25%; top: 40%; }
.login-compact .glow-blue { left: 80%; top: 65%; animation-delay: -6s; }
.login-compact .glow-red { left: 40%; top: 85%; animation-delay: -12s; opacity: .4; }
@keyframes compact-glow {
  from { transform: translate3d(-65%, -55%, 0); }
  to { transform: translate3d(-25%, -85%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .login-compact .glow { animation: none; }
}
@media (max-width: 360px) {
  .login-compact .stage { padding-left: 16px; padding-right: 16px; }
  .login-compact .card { padding-left: 22px; padding-right: 22px; }
}
