@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #eee;
  padding: 0 10px;
}
.wrapper{
  background: #fff;
  width: 400px;
  height: 480px;
  border-radius: 5px;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
  position: relative;
  overflow: hidden;
}

.wrapper::before{
  content: '';
  position: absolute;
  width: 390px;
  height: 580px;
  background:linear-gradient(0deg,transparent,rgba(32, 147, 212,1),rgba(32, 147, 212,1));
  top: -50%;
  left: -50%;
  animation: animate 6s linear infinite;
  transform-origin: bottom right;
}

.wrapper::after{
  content: '';
  position: absolute;
  width: 400px;
  height: 580px;
  background:linear-gradient(0deg,transparent,rgba(32, 147, 212,1),rgba(32, 147, 212,1));
  top: -50%;
  left: -50%;
  animation: animate 6s linear infinite;
  transform-origin: bottom right;
  animation-delay: -3s;
}

@keyframes animate {
  0%{
      transform: rotate(0deg);
  }

  100%{
      transform: rotate(360deg);
  }
  
}

/* Login & Signup Form CSS Start */
.form{
  padding: 25px 30px;
  position: absolute;
  border-radius: 8px;
    z-index: 10;
    inset: 3px;
  background: #fff;
    display: flex;
    flex-direction: column;
}
.form img{
  width: 80px; 
  margin-left: 38% ;   
}
.form header{
  font-size: 25px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
  text-align: center;
}
.form form{
  margin: 20px 0;
}
.form form .error-text{
  color: #721c24;
  padding: 8px 10px;
  text-align: center;
  border-radius: 5px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  display: none;
}
.form form .name-details{
  display: flex;
}
.form .name-details .field:first-child{
  margin-right: 10px;
}
.form .name-details .field:last-child{
  margin-left: 10px;
}
.form form .field{
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  position: relative;
}
.form form .field label{
  margin-bottom: 2px;
}
.form form .input input{
  height: 40px;
  width: 100%;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.form form .field input{
  outline: none;
  transition: all 0.3s ease;
}

.form form .field input:focus {
  border-color: #4a154b;
  box-shadow: 0 0 0 2px rgba(74, 21, 75, 0.1);
}

.form form .field i.toggle-password {
  position: absolute;
  right: 15px;
  top: 70%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form form .field i.toggle-password:hover {
  color: #4a154b;
}

.form form .image input{
  font-size: 17px;
}
.form form .button input{
  height: 45px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: #333;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 13px;
}

.form form .button input:hover{
  background: rgba(32, 147, 212,1);
}
.form .link{
  text-align: center;
  margin: 10px 0;
  font-size: 17px;
}
.form .link a{
  color: #333;
}
.form .link a:hover{
  text-decoration: underline;
}

.forgot-password {
  text-align: center;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid #e6e6e6;
  position: relative;
  z-index: 1;
}

.forgot-password a {
  color: #4a154b;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(74, 21, 75, 0.05);
}

.forgot-password a i {
  font-size: 12px;
}

.forgot-password a:hover {
  background: rgba(74, 21, 75, 0.1);
  color: #6a1b9a;
  transform: translateY(-2px);
}

/* Responive media query */
@media screen and (max-width: 480px) {
  .forgot-password a {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .forgot-password a i {
    font-size: 11px;
  }
  
  .form form .field i.toggle-password {
    font-size: 14px;
  }
}

@media screen and (max-width: 360px) {
  .forgot-password a {
    font-size: 12px;
    padding: 5px 10px;
  }
}
