* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at top, #1e3c72, #090914 55%, #020204);
  color: white;
}

body {
  margin: 0;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.75;
  animation: float 8s infinite ease-in-out;
}

.orb1 {
  width: 260px;
  height: 260px;
  background: #00f5ff;
  top: 10%;
  left: 10%;
}

.orb2 {
  width: 320px;
  height: 320px;
  background: #9b5cff;
  bottom: 5%;
  right: 8%;
  animation-delay: 2s;
}

.orb3 {
  width: 180px;
  height: 180px;
  background: #ff3cac;
  top: 65%;
  left: 25%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-40px) scale(1.1);
  }
}

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 2;
}

.login-card {
  width: 420px;
  padding: 45px 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  box-shadow:
    0 0 50px rgba(0, 245, 255, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, #00f5ff, #9b5cff, #ff3cac);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 55px rgba(255, 60, 172, 0.9);
  }
}

h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.subtitle {
  color: #cfd8ff;
  font-size: 14px;
  margin-bottom: 35px;
}

.input-box {
  position: relative;
  margin-bottom: 28px;
}

.input-box input {
  width: 100%;
  padding: 18px 48px 18px 18px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 15px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.input-box label {
  position: absolute;
  left: 18px;
  top: 17px;
  color: #bfc7e6;
  pointer-events: none;
  transition: 0.3s;
}

.input-box input:focus,
.input-box input:valid {
  border-color: #00f5ff;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.35);
}

.input-box input:focus + label,
.input-box input:valid + label {
  top: -10px;
  left: 14px;
  padding: 2px 8px;
  font-size: 12px;
  color: #00f5ff;
  background: rgba(10, 10, 25, 0.9);
  border-radius: 8px;
}

.input-box span {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f5ff, #ff3cac);
  transition: 0.4s;
}

.input-box input:focus ~ span {
  left: 0;
  width: 100%;
}

#togglePassword {
  position: absolute;
  right: 12px;
  top: 11px;
  border: none;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 25px;
  color: #dce3ff;
}

.options a,
.signup a {
  color: #00f5ff;
  text-decoration: none;
}

.login-btn {
  position: relative;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: white;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #00f5ff, #9b5cff, #ff3cac);
  background-size: 250%;
  overflow: hidden;
  transition: 0.4s;
}

.login-btn:hover {
  background-position: right;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 245, 255, 0.35);
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-25deg);
}

.login-btn:hover::before {
  animation: shine 0.8s;
}

@keyframes shine {
  to {
    left: 130%;
  }
}

.loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  margin: auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-btn.loading .btn-text {
  display: none;
}

.login-btn.loading .loader {
  display: block;
}

#message {
  min-height: 22px;
  margin-top: 18px;
  font-size: 14px;
}

.signup {
  margin-top: 25px;
  font-size: 14px;
  color: #dce3ff;
}

.shake {
  animation: shake 0.35s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
}

.success-glow {
  box-shadow:
    0 0 70px rgba(0, 255, 170, 0.75),
    inset 0 0 35px rgba(0, 255, 170, 0.15);
}

@media (max-width: 480px) {
  .login-card {
    width: 100%;
    padding: 35px 25px;
  }

  h1 {
    font-size: 28px;
  }
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.orb {
  position: fixed;
  z-index: 1;
}

.login-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 10;
  padding: 20px;
}

.login-card {
  position: relative;
  z-index: 11;
}