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

body{
  height:100vh;
  background: radial-gradient(circle at center, #2b0000, #000);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  overflow:hidden;
}

/* 🔥 subtle grain overlay */
body::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  background: url('noise.png');
  opacity:0.05;
  pointer-events:none;
}

/* glowing red blur */
body::after{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  background: radial-gradient(circle, rgba(255,0,0,0.4), transparent);
  filter: blur(120px);
  animation: float 6s infinite alternate;
}

@keyframes float{
  from{ transform: translate(-50px, -50px);}
  to{ transform: translate(50px, 50px);}
}

.container{
  width:100%;
  padding:20px;
  z-index:2;
}

.glass-card{
  max-width:400px;
  margin:auto;
  padding:40px 30px;
  border-radius:20px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border:1px solid rgba(255,255,255,0.1);

  box-shadow: 0 0 60px rgba(255,0,0,0.15);
  animation: fadeUp 1s ease;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(30px);}
  to{opacity:1; transform:translateY(0);}
}

h1{
  text-align:center;
  margin-bottom:10px;
  letter-spacing:1px;
}

.subtitle{
  text-align:center;
  font-size:14px;
  opacity:0.7;
  margin-bottom:30px;
}

.input-group{
  position:relative;
  margin-bottom:25px;
}

.input-group input{
  width:100%;
  padding:12px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  border-radius:8px;
  color:#fff;
  outline:none;
}

.input-group label{
  position:absolute;
  left:12px;
  top:12px;
  font-size:14px;
  color:#aaa;
  transition:0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label{
  top:-8px;
  left:8px;
  font-size:12px;
  background:#2b0000;
  padding:0 5px;
}

/* 👁 password toggle */
.toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  font-size:12px;
  color:#aaa;
}

/* 🔴 button */
button{
  width:100%;
  padding:12px;
  border:none;
  border-radius:8px;
  background:#900;
  color:#fff;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

/* ripple effect */
button::after{
  content:"";
  position:absolute;
  width:0;
  height:0;
  background:rgba(255,255,255,0.4);
  border-radius:50%;
  transform:translate(-50%, -50%);
  opacity:0;
}

button:active::after{
  width:200px;
  height:200px;
  opacity:1;
  transition:0s;
}

button:hover{
  background:#ff0000;
}

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

.switch a{
  color:#ff4d4d;
  text-decoration:none;
}

.error{
  color:#ff4d4d;
  font-size:12px;
  margin-top:-15px;
  margin-bottom:10px;
  display:none;
}

@media(max-width:500px){
  .glass-card{
    padding:30px 20px;
  }
}
.error {
  color: #ff4d4d;
  font-size: 14px;
  margin: 8px 0;
  transition: 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.back:hover{
  background-color: #c10707;
  padding: 5px 12px;
  border-radius: 4px;
}



