*{
  box-sizing:border-box;
  font-family:system-ui,-apple-system;
}

html,body{
  margin:0;
  height:100%;
}

/* 🌱 Green animated background */
.bg{
  position:fixed;
  inset:0;
  background:linear-gradient(120deg,#065f46,#22c55e);
  animation:bgMove 10s ease-in-out infinite alternate;
}
@keyframes bgMove{
  0%{filter:hue-rotate(0deg)}
  100%{filter:hue-rotate(18deg)}
}

/* Layout */
.wrapper{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* Card */
.card{
  width:100%;
  max-width:440px;
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(22px);
  border-radius:28px;
  padding:36px 30px;
  box-shadow:0 40px 100px rgba(0,0,0,.35);
  color:#F0FDF4;
  animation:fadeUp .8s ease;
}

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

/* Brand */
.brand{
  text-align:center;
  margin-bottom:26px;
}
.brand img{
  width:60px;
  height:60px;
}
.brand h1{
  margin:10px 0 6px;
  font-size:28px;
  font-weight:900;
  color:#FFFFFF;
}
.brand p{
  font-size:15px;
  font-weight:700;
}

/* Error */
.error-banner{
  display:none;
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:14px;
  background:#7f1d1d;
  color:#FEE2E2;
  font-size:17px;
  font-weight:900;
  text-align:center;
}

/* Fields */
.field{
  position:relative;
  margin-top:22px;
}
.field input{
  width:100%;
  padding:18px 48px 18px 16px;
  border-radius:14px;
  border:2.5px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.18);
  color:#FFFFFF;
  font-size:18px;
  font-weight:700;
}
.field label{
  position:absolute;
  left:16px;
  top:-10px;
  background:#16a34a;
  padding:3px 10px;
  font-size:14px;
  font-weight:900;
  border-radius:10px;
  color:#FFFFFF;
}
.toggle{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  font-size:18px;
}

/* Strength */
.strength-wrap{
  margin-top:14px;
}
.strength-bar{
  height:10px;
  border-radius:10px;
  background:#14532d;
  width:0%;
  transition:.3s;
}
.strength-text{
  margin-top:6px;
  font-size:14px;
  font-weight:800;
}

/* Button */
button{
  width:100%;
  margin-top:32px;
  padding:18px;
  border:none;
  border-radius:36px;
  background:#00ff99;
  color:#064E3B;
  font-size:18px;
  font-weight:900;
  letter-spacing:1px;
  cursor:pointer;
  transition:.3s;
}
button:hover{transform:scale(1.05)}
button:disabled{opacity:.6}

/* Links */
.links{
  margin-top:22px;
  text-align:center;
  font-size:15px;
  font-weight:800;
}
.links a{
  color:#F0FDF4;
  text-decoration:none;
}
.links a:hover{text-decoration:underline}

/* Mobile */
@media(max-width:420px){
  .card{padding:30px 22px}
  .brand h1{font-size:26px}
}