/* Login Page Specific Styles */

/* Form Animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Form Animation */
.bg-background.rounded-3xl {
  animation: slideInFromLeft 0.8s ease-out;
}

/* Right Side Animation */
.bg-primary {
  animation: slideInFromRight 0.8s ease-out;
}

/* Form Input Focus */
input:focus {
  box-shadow: 0 0 0 3px rgba(138, 0, 0, 0.1);
  border-color: var(--sqube-red);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Password Toggle Animation */
#toggle-password:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Button Animations */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 0, 0, 0.3);
}

/* Social Login Buttons */
.grid.grid-cols-2 button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Feature Cards Animation */
.space-y-8 > div {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.space-y-8 > div:nth-child(1) {
  animation-delay: 0.1s;
}
.space-y-8 > div:nth-child(2) {
  animation-delay: 0.2s;
}
.space-y-8 > div:nth-child(3) {
  animation-delay: 0.3s;
}
.space-y-8 > div:nth-child(4) {
  animation-delay: 0.4s;
}

/* Trust Indicators Animation */
.grid.grid-cols-3 > div {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.grid.grid-cols-3 > div:nth-child(1) {
  animation-delay: 0.5s;
}
.grid.grid-cols-3 > div:nth-child(2) {
  animation-delay: 0.6s;
}
.grid.grid-cols-3 > div:nth-child(3) {
  animation-delay: 0.7s;
}

/* Floating Elements Animation */
.fixed .animate-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.fixed .animate-bounce {
  animation: bounce 2s infinite;
}

.fixed .animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form Validation */
input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:valid {
  border-color: #22c55e;
}

/* Remember Me Checkbox */
input[type="checkbox"]:checked {
  background-color: var(--sqube-red);
  border-color: var(--sqube-red);
}

/* Link Hover Effects */
a:hover {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* Icon Animations */
.w-20.h-20 {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bg-background.rounded-3xl,
  .bg-primary {
    animation: none;
  }

  .space-y-8 > div,
  .grid.grid-cols-3 > div {
    animation: none;
  }

  .grid.grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-background {
    background-color: #1a1a1a;
  }

  .bg-background {
    background-color: #2d2d2d;
    color: #ffffff;
  }

  .text-text {
    color: #a0a0a0;
  }

  .border-gray-300 {
    border-color: #4a4a4a;
  }

  .bg-background {
    background-color: #3a3a3a;
  }
}
