/* === Base Setup === */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  overflow: hidden; /* prevent scroll */
}
body {
  margin: 0;
  background: radial-gradient(circle at top left,#ecf4ff 0%,#f8fbf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  color: #223043;
  position: relative;
}

/* === Background Animated Orbs === */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  animation: float 10s ease-in-out infinite alternate;
}
.bg-shape.green {
  background: #4ade80;
  top: -60px; left: -80px;
  width: 300px; height: 300px;
}
.bg-shape.yellow {
  background: #22c55e;
  bottom: -70px; right: -70px;
  width: 300px; height: 300px;
}
@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -40px); }
}

/* === Glass Login Card === */
.login-card {
  position: relative;
  z-index: 2;
  width: 400px;
  background: rgba(255,255,255,0.85);
  border-radius: 30px;
  backdrop-filter: blur(15px);
  padding: 2.5rem 2rem;
  box-shadow:
    8px 8px 25px rgba(0,0,0,0.08),
    -6px -6px 25px rgba(255,255,255,0.9),
    inset 0 1px 6px rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeUp .8s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(25px); }
  to { opacity:1; transform:translateY(0); }
}

/* === Inner Glow / Gradient === */
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(145deg,rgba(255,255,255,0.15),rgba(34,197,94,0.05));
  pointer-events: none;
}

/* === Logo === */
.logo {
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* === Headings === */
h4 {
  font-weight: 600;
  color: #223043;
  text-align: center;
}
.subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* === Input Fields === */
.form-control {
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.25rem;
  background: rgba(255,255,255,0.8);
  box-shadow:
    inset 2px 2px 6px rgba(0,0,0,0.05),
    3px 3px 8px rgba(34,197,94,0.1);
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}

/* === Buttons === */
.btn-login {
  width: 100%;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,#22c55e,#4ade80);
  box-shadow: 0 5px 14px rgba(34,197,94,0.35);
  transition: 0.3s ease;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(34,197,94,0.45);
}

/* === Footer / Links === */
a {
  color: #22c55e;
  text-decoration: none;
  transition: 0.2s;
}
a:hover { text-decoration: underline; }
.footer-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
  text-align: center;
}
.error {
    color: #ed5e4a
}
/* === Responsive Center === */
@media(max-width:480px){
  .login-card { width: 90%; padding: 2rem 1.5rem; }
  .logo { height: 50px; }
}