body{
    background: #000;
}
body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/image/collage.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity:0.3;
    
}
.logo{
    text-align: center;
    margin-top: 20px;
    color: #ff1744;
    font-size: 1.6rem;
    font-family: 'Courier New', Courier, monospace;
   
}
.glass-form {
  background-color: rgba(252, 251, 250, 0.25);
  position: relative;
  width: 400px;
  min-height: 450px;
  border-radius: 20px;
  border: none;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  margin: auto;   
}

.glass-form::before,
.glass-form::after{
  content: "";
  position: absolute;
}

.glass-form::before{
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right,rgb(255, 0, 0), rgb(0, 255, 0));
  animation: animate-top 2s linear infinite;
}

.glass-form::after{
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,rgb(0, 0, 255), rgb(255, 255, 0));
  animation: animate-left 2s linear infinite;
}

.glass-form .right{
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, rgb(255, 0, 255), rgb(0, 255, 255));
  animation: animate-right 2s linear infinite;
}

.glass-form .bottom{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, rgb(255, 128, 0), rgb(128, 0, 128));
  animation: animate-bottom 2s linear infinite;
}

@keyframes animate-top{
  0%{
    transform: translateX(-100%);
  }
  100%{
    transform: translateX(100%);
  }
}

@keyframes animate-left{
  0%{
    transform: translateY(-100%);
  }
  100%{
    transform: translateY(100%);
  }
}

@keyframes animate-right{
  0%{
    transform: translateY(100%);
  }
  100%{
    transform: translateY(-100%);
  }
}

@keyframes animate-bottom{
  0%{
    transform: translateX(100%);
  }
  100%{
    transform: translateX(-100%);
  }
}



.form-container {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-container.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.form-container h3 {
  font-size: 38px;
  font-weight: 600;
  text-align: center;
  font-family:cursive;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  opacity: 0.8;
}

.form-group input {
  width: 84%;
  padding: 12px 15px 12px 45px;
  background:  rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.75);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color:#ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.form-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

.form-switch a {
  color:#ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
  background-color: black;
  padding: 8px 12px;
  border-radius: 15px;
  margin-left: 5px;
  transition: background-color 0.3s ease, color 0.3s ease-in-out;
}

.form-switch a:hover {
  background: rgb(34, 33, 33);
  color: red; 
}

/* Dark mode styles */
/* @media (prefers-color-scheme: dark) {
  .glass-form {
    --bg-color: rgba(0, 0, 0, 0.25);
    --highlight: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(0, 0, 0, 0.3);
  }
} */