/* ============================================
   AethrionX Login - Light Glass Theme
   Unified with Lime/Chartreuse Accent
   ============================================ */

/* Animated gradient background */
.login-page {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 50%, #e8e8e8 100%);
}

/* Animated orbs for depth */
.login-page::before,
.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.login-page::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #c4f400 0%, transparent 70%);
  top: -150px;
  right: 10%;
  animation-delay: 0s;
}

.login-page::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7eb3f1 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(0, 20px) scale(1);
  }
  75% {
    transform: translate(-20px, -10px) scale(0.95);
  }
}

/* Additional floating orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.login-orb-1 {
  width: 250px;
  height: 250px;
  background: rgba(196, 244, 0, 0.35);
  top: 30%;
  right: 20%;
  animation: float 10s ease-in-out infinite;
  animation-delay: -2s;
}

.login-orb-2 {
  width: 180px;
  height: 180px;
  background: rgba(45, 212, 191, 0.25);
  bottom: 20%;
  left: 15%;
  animation: float 12s ease-in-out infinite;
  animation-delay: -6s;
}

.login-orb-3 {
  width: 120px;
  height: 120px;
  background: rgba(74, 144, 217, 0.25);
  top: 15%;
  right: 35%;
  animation: float 9s ease-in-out infinite;
  animation-delay: -3s;
}

/* Glassmorphism container */
.login-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 48px 44px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 80px rgba(196, 244, 0, 0.08);
  z-index: 10;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle glass reflection */
.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Header styling */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c4f400 0%, #9bc700 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #0a0a0a;
  box-shadow: 
    0 12px 40px rgba(196, 244, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 
      0 12px 40px rgba(196, 244, 0, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 
      0 12px 50px rgba(155, 199, 0, 0.5),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.login-logo svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

/* Company name styling */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #0a0a0a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-header .tagline {
  font-size: 12px;
  font-weight: 600;
  color: #9bc700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-header p {
  color: #7a7a7a;
  font-size: 15px;
  margin-top: 12px;
}

/* Form styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-field {
  position: relative;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.login-field input {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  color: #0a0a0a;
  transition: all 0.3s ease;
}

.login-field input:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.login-field input:focus {
  outline: none;
  border-color: #c4f400;
  background: #ffffff;
  box-shadow: 
    0 0 0 4px rgba(196, 244, 0, 0.2),
    0 4px 20px rgba(196, 244, 0, 0.15);
}

.login-field input::placeholder {
  color: #9a9a9a;
}

/* Error message */
.login-error {
  color: #dc2626;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: none;
}

.login-error:not(:empty) {
  display: block;
}

/* Submit button */
.login-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #0a0a0a;
  background: linear-gradient(135deg, #c4f400 0%, #d4ff2a 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 30px rgba(196, 244, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 8px;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9bc700 0%, #c4f400 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px rgba(196, 244, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn span,
.login-btn svg {
  position: relative;
  z-index: 1;
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.login-footer {
  margin-top: 36px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.login-footer p {
  font-size: 13px;
  color: #7a7a7a;
}

.login-footer .highlight {
  color: #9bc700;
  font-weight: 600;
}

/* Decorative elements */
.login-decoration {
  position: absolute;
  pointer-events: none;
}

.login-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #c4f400;
  border-radius: 50%;
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* Hide login page */
.login-page.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 36px 28px;
    margin: 16px;
    border-radius: 20px;
  }

  .login-header h1 {
    font-size: 30px;
  }

  .login-logo {
    width: 70px;
    height: 70px;
  }
}
