/* ─── lowkeylab Chat — Custom Login Background ──────────────────── */

/* Animated mesh gradient background for the login screen */
.mx_AuthPage {
  background: #080810 !important;
  position: relative;
  overflow: hidden;
}

.mx_AuthPage::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(71,181,144,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(29,120,90,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 10%, rgba(20,80,65,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 10% 80%, rgba(47,140,110,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 90% at 90% 20%, rgba(71,181,144,0.12) 0%, transparent 50%);
  animation: meshDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.mx_AuthPage::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(100,200,160,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 30% 60%, rgba(40,160,110,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 80% at 60% 90%, rgba(71,181,144,0.10) 0%, transparent 45%);
  animation: meshDrift2 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshDrift {
  0%   { transform: translate(0%, 0%) rotate(0deg); }
  33%  { transform: translate(3%, -4%) rotate(2deg); }
  66%  { transform: translate(-2%, 3%) rotate(-1deg); }
  100% { transform: translate(4%, 2%) rotate(3deg); }
}

@keyframes meshDrift2 {
  0%   { transform: translate(0%, 0%) rotate(0deg); }
  50%  { transform: translate(-4%, 3%) rotate(-2deg); }
  100% { transform: translate(3%, -5%) rotate(2deg); }
}

/* Login card — glassmorphism */
.mx_AuthBody {
  background: rgba(14, 14, 22, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(71, 181, 144, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 30px rgba(71,181,144,0.06) !important;
  position: relative;
  z-index: 1;
}

/* Auth wrapper needs z-index to sit above bg */
.mx_AuthPage_content {
  position: relative;
  z-index: 1;
}

/* Tabs (Login / Register) */
.mx_AuthPage .mx_TabbedView_tabLabel.mx_TabbedView_tabLabel_active {
  color: #47b590 !important;
  border-bottom-color: #47b590 !important;
}

/* Input focus */
.mx_AuthPage .mx_Field input:focus,
.mx_AuthPage .mx_Field select:focus {
  border-color: #47b590 !important;
  box-shadow: 0 0 0 1px rgba(71,181,144,0.3) !important;
}

/* Submit button */
.mx_AuthPage .mx_Login_submit,
.mx_AuthPage .mx_AccessibleButton_kind_primary {
  background-color: #47b590 !important;
  border-color: #47b590 !important;
}
.mx_AuthPage .mx_Login_submit:hover,
.mx_AuthPage .mx_AccessibleButton_kind_primary:hover {
  background-color: #3da07e !important;
}
