* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #eaf2ff;
  font-family: 'Inter', system-ui, sans-serif;
  background: #050b1a;
}

#auraC,
#dropC {
  position: fixed;
  inset: 0;
  display: block;
}

#auraC {
  z-index: 0;
}

#dropC {
  z-index: 1;
  pointer-events: none;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 11, 26, 0.82) 0%,
    rgba(5, 11, 26, 0.45) 30%,
    rgba(5, 11, 26, 0) 54%
  );
}

.hint {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #88aadd;
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(28px, 7vw, 112px);
  pointer-events: none;
}

.panel {
  width: 100%;
  max-width: 368px;
  pointer-events: auto;
  padding-top: 4px;
}

.hm-corner {
  position: fixed;
  top: 30px;
  left: 40px;
  z-index: 7;
  line-height: 0;
}

.hm-corner img {
  height: 66px;
  width: auto;
  filter:
    drop-shadow(0 0 10px rgba(150, 255, 215, 0.62))
    drop-shadow(0 0 26px rgba(120, 235, 255, 0.42))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  animation: hmGlow 4.5s ease-in-out infinite;
}

@keyframes hmGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 9px rgba(150, 255, 215, 0.52))
      drop-shadow(0 0 22px rgba(120, 235, 255, 0.34))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  }

  50% {
    filter:
      drop-shadow(0 0 15px rgba(170, 255, 225, 0.78))
      drop-shadow(0 0 34px rgba(130, 240, 255, 0.54))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  }
}

.head {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.head .v {
  background: linear-gradient(90deg, #7fd4ff, #a884ff 60%, #ff77bb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sublede {
  margin: 0 0 30px;
  font-size: 14px;
  font-weight: 400;
  color: #aebfe0;
  line-height: 1.5;
  max-width: 300px;
  user-select: none;
}

.login-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ab2dd;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(150, 180, 255, 0.25);
  background: rgba(10, 18, 38, 0.5);
  color: #f2f7ff;
  padding: 13px 15px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder {
  color: #7e94c0;
}

.field input:focus {
  border-color: #7fd4ff;
  background: rgba(20, 40, 80, 0.55);
  box-shadow:
    0 0 0 3px rgba(127, 212, 255, 0.22),
    0 0 22px rgba(127, 212, 255, 0.18);
}

.btn {
  --clr: hsl(150 70% 72%);
  --fg: #06281e;
  border: 1px solid;
  cursor: pointer;
  color: var(--fg);
  background-color: var(--clr);
  background-image: linear-gradient(155deg, #fff2, #0002, #fff3);
  padding: 0.72em 1.2em;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Merienda', cursive;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  border-width: 0.05em 0.05em 0.5em 0.05em;
  border-radius: 18px;
  corner-shape: superellipse(1.5);
  box-shadow: 0 0.5em 0.5em color-mix(in srgb, var(--clr), transparent 60%);
  transition: 0.2s linear;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  border-width: 0.05em 0.05em 0.2em 0.05em;
  translate: 0 0.2em;
  box-shadow: 0 0.2em 0.3em rgba(6, 40, 30, 0.4);
}

.btn:focus-visible {
  outline: 2px solid #7fd4ff;
  outline-offset: 3px;
}

.dev {
  margin-top: 18px;
  font-size: 11px;
  color: #9ab2dd;
  user-select: none;
}

.dev code {
  color: #86d2ff;
  font-family: ui-monospace, monospace;
}

.foot {
  margin-top: 22px;
  font-size: 10px;
  font-style: italic;
  color: #7186b0;
  line-height: 1.6;
  user-select: none;
}

.foot span {
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #586d99;
}

.foot .ff {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: #7fe9c8;
  padding: 1px 6px;
  border: 1px solid rgba(127, 233, 200, 0.35);
  border-radius: 6px;
  margin-right: 4px;
}

.foot b {
  color: #86d2ff;
  font-style: normal;
  font-weight: 700;
}

/* Fallback: no WebGL / reduced motion / mobile */
.login-no-fx #auraC,
.login-no-fx #dropC,
.login-no-fx .hint {
  display: none !important;
}

.login-no-fx.auth-body {
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(68, 102, 204, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(168, 132, 255, 0.18), transparent 55%),
    linear-gradient(165deg, #050b1a 0%, #0a1530 50%, #050b1a 100%);
}

@media (max-width: 620px) {
  .stage {
    justify-content: center;
    align-items: flex-start;
    padding-top: 78px;
  }

  .head {
    font-size: 28px;
  }

  .hm-corner {
    top: 18px;
    left: 20px;
  }

  .hm-corner img {
    height: 50px;
  }

  .scrim {
    background: linear-gradient(
      180deg,
      rgba(5, 11, 26, 0.5),
      rgba(5, 11, 26, 0.25) 40%,
      rgba(5, 11, 26, 0.7)
    );
  }
}

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

  .hm-corner img {
    animation: none;
  }
}
