/* Login page styles */

.login-body {
  min-height: 100vh;
  background: #0d0221;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: -20%;
  background: linear-gradient(120deg, #6d28d9, #ec4899, #2563eb, #6d28d9);
  background-size: 260% 260%;
  animation: loginGradientShift 18s ease infinite;
  filter: saturate(1.1);
  z-index: 0;
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(10, 6, 32, 0.18), rgba(10, 6, 32, 0.34));
}

.login-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.58;
  z-index: 0;
}

.login-orb-one {
  width: 320px;
  height: 320px;
  top: 10%;
  left: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.04) 68%, transparent 72%);
  animation: floatOrbA 12s ease-in-out infinite;
}

.login-orb-two {
  width: 240px;
  height: 240px;
  right: 14%;
  top: 18%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.7), rgba(244, 114, 182, 0.08) 66%, transparent 72%);
  animation: floatOrbB 14s ease-in-out infinite;
}

.login-orb-three {
  width: 360px;
  height: 360px;
  bottom: -4%;
  right: 24%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.62), rgba(96, 165, 250, 0.06) 62%, transparent 72%);
  animation: floatOrbC 16s ease-in-out infinite;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  padding: 24px;
}

.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.login-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 34px 100px rgba(17, 24, 39, 0.34);
}

.login-brand {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}

.login-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-brand-link:hover {
  color: #fff;
}

.login-github-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.login-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.login-subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.login-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(109, 40, 217, 0.78);
  z-index: 1;
}

.login-input-icon svg {
  width: 100%;
  height: 100%;
}

.login-input {
  height: 54px;
  font-size: 14px;
  padding-left: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-button {
  height: 52px;
  font-size: 14px;
  border-radius: 16px;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(109, 40, 217, 0.32);
}

@keyframes loginGradientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 50%;
  }

  50% {
    transform: translate3d(0, 0, 0) scale(1.06);
    background-position: 100% 50%;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 50%;
  }
}

@keyframes floatOrbA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(24px, -18px, 0);
  }
}

@keyframes floatOrbB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-26px, 20px, 0);
  }
}

@keyframes floatOrbC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@media (max-width: 640px) {
  .login-shell {
    width: min(100%, 100vw);
    padding: 18px;
  }

  .login-card {
    padding: 22px;
    border-radius: 22px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-orb-one,
  .login-orb-three {
    width: 220px;
    height: 220px;
  }

  .login-orb-two {
    width: 180px;
    height: 180px;
  }
}
