/* auth.css */

/* Main Login Container */
.login-container {
  display: flex;
  min-height: 100vh;
  background: #F8ECEC;
  animation: fadeIn 0.6s ease-in-out;
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page Transition Effects */
.page-transition {
  animation: fadeIn 0.6s ease-in-out;
}

.page-transition-enter {
  opacity: 0;
  transform: translateX(100px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-transition-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Left Side - Login Form */
.login-form-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F8ECEC;
  padding: 40px 20px;
  animation: slideInRight 0.8s ease-out;
}

.login-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo-container {
  margin-bottom: 30px;
  animation: bounceIn 1s ease-out 0.2s both;
}

.logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* Welcome Text */
.welcome-text {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 40px;
  text-align: center;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* Form */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleIn 0.8s ease-out 0.6s both;
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: -10px;
}

.forgot-link {
  color: #e74c3c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Error Message */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 15px;
  background: #C1272D;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  animation: scaleIn 0.8s ease-out 0.8s both;
}

.login-button:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

/* Sign Up Link */
.signup-link-container {
  text-align: center;
  margin-top: 20px;
}

.signup-text {
  color: #7f8c8d;
  font-size: 14px;
  margin-right: 5px;
}

.signup-link {
  background: none;
  border: none;
  color: #e67e22;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: #d35400;
  text-decoration: underline;
}

/* Right Side - Image */
.login-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #F8ECEC;
  padding: 40px 20px;
  animation: slideInLeft 0.8s ease-out;
}

.login-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  transform: rotate(331deg);
  transition: transform 0.3s ease;
}

.login-image:hover {
  transform: rotate(331deg) scale(1.05);
}

/* Special animation for register image */
.register-image {
  animation: bounceIn 1.2s ease-out 0.3s both;
}

.register-image:hover {
  transform: rotate(331deg) scale(1.1);
  transition: transform 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-form-container,
  .login-image-container {
    flex: none;
    min-height: 50vh;
  }
  
  .welcome-text {
    font-size: 28px;
  }
  
  .logo {
    width: 120px;
    height: 120px;
  }
}

/* Legacy styles for backward compatibility */
.auth-container-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #F8ECEC;
}

.auth-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: center;
}

.auth-box h3 {
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

.auth-box .form-control {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease;
}

.auth-box .form-control:focus {
  border-color: #c1272d;
}

.auth-btn {
  width: 100%;
  background: #4a90e2;
  border: none;
  padding: 10px 0;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-btn:hover {
  background: #357ab7;
}

.toggle-text {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.toggle-btn {
  background: none;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* --- Signup toggle buttons --- */
.signup-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.signup-toggle .toggle-option {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: #F8ECEC;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-toggle .toggle-option:hover {
  background: #e9ecef;
}

.signup-toggle .toggle-option.active {
  background: #4a90e2;
  color: #fff;
  font-weight: 600;
}

.register-image{
  transform: none !important;
}