
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #ff00cc);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Box */
.box {
  position: relative;
  width: 350px;
  height: 420px;
  background: #2b2b2b;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  animation: curveMove 7s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes curveMove {
  0%,100% { transform: perspective(900px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(900px) rotateX(3deg) rotateY(-3deg); }
}

/* Glowing Lines */
.box::before,
.box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 350px;
  height: 420px;
  background: linear-gradient(0deg, transparent, #00ffff, #ff00ff, #00ff99);
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
}

.box::after {
  filter: blur(20px);
  animation-delay: -3s;
}

@keyframes animate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.borderLine {
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  overflow: hidden;
}

/* Inner box */
.loginBx {
  position: absolute;
  inset: 12px;
  background: #3a3a3a;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
}

h2 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 25px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  border: none;
  outline: none;
  border-radius: 25px;
  background: #2a2a2a;
  color: #fff;
}

input::placeholder {
  color: #aaa;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  outline: none;
  border-radius: 25px;
  background: #00ffff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background: #00ff99;
}

.group {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.group a {
  color: #ff0099;
  text-decoration: none;
  font-size: 14px;
}

.group a:hover {
  text-decoration: underline;
}

/* /Page turn animations */
.turn-page {
  animation: turnPage 0.8s ease forwards;
}

.turn-back {
  animation: turnBack 0.8s ease forwards;
}

@keyframes turnPage {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-0deg) skewY(-3deg); }
  100% { transform: rotateY(-50deg); }
}

@keyframes turnBack {
  0% { transform: rotateY(-00deg); }
  50% { transform: rotateY(-50deg) skewY(3deg); }
  100% { transform: rotateY(0deg); }
}
