
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f0f2f5;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* Background particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(8px);
  background: linear-gradient(45deg, #7890f0, #a8b9ff);
  animation: moveParticle 15s infinite linear;
}

@keyframes moveParticle {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.4;
  }
  25% {
    opacity: 0.6;
  }
  50% {
    transform: translateX(50px) translateY(50px) scale(1.2);
    opacity: 0.2;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.4;
  }
}

/* Gradient lines */
.gradient-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.line {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(120, 144, 240, 0.1) 20%, 
    rgba(120, 144, 240, 0.2) 50%, 
    rgba(120, 144, 240, 0.1) 80%, 
    transparent 100%);
  animation: moveLine 12s linear infinite;
}

@keyframes moveLine {
  0% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Subtle grid pattern */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(120, 144, 240, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

/* Moving gradient overlay */
.gradient-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  animation: moveGradient 15s linear infinite;
}

@keyframes moveGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 380px;
}

.login-box {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
              0 1px 1px rgba(0, 0, 0, 0.03), 
              0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 40px 30px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.login-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7890f0, transparent);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.login-box:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
              0 1px 3px rgba(0, 0, 0, 0.05), 
              0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
}

h2 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
  font-weight: 600;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #64a5ff, #7890f0);
  border-radius: 3px;
}

.input-box {
  position: relative;
  margin-bottom: 25px;
}

.input-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.input-box input:focus {
  border-color: #7890f0;
  box-shadow: 0 0 0 4px rgba(120, 144, 240, 0.12);
  outline: none;
  background: rgba(255, 255, 255, 1);
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 4px;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: 0;
  left: 12px;
  font-size: 12px;
  color: #7890f0;
  background: white;
  padding: 0 5px;
}

.btn {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(135deg, #7890f0, #64a5ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(120, 144, 240, 0.2);
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.5s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #6579d6, #5692ed);
  box-shadow: 0 8px 20px rgba(120, 144, 240, 0.3);
  transform: translateY(-2px);
}

.btn:hover:after {
  opacity: 1;
  left: 0;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
}

.remember input {
  margin-right: 5px;
}

.forgot-password {
  color: #7890f0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #6579d6;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(225, 225, 225, 0.5), 
    rgba(225, 225, 225, 1), 
    rgba(225, 225, 225, 0.5));
}

.divider span {
  padding: 0 10px;
  color: #888;
  font-size: 13px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e1e1e1;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.social-icon:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  color: #7890f0;
}

.register-link {
  text-align: center;
  margin-top: 25px;
  color: #777;
  font-size: 13px;
}

.register-link a {
  color: #7890f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.register-link a:hover {
  color: #6579d6;
  text-decoration: underline;
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s ease;
}
