/* Auth Pages (Login/Signup) Styles */

/* Animations for page elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slide animations for horizontal card sides */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Card animation */
.auth-card {
  animation: fadeIn 0.6s ease-out;
  box-shadow: 0 15px 35px rgba(180, 41, 255, 0.1) !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Animation classes for card sides */
.slide-from-left {
  animation: slideInFromLeft 0.4s ease-out;
}

.slide-from-right {
  animation: slideInFromRight 0.4s ease-out;
}

.auth-card:hover {
  box-shadow: 0 20px 40px rgba(180, 41, 255, 0.15) !important;
}

/* Form elements styling */
.auth-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.auth-input:focus {
  border-color: var(--brand-purple-active) !important;
  box-shadow: 0 0 0 2px rgba(180, 41, 255, 0.2) !important;
}

/* Button effects */
.auth-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(180, 41, 255, 0.2);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(180, 41, 255, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

/* Social login buttons */
.social-button {
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.social-button:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-1px);
}

/* Background curves animation */
.auth-bg-curves {
  animation: floatAnimation 20s ease-in-out infinite alternate;
}

@keyframes floatAnimation {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Right side image container */
.auth-image-container {
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .auth-card {
    flex-direction: column !important;
  }
  
  .auth-form {
    width: 100% !important;
    padding: 30px !important;
  }
  
  .auth-image-container {
    width: 100% !important;
    min-height: 200px;
  }
}

/* Link hover effects */
.auth-link {
  position: relative;
  transition: color 0.2s ease;
  color: var(--text-primary);
}

.auth-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--brand-purple-active);
  transition: width 0.3s ease;
}

.auth-link:hover:after {
  width: 100%;
}

/* Error message animation */
.auth-error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  color: var(--brand-red);
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-2px, 0, 0); }
  40%, 60% { transform: translate3d(2px, 0, 0); }
} 