/* iTraxX - Premium Login Page Styling (Glassmorphism & Animated Mesh Gradient) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', sans-serif !important;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Dynamic Animated Background */
body.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(15, 23, 42, 1) 100%);
  animation: rotateBg 30s linear infinite;
  z-index: 0;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating Decorative Elements */
.glow-orb-1, .glow-orb-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.glow-orb-1 {
  background: #6366f1;
  top: 10%;
  left: 20%;
  animation: floatOrb1 15s ease-in-out infinite alternate;
}

.glow-orb-2 {
  background: #ec4899;
  bottom: 15%;
  right: 20%;
  animation: floatOrb2 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 40px) scale(1.2); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-40px, -50px) scale(0.9); }
}

/* Glassmorphism Container */
#login {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card-container.card {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  padding: 40px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* User Icon & Logo Section */
.profile-img {
  text-align: center;
  margin-bottom: 30px;
}

.profile-img i {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.1);
  padding: 20px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.profile-img i:hover {
  transform: rotate(10deg) scale(1.05);
}

.profile-img h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Form Styles */
.form-signin input {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  height: auto !important;
  margin-bottom: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.form-signin input::placeholder {
  color: #64748b;
}

.form-signin input:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
  background-color: rgba(15, 23, 42, 0.9) !important;
}

/* Sign In Button */
.btn-signin {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  height: auto !important;
  margin-top: 24px !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-signin:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45) !important;
  opacity: 0.95;
}

.btn-signin:active {
  transform: translateY(1px) !important;
}

/* Alerts */
.alert-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-radius: 8px !important;
  font-size: 14px;
  padding: 10px 14px !important;
  margin-bottom: 20px !important;
  text-align: center;
}
