/* Additional bakery-themed enhancements */

/* System Icons Background Pattern */
.bakery-pattern {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    );
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

/* Enhanced bakery features with better icons */
.bakery-features li:nth-child(1) i::before {
  content: "\f201";
} /* Chart Line */
.bakery-features li:nth-child(2) i::before {
  content: "\f07a";
} /* Shopping Cart */
.bakery-features li:nth-child(3) i::before {
  content: "\f0c0";
} /* Users */
.bakery-features li:nth-child(4) i::before {
  content: "\f0cb";
} /* List */

/* System product icons floating animation */
.floating-bread {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  animation: floatRotate 8s ease-in-out infinite;
}

@keyframes floatRotate {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(45deg, #2563eb, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced button with system theme */
.btn-login::after {
  content: "\f2f6"; /* Sign in alt icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-login:hover::after {
  opacity: 1;
}

/* Breadcrumb trail effect */
.breadcrumb-trail {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.breadcrumb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: breadcrumbPulse 2s ease-in-out infinite;
}

.breadcrumb-dot:nth-child(2) {
  animation-delay: 0.3s;
}
.breadcrumb-dot:nth-child(3) {
  animation-delay: 0.6s;
}
.breadcrumb-dot:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes breadcrumbPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Dark mode theme - system consistency */
@media (prefers-color-scheme: dark) {
  .login-left {
    background: linear-gradient(45deg, #1e40af 0%, #3730a3 50%, #581c87 100%);
  }

  .brand-title {
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .btn-login {
    background: linear-gradient(45deg, #1e40af, #3730a3);
  }
}

/* System color variations for different states */
.login-left.success-state {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.login-left.warning-state {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.login-left.error-state {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Loading animation for the entire page */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-bakery {
  text-align: center;
  color: white;
}

.loader-icon {
  font-size: 3rem;
  animation: bounce 1.5s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Enhanced form validation styles */
.form-floating.has-error > .form-control {
  border-color: #ef4444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 4.4 4.4M8.2 5.8 3.8 10.2'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-floating.has-success > .form-control {
  border-color: #10b981;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.5-.04L4.03 4.8l-.5.04L3.2 6.3 2.3 5.4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Tooltip styles for help text */
.tooltip-help {
  position: relative;
  cursor: help;
}

.tooltip-help::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip-help:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* System-consistent utility classes */
.text-primary-system {
  color: #2563eb !important;
}

.text-secondary-system {
  color: #6b7280 !important;
}

.text-success-system {
  color: #10b981 !important;
}

.text-warning-system {
  color: #f59e0b !important;
}

.text-danger-system {
  color: #ef4444 !important;
}

.bg-primary-system {
  background-color: #2563eb !important;
}

.bg-gradient-system {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.border-primary-system {
  border-color: #2563eb !important;
}

.border-gray-system {
  border-color: #d1d5db !important;
}

/* Enhanced focus states matching system */
.form-control:focus,
.btn:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* System-consistent shadows */
.shadow-sm-system {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.shadow-md-system {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg-system {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Animation timing matching system */
.transition-system {
  transition: all 0.2s ease !important;
}

.transition-colors-system {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out !important;
}
