/*** Premium Glassmorphic Login Page 2025 Edition ***/

/* Reset & Base */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Poppins', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  z-index: -2;
}

#particles-js::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Login Container */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.login .content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  width: 100%;
  max-width: 480px;
  padding: 60px 45px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease-in-out;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Headings */
.login .content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00c9ff, #92fe9d);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(0, 201, 255, 0.5);
  margin-bottom: 20px;
  word-break: break-word;
}

.login .content h3 {
  font-size: 1.2rem;
  color: #eee;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Form Styling */
.form-group {
  margin: 22px 0;
  text-align: center;
  width: 100%;
}

.form-group label {
  color: #ddd;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  text-align: center;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.92);
  color: #222;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.form-group input::placeholder {
  text-align: center;
}

.form-group input:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(0, 201, 255, 0.6);
}

/* Button Styling */
.form-actions .btn {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: white;
  border: none;
  padding: 16px;
  font-size: 1.2rem;
  border-radius: 30px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(255, 75, 43, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-actions .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(255, 75, 43, 0.6);
}

/* Error Message */
.error-message {
  color: #FF5F5F;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Footer */
.footer-text {
  text-align: center;
  color: #FFD700;
  font-size: 1rem;
  margin-top: 30px;
  font-weight: bold;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .login .content {
    padding: 40px 25px;
  }
  .login .content h1 { font-size: 2.2rem; }
  .login .content h3 { font-size: 1rem; }
  .form-actions .btn { font-size: 1.1rem; padding: 14px; }
}

@media (max-width: 480px) {
  .login {
    align-items: flex-start;
  }
  .login .content {
    padding: 30px 20px;
    margin-top: 30px;
  }
  .login .content h1 { font-size: 1.8rem; }
  .login .content h3 { font-size: 0.95rem; }
  .form-actions .btn { font-size: 1rem; padding: 12px 14px; }
  .form-group input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}
