/* Enhanced Login Page Styles for Maid Agency System */

/* Global Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes progressBar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(65, 84, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(65, 84, 241, 0.6);
  }
}

/* Body and Background */
body.login-page {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
}

body.login-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

/* Login Container */
.login-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 16px 32px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 850px;
  width: 100%;
  position: relative;
  max-height: calc(100vh - 30px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card .row {
  height: 100%;
  min-height: 500px;
}

.login-card.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.login-card.animate-success {
  animation: pulse 0.6s ease-in-out;
  box-shadow: 0 32px 64px rgba(40, 167, 69, 0.15),
    0 16px 32px rgba(40, 167, 69, 0.1), 0 8px 16px rgba(40, 167, 69, 0.05);
  border: 2px solid rgba(40, 167, 69, 0.3);
}

/* Left Panel - Maid Agency Branding */
.login-brand-panel {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 50%, var(--theme-color-2) 100%);
  color: white;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  animation: glow 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-logo i {
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 25px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-features li {
  padding: 8px 0;
  opacity: 0.9;
  font-size: 0.9rem;
  line-height: 1.4;
}

.brand-features li i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.7);
}

/* Right Panel - Login Form */
.login-form-panel {
  padding: 30px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  transition: opacity 0.2s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-title {
  color: #012970;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.form-group.shake-animation {
  animation: shake 0.5s ease-in-out;
}

.form-label {
  color: #012970;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  border-color: var(--theme-color-2);
  box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.1),
    0 4px 12px rgba(65, 84, 241, 0.15);
  background: white;
  transform: translateY(-1px);
}

.form-control.is-valid {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #fff5f5 100%);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Password Input with Toggle */
.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 5px;
  z-index: 3;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--theme-color-2);
}

/* Remember Me Checkbox */
.form-check {
  margin-bottom: 20px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  margin-top: 0.25em;
}

.form-check-input:checked {
  background-color: var(--theme-color-2);
  border-color: var(--theme-color-2);
}

.form-check-label {
  color: #495057;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* Login Button */
.btn-login {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 50%, var(--theme-color-2) 100%);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(65, 84, 241, 0.3),
    0 2px 6px rgba(65, 84, 241, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 50%, #3346e0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 84, 241, 0.4),
    0 4px 12px rgba(65, 84, 241, 0.3);
}

.btn-login:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

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

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Forgot Password Link */
.forgot-password-link {
  color: var(--theme-color-2);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.forgot-password-link:hover {
  color: #3346e0;
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Login Alerts */
.login-alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 20px;
  animation: slideUp 0.4s ease-out;
}

.login-alert.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.login-alert.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Validation Feedback */
.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
  animation: slideUp 0.3s ease-out;
}

/* Overlay Loader */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* Error Modal Overlay */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.login-loader {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.maid-agency-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--theme-color-2) 0%, #717ff5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-icon i {
  font-size: 2rem;
  color: white;
}

.loader-text h4 {
  color: #012970;
  margin-bottom: 10px;
  font-weight: 600;
}

.loader-text p {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.loader-progress {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--theme-color-2) 0%, #717ff5 100%);
  border-radius: 2px;
  transition: width 2s ease-in-out;
  width: 0%;
}

/* Error Modal Card */
.error-modal-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25), 0 16px 32px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 90%;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.error-modal-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3),
    0 4px 16px rgba(220, 53, 69, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.error-modal-icon.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3),
    0 4px 16px rgba(40, 167, 69, 0.2);
}

.error-modal-icon i {
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.error-modal-title {
  color: #012970;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.4rem;
}

.error-modal-message {
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-attempts {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffeaa7;
}

.error-modal-close {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 50%, var(--theme-color-2) 100%);
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(65, 84, 241, 0.3),
    0 2px 6px rgba(65, 84, 241, 0.2);
}

.error-modal-close:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 50%, #3346e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 84, 241, 0.4),
    0 3px 10px rgba(65, 84, 241, 0.3);
}

.error-modal-close-x {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(108, 117, 125, 0.1);
  border: none;
  font-size: 1.4rem;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-modal-close-x:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  transform: scale(1.1);
}

/* Large Screen Optimization */
@media (min-width: 1200px) {
  .login-card {
    max-width: 800px;
  }

  .login-card .row {
    min-height: 480px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    padding: 8px;
  }

  .login-card {
    border-radius: 12px;
    margin: 5px;
    max-height: calc(100vh - 16px);
  }

  .login-brand-panel {
    padding: 25px 20px;
  }

  .brand-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .brand-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .brand-features li {
    padding: 6px 0;
    font-size: 0.85rem;
  }

  .login-form-panel {
    padding: 25px 20px;
    max-height: calc(100vh - 16px);
  }

  .login-header {
    margin-bottom: 20px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .save-login-container {
    margin: 12px 0 15px 0;
  }

  .checkbox-title {
    font-size: 13px;
  }

  .checkbox-subtitle {
    font-size: 10px;
  }

  .btn-login {
    padding: 12px 20px;
    font-size: 0.95rem;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .login-loader {
    padding: 25px 15px;
    margin: 15px;
  }
}

@media (max-width: 576px) {
  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    padding: 20px 15px;
  }

  .login-header {
    margin-bottom: 18px;
  }

  .login-title {
    font-size: 1.4rem;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .save-login-container {
    margin: 10px 0 12px 0;
  }

  .btn-login {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}

/* Loading States */
.login-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Focus States for Accessibility */
.form-control:focus,
.btn-login:focus,
.form-check-input:focus {
  outline: 2px solid var(--theme-color-2);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .login-card {
    border: 2px solid #000;
  }

  .form-control {
    border-width: 2px;
  }

  .btn-login {
    border: 2px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 
Success Popup Styles */
.success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.success-popup-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.success-popup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4caf50, #45a049, #4caf50);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.success-popup-icon {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease-out 0.2s both;
}

.success-popup-icon i {
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.success-popup-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  animation: slideInUp 0.5s ease-out 0.3s both;
}

.success-popup-message {
  color: #666;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
  animation: slideInUp 0.5s ease-out 0.4s both;
}

.success-popup-progress {
  margin-bottom: 20px;
  animation: slideInUp 0.5s ease-out 0.5s both;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #45a049);
  border-radius: 3px;
  transition: width 3s linear;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.redirect-text {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.redirect-text span {
  color: #4caf50;
  font-weight: 600;
}

.success-popup-user-info {
  animation: slideInUp 0.5s ease-out 0.6s both;
}

.success-popup-user-info small {
  color: #888;
  font-size: 0.85rem;
}

/* Success Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Login card success animation */
.login-card.animate-success {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive design for success popup */
@media (max-width: 480px) {
  .success-popup-card {
    padding: 30px 20px;
    margin: 20px;
  }

  .success-popup-icon {
    font-size: 3rem;
  }

  .success-popup-title {
    font-size: 1.5rem;
  }
}

/* Pa
ge Loader Styles */
.page-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.page-loader-container {
  text-align: center;
  color: white;
}

.page-loader-content {
  animation: fadeInUp 0.8s ease-out;
}

.page-loader-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.page-loader-icon i {
  color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.page-loader-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-loader-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.page-loader-spinner {
  margin-bottom: 30px;
}

.spinner-ring {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 48px;
  height: 48px;
  margin: 6px;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.spinner-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.spinner-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.progress-dots .dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  opacity: 0.6;
}

.progress-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.progress-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.progress-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Page Loader Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinner-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Update success popup progress bar timing */
.success-popup-card .progress-bar-fill {
  transition: width 2s linear;
  /* Match the 2-second redirect */
}

/* Remove countdown text styles since we removed the countdown */
.redirect-text span {
  display: none;
}

/* Saved Login Interface Styles */
.saved-login-container {
  text-align: center;
  padding: 15px;
  animation: fadeInUp 0.6s ease-out;
}

.saved-user-info {
  margin-bottom: 20px;
}

.user-avatar {
  font-size: 3rem;
  color: var(--theme-color-1);
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.user-details h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.user-name {
  color: var(--theme-color-1);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 3px;
}

.user-email {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.saved-login-actions {
  margin-bottom: 20px;
}

.saved-login-actions .btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 20px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-continue-login {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-continue-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-different-user {
  border: 2px solid #e0e0e0;
  color: #666;
  background: white;
}

.btn-different-user:hover {
  border-color: var(--theme-color-1);
  color: var(--theme-color-1);
  background: #f8f9ff;
  transform: translateY(-1px);
}

.saved-login-footer {
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.saved-login-footer small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Login form container (for showing/hiding) */
.login-form-container {
  animation: fadeInUp 0.5s ease-out;
}

/* Update remember me label styling */
label[for="rememberMe"] {
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

label[for="rememberMe"] i {
  color: var(--theme-color-1);
}

/* Smooth transitions for form switching */
.login-card-body > * {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive design for saved login */
@media (max-width: 480px) {
  .saved-login-container {
    padding: 12px;
  }

  .saved-user-info {
    margin-bottom: 15px;
  }

  .user-avatar {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .user-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .user-name {
    font-size: 0.95rem;
  }

  .user-email {
    font-size: 0.8rem;
  }

  .saved-login-actions .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Loading state for continue button */
.btn-continue-login:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-continue-login .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/*
 Premium Checkbox Styles */
.premium-checkbox-container {
  margin: 20px 0;
  padding: 0;
}

.premium-checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.premium-checkbox-wrapper:hover {
  transform: translateY(-1px);
}

.premium-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.premium-checkbox-custom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-right: 15px;
  margin-top: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.premium-checkbox-icon {
  font-size: 12px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-checkbox-input:checked
  + .premium-checkbox-label
  .premium-checkbox-custom {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  border-color: var(--theme-color-1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.premium-checkbox-input:checked
  + .premium-checkbox-label
  .premium-checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

.premium-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
  margin: 0;
  font-weight: 500;
}

.premium-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.premium-text-icon {
  color: var(--theme-color-1);
  font-size: 14px;
  margin-right: 8px;
  margin-top: 1px;
}

.premium-text-main {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.premium-text-sub {
  color: #6c757d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

/* Hover effects */
.premium-checkbox-wrapper:hover .premium-checkbox-custom {
  border-color: var(--theme-color-1);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.premium-checkbox-wrapper:hover .premium-text-main {
  color: var(--theme-color-1);
}

/* Focus effects */
.premium-checkbox-input:focus
  + .premium-checkbox-label
  .premium-checkbox-custom {
  outline: none;
  border-color: var(--theme-color-1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Active state */
.premium-checkbox-wrapper:active .premium-checkbox-custom {
  transform: scale(0.95);
}

/* Checked state animations */
.premium-checkbox-input:checked
  + .premium-checkbox-label
  .premium-checkbox-custom {
  animation: checkboxPulse 0.3s ease-out;
}

@keyframes checkboxPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .premium-checkbox-custom {
    width: 22px;
    height: 22px;
    margin-right: 12px;
  }

  .premium-checkbox-icon {
    font-size: 11px;
  }

  .premium-text-main {
    font-size: 14px;
  }

  .premium-text-sub {
    font-size: 11px;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .premium-checkbox-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #4a5568;
  }

  .premium-text-main {
    color: #e2e8f0;
  }

  .premium-text-sub {
    color: #a0aec0;
  }
}

/* Enh
anced Saved Login Actions */
.saved-login-secondary-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.saved-login-secondary-actions .btn {
  flex: 1;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.btn-clear-saved {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: white;
}

.btn-clear-saved:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-1px);
}

/* Responsive layout for secondary actions */
@media (max-width: 480px) {
  .saved-login-secondary-actions {
    flex-direction: column;
    gap: 8px;
  }

  .saved-login-secondary-actions .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Fix for premium checkbox visibility */
.premium-checkbox-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.premium-checkbox-wrapper {
  display: flex !important;
}

.premium-checkbox-custom {
  display: flex !important;
}

.premium-checkbox-text {
  display: flex !important;
}

/* Ensure saved login interface is properly visible */
.saved-login-container {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

.saved-login-actions {
  display: block !important;
}

.saved-login-actions .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Modern Save Login Checkbox - Clean Design */
.save-login-container {
  margin: 15px 0 20px 0;
}

/* Form Actions Row - Better Spacing */
.form-actions-row {
  margin: 18px 0;
}

.save-login-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border: 2px solid #e1e5f2;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.save-login-checkbox:hover {
  border-color: var(--theme-color-1);
  background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.save-login-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  margin-right: 12px;
  margin-top: 1px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.save-login-checkbox input:checked ~ .checkmark {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  border-color: var(--theme-color-1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.save-login-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-title {
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-title i {
  color: var(--theme-color-1);
  font-size: 14px;
}

.checkbox-subtitle {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 1px;
}

/* Checked state styling */
.save-login-checkbox input:checked ~ .checkbox-content .checkbox-title {
  color: var(--theme-color-1);
}

.save-login-checkbox input:checked ~ .checkbox-content .checkbox-subtitle {
  color: #5a67d8;
}

/* Focus state */
.save-login-checkbox input:focus ~ .checkmark {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Active state */
.save-login-checkbox:active {
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 480px) {
  .save-login-checkbox {
    padding: 12px;
  }

  .checkmark {
    height: 20px;
    width: 20px;
    margin-right: 12px;
  }

  .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
  }

  .checkbox-title {
    font-size: 15px;
  }

  .checkbox-subtitle {
    font-size: 12px;
  }
}

.forgot-modal .modal-header {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  color: white;
  border-bottom: none;
}

.forgot-modal .modal-title {
  color: white;
  font-weight: 600;
}

.forgot-modal .btn-close {
  filter: brightness(0) invert(1);
}

.forgot-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.forgot-icon i {
  font-size: 1.5rem;
  color: white;
}

.forgot-modal .btn-primary {
  background: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
  border: none;
}

.forgot-modal .btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
}
