:root {
  /* ====== */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-secondary: #1e40af;
  --color-accent: #7c3aed;
  --color-accent-dark: #6d28d9;
  --color-accent-light: #e0e7ff;

  /* ====== */
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
  --gradient-success: linear-gradient(
    135deg,
    var(--success) 0%,
    var(--success-dark) 100%
  );
  --gradient-warning: linear-gradient(
    135deg,
    var(--warning) 0%,
    var(--warning-dark) 100%
  );
  --gradient-danger: linear-gradient(
    135deg,
    var(--danger) 0%,
    var(--danger-dark) 100%
  );

  /* ====== */
  --white: #fff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ====== */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #047857;
  --warning: #b45309;
  --warning-light: #fef3c7;
  --warning-dark: #92400e;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-dark: #b91c1c;
  --danger-medium: #fca5a5;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* ====== */
  --color-primary-rgb: 37, 99, 235;
  --color-primary-light-rgb: 59, 130, 246;

  /* ====== */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* ====== */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%),
    0 10px 10px -5px rgb(0 0 0 / 4%);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 25%);

  /* ====== */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* ====== */
  --font-sans: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto,
    sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', monaco, 'Cascadia Code', monospace;

  /* === Bootstrap === */
  --bs-body-bg: var(--gray-50);
  --bs-card-bg: var(--white);
  --bs-table-bg: var(--white);
  --bs-form-control-bg: var(--white);
  --bs-form-control-color: var(--gray-800);
}

/*===*/
[data-theme='alt'] {
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-light: #34d399;
  --color-secondary: #047857;
  --color-accent: #0369a1;
  --color-accent-dark: #075985;
  --color-accent-light: #bae6fd;
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
}
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-primary-dark),
    var(--color-secondary),
    var(--color-primary)
  );
  background-size: 400% 400%;
  animation: loginGradient 20s ease infinite;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@keyframes loginGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/*===*/
.login-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgb(120 119 198 / 30%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgb(255 255 255 / 10%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgb(120 119 198 / 20%) 0%,
      transparent 50%
    );
  animation: particleMove 20s ease-in-out infinite;
}

@keyframes particleMove {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ==== */
.login-form-container {
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 1rem;
  box-shadow:
    0 32px 64px rgb(0 0 0 / 20%),
    inset 0 1px 0 rgb(255 255 255 / 30%);
  transform: translateY(-100vh);
  opacity: 0;
  animation: slideDownForm 0.8s ease-out 0.5s forwards;
  position: relative;
  overflow: hidden;
}

/* ==== */
@keyframes slideDownForm {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== */
.login-form-container.slide-out {
  animation: slideUpForm 0.6s ease-in forwards;
}

@keyframes slideUpForm {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/*==== */
.login-title {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--white), var(--color-accent-light));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 0 10px rgb(255 255 255 / 30%));
  }

  to {
    filter: drop-shadow(0 0 20px rgb(255 255 255 / 60%));
  }
}

.login-subtitle {
  color: rgb(255 255 255 / 80%);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 400;
}

/* ==== */
.login-form .form-control {
  background: rgb(255 255 255 / 10%);
  border: 2px solid rgb(255 255 255 / 20%);
  color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.login-form .form-control::placeholder {
  color: rgb(255 255 255 / 60%);
}

.login-form .form-control:focus {
  background: rgb(255 255 255 / 15%);
  border-color: rgb(255 255 255 / 40%);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 10%);
  outline: none;
  transform: scale(1.02);
}

/* ==== */
.login-btn {
  background: linear-gradient(45deg, var(--white), var(--gray-100));
  color: var(--color-secondary);
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  width: 100%;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.login-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgb(255 255 255 / 50%);
  box-shadow: none;
}

.login-btn.loading,
.login-btn--ghost.loading {
  pointer-events: none;
  opacity: 0.8;
}

.demo-hint {
  color: rgb(255 255 255 / 70%);
  font-size: 0.9rem;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--color-primary-rgb), 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
  background: linear-gradient(45deg, var(--gray-50), var(--white));
}

.login-btn--ghost:hover {
  background: rgb(255 255 255 / 15%);
  color: var(--white);
  border-color: rgb(255 255 255 / 70%);
  box-shadow: none;
}

.login-btn:active {
  transform: translateY(0);
}

/* ==== */
.login-btn.loading {
  pointer-events: none;
}

.login-btn .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgb(30 64 175 / 30%);
  border-radius: 50%;
  border-top-color: var(--color-secondary);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

/* ==== */
.login-screen.fade-out {
  animation: fadeOutLogin 0.8s ease-in forwards;
}

@keyframes fadeOutLogin {
  to {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
  }
}

/* ===== */
.login-form-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgb(255 255 255 / 10%),
    transparent 30%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.emailalert{
    width:100%;
    display:none;
    font-size: 17px;
        
}
.unauthorised{
    display:none;
    font-size: 17px;
    width:100%;
}


@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.login-form-container::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 23px;
  pointer-events: none;
}

.login-form {
  position: relative;
  z-index: 10;
}

/* ===== */
@media screen and (max-width: 500px){
  .login-form-container {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }

  .login-title {
    font-size: 2rem;
  }

  .login-form .form-control {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  .login-btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* ===== */
.login-error {
  background: rgb(239 68 68 / 10%);
  border: 1px solid rgb(239 68 68 / 30%);
  color: var(--danger-medium);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ==== */
.floating-element {
  position: absolute;
  background: rgb(255 255 255 / 10%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}