* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif; 
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #2d2d3b; 
  animation: backgroundAnimation 6s ease-in-out infinite; 
}

/* Animation for the background color */
@keyframes backgroundAnimation {
  0% {
    background-color: #2d2d3b;
  }
  50% {
    background-color: #333344;
  }
  100% {
    background-color: #2d2d3b;
  }
}

.box {
  position: relative;
  width: 380px;
  height: 420px;
  background: #35364a; /* Slightly lighter dark gray background for the box */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1); /* Shadow for depth */
  animation: backgroundAnimation 8s ease-in-out infinite; /* Smooth background animation */
}

.box::after,
.box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 380px;
  height: 420px;
  background: linear-gradient(0deg, transparent, #55c7f7, #55c7f7); 
  z-index: 1;
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
}

.box::before {
  animation-delay: -3s;
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form {
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: #35364a; /* Solid dark gray background for the form */
  z-index: 10;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
}

.form h2 {
  color: #55c7f7; /* Cool blue color for the heading */
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.1em;
  font-size: 1.5em; /* Adjusted font size for better readability */
}

.inputBox {
  position: relative;
  width: 300px;
  margin-top: 35px;
}

.inputBox input {
  position: relative;
  width: 100%;
  padding: 20px 10px 10px;
  background: transparent;
  border: none;
  outline: none; /* Remove default outline */
  color: #fff;
  font-size: 1em;
  letter-spacing: 0.05em;
  z-index: 10;
  transition: box-shadow 0.3s ease;
}

.inputBox input:focus {
  outline: none; /* Remove the default outline */
  box-shadow: none; /* Remove the default box-shadow */
}

.inputBox span {
  position: absolute;
  left: 0;
  padding: 20px 0px 10px;
  font-size: 1em;
  color: #b0b0b0;
  pointer-events: none;
  letter-spacing: 0.05em;
  transition: 0.3s;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span {
  color: #55c7f7;
  transform: translateX(0px) translateY(-34px);
  font-size: 0.75em;
}

.inputBox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #55c7f7;
  border-radius: 4px;
  transition: 0.3s;
}

.inputBox input:valid ~ i,
.inputBox input:focus ~ i {
  height: 44px;
}

.links a {
  font-size: 0.9em;
  color: #b0b0b0; /* Light gray color for normal state */
  text-decoration: none;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #55c7f7; /* Bright blue color for hover */
}

.links a:focus {
  color: #55c7f7; /* Bright blue color when focused */
}

input[type="submit"] {
  border: none;
  outline: none;
  background: #55c7f7;
  padding: 11px 25px;
  width: 100px;
  color: #fff;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input[type="submit"]:hover {
  background: #339db8;
  box-shadow: 0 0 10px rgba(87, 199, 247, 0.6);
  transform: scale(1.05);
}