* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; /* IMPORTANT */
  font-family: 'Poppins', sans-serif; 
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* horizontal scroll band */
}

body {
  background: linear-gradient(135deg, #0a0f1a, #0d1b2a, #1b263b);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 15px; /* mobile me space */
  position: relative;
}

@keyframes gradientBG {
 0% { background-position: 0% 50%; } 
 50% { background-position: 100% 50%; } 
 100% { background-position: 0% 50%; }
}

/* FLOATING BLOBS */
.blob {
  position: fixed;
  border-radius: 50%; 
  filter: blur(80px);
  opacity: 0.3; 
  z-index: 0;
  pointer-events: none; /* click na roke */
}
.blob1 { width: 400px; height: 400px; background: #00ff96; top: -100px; left: -100px; animation: moveBlob1 20s infinite; }
.blob2 { width: 300px; height: 300px; background: #00d4ff; bottom: -100px; right: -100px; animation: moveBlob2 18s infinite; }
@keyframes moveBlob1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(100px, 100px)} }
@keyframes moveBlob2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-80px, -80px)} }

#particles-js { 
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%; 
  z-index: 1; 
  pointer-events: none;
}

/* ===== MAIN CARD FIX ===== */
.login-card {
  position: relative; 
  z-index: 2; 
  width: 100% !important; /* bootstrap override */
  max-width: 400px;
  background: rgba(10, 15, 26, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px); /* safari fix */
  border-radius: 25px;
  padding: 70px 30px 30px; /* padding kam ki */
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease;
  overflow: visible; /* card ke andar scroll band */
}

/* ANIMATED GRADIENT BORDER */
.login-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #00ff96, #00d4ff, #ff00ff, #00ff96);
  background-size: 400%;
  border-radius: 27px; 
  z-index: -1;
  animation: borderGlow 4s linear infinite;
}
.login-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 26, 0.7);
  border-radius: 25px;
  z-index: -1;
}

@keyframes borderGlow {
 0% { background-position: 0% 50%; }
 50% { background-position: 100% 50%; }
 100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card h2 { 
  color: #fff; 
  font-weight: 700; 
  margin-bottom: 30px; 
  text-align: center; /* YE ADD KARO */
  font-size: 28px;
  background: linear-gradient(90deg, #00ff96, #00d4ff); /* gradient text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-icon {
  position: absolute; top: -45px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 90px; background: linear-gradient(135deg, #00ff96, #00d4ff);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.user-icon i { font-size: 40px; color: #fff; position: relative; z-index: 2; }

.input-group {
  margin-bottom: 20px; 
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px; 
  overflow: hidden; 
  border: 2px solid transparent;
  width: 100%; /* full width */
}
.input-group:focus-within {
  border: 2px solid #00ff96;
  box-shadow: 0 0 20px rgba(0, 255, 150, 0.4);
}
.input-group-text { background: transparent; border: none; color:black; padding: 14px 15px; font-size: 18px; }
.form-control { 
  background: transparent; 
  border: none; 
  color: #111; 
  padding: 14px 5px; 
  font-weight: 500; 
  width: 100%; /* full width */
}
.form-control:focus { box-shadow: none; outline: none; }

.btn-login {
  width: 100%; background: linear-gradient(90deg, #00ff96, #00d4ff);
  border: none; padding: 15px; font-weight: 700; letter-spacing: 1.5px;
  color: #001a0f; border-radius: 12px; transition: all 0.3s ease;
  font-size: 16px; cursor: pointer;
}
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 255, 150, 0.4); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  body { padding: 12px; }
  .login-card {
    max-width: 90%;
    padding: 65px 20px 25px; 
  }
  .user-icon { width: 75px; height: 75px; top: -37px; }
  .user-icon i { font-size: 34px; }
  .login-card h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  body { padding: 10px; }
  .login-card {
    max-width: 92%;
    padding: 60px 18px 20px; 
    border-radius: 18px;
  }
  .user-icon { width: 70px; height: 70px; top: -35px; }
  .user-icon i { font-size: 32px; }
  .login-card h2 { font-size: 22px; }
  #particles-js canvas { opacity: 0.6; }
}

.options-row { 
  display: flex; /* YE ADD KARO */
  justify-content: space-between; /* LEFT-RIGHT ME BAAT DEGA */
  align-items: center; 
  margin-bottom: 25px; 
  font-size: 13px; 
  color: #cbd5e1; 
}
.options-row a { 
  color: #00d4ff; /* blue link */
  text-decoration: none; 
  transition: 0.3s; 
  font-weight: 600;
}
.options-row a:hover { 
  color: #00ff96; 
  text-decoration: underline; 
}

/* REGISTER PAGE TOP LINKS */
.top-links {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
}
.top-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}
.top-links a:hover {
  color: #00ff96;
  text-decoration: underline;
}

/* REGISTER HEADING */
.register-card h2 {
  background: linear-gradient(90deg, #4f46e5, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.register-card .subtitle {
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
  margin-bottom: 25px;
}
/* FORGOT PASSWORD SPECIAL */
.forgot-card {
  padding: 80px 40px 30px; 
}

.login-card .subtitle {
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.back-link {
  color: #ffaa00; /* screenshot jaisa orange */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}
.back-link:hover {
  color: #00ff96;
  text-shadow: 0 0 10px rgba(0,255,150,0.5);
}

/* BUTTON PURPLE-PINK GRADIENT JAISA SCREENSHOT */
.forgot-card .btn-login {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  background-size: 200% 100%;
  animation: gradientFlow 3s linear infinite;
}
.forgot-card .btn-login:hover {
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4); 
}

/* HEADING GREEN JAISA SCREENSHOT */
.forgot-card h2 {
  background: linear-gradient(90deg, #84cc16, #22c55e); /* green */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ERROR PAGE SPECIAL ===== */
.error-card {
  text-align: center;
  padding: 50px 40px 40px;
  width: 400px;
}

.error-icon {
  font-size: 60px;
  color: #ff0055; /* red cross */
  animation: shake 0.5s ease;
  margin-bottom: 15px;
}
.error-icon i {
  filter: drop-shadow(0 0 15px rgba(255,0,85,0.6));
}

.error-card h2 {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 15px;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 15px 0 20px;
}

.error-text {
  color: #c084fc; /* purple text jaise screenshot */
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* PINK-PURPLE BUTTON */
.btn-error {
  background: linear-gradient(90deg, #ec4899, #a855f7);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
  animation: gradientFlow 3s linear infinite;
}
.btn-error:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
}

/* SHAKE ANIMATION FOR ICON */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
 75% { transform: translateX(5px); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .error-card { width: 90%; padding: 40px 25px 30px; }
  .error-icon { font-size: 50px; }
  .error-card h2 { font-size: 24px; }
}

/* ===== SUCCESS PAGE SPECIAL ===== */
.success-card {
  text-align: center;
  padding: 50px 40px 40px;
  width: 420px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #00ff88; /* bright green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(0,255,136,0.7);
  animation: pulse 1.5s infinite;
}
.success-icon i {
  font-size: 45px;
  color: #0f172a;
  font-weight: bold;
}

.success-card h2 {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 25px;
  line-height: 1.3;
}

/* TABLE DESIGN */
.info-table {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.1);
}
.table-row {
  display: flex;
}
.table-row.header {
  background: rgba(255,255,255,0.08);
}
.table-col {
  flex: 1;
  padding: 14px 10px;
  color: #e2e8f0;
  font-size: 15px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.table-col:last-child { border-right: none; }
.header .table-col {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

/* GREEN-PURPLE BUTTON */
.btn-success-btn {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 0;
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  animation: gradientFlow 3s linear infinite;
}
.btn-success-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

/* PULSE ANIMATION FOR ICON */
@keyframes pulse {
 0% { box-shadow: 0 0 0 0 rgba(0,255,136,0.7); }
 70% { box-shadow: 0 0 0 20px rgba(0,255,136,0); }
 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .success-card { width: 90%; padding: 40px 25px 30px; }
  .success-icon { width: 70px; height: 70px; }
  .success-icon i { font-size: 38px; }
  .success-card h2 { font-size: 24px; }
  .table-col { font-size: 13px; padding: 12px 8px; }
}

