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

/* Outer wrapper: grid background to match rest of app (body / .page-container) */
.auth-page-wrapper {
  background-color: var(--bg-secondary);
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: var(--grid-size-x) var(--grid-size-y);
}

/* 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 1px 3px rgba(0, 0, 0, 0.04) !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: var(--card-hover-shadow) !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-tertiary);
  color: var(--text-primary);
  border-color: var(--border-ui);
}

.auth-input::placeholder {
  color: var(--gray-500) !important;
}

.auth-input:focus {
  border-color: var(--brand-purple) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !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(124, 58, 237, 0.2);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(124, 58, 237, 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); }
} 