@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Only define auth-specific if needed, map to global */
  --radius-lg: 16px;
  --radius-md: 10px;
}

body.auth-page {
  background: var(--bg-gradient);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.auth-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 40px auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* Illustration */
.auth-illustration {
  flex: 1;
  text-align: center;
  padding: 1rem;
}

.auth-illustration img {
  max-width: 140px;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.auth-illustration h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.auth-illustration .brand {
  color: var(--brand);
}

.auth-illustration p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Form Card */
.auth-form-card {
  flex: 1;
  padding: 0;
  background: transparent;
}

/* Toggle */
.auth-toggle {
  display: flex;
  background: var(--bg-body);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.auth-toggle button {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-toggle button.active {
  background: var(--bg-card);
  color: var(--brand);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.auth-form input {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-body);
  color: var(--text-main);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

/* Validation Feedback */
.validation-feedback {
  font-size: 0.8rem;
  margin-bottom: 0px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.4;
}

/* Hide when empty to prevent layout gaps */
.validation-feedback:empty {
  display: none;
}

.validation-feedback.success {
  color: #4caf50;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.validation-feedback.error {
  color: #ff3d00;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-form input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

/* Action Button */
.auth-form button {
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-form button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 74, 25, 0.25);
}

.google-auth-btn {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-auth-btn:hover {
  background: var(--bg-body) !important;
  border-color: var(--brand) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

.google-auth-btn img {
  width: 20px;
  height: 20px;
}

.auth-links {
  text-align: center;
  margin-top: 5px;
}

.auth-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    margin: 20px 15px;
  }
}

/* Messages (Added for Forgot/Reset pages) */
.msg {
  display: none;
  text-align: center;
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}