
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #4fd1c5;
  --primary-dark: #38b2ac;
  --background: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --card-bg: #f9fafb;
  --card-border: #e5e7eb;
}

.dark {
  --primary: #4fd1c5;
  --primary-dark: #38b2ac;
  --background: #111827;
  --text: #f3f4f6;
  --text-secondary: #9ca3af;
  --card-bg: #1f2937;
  --card-border: #374151;
}

/* Smooth theme transition */
body {
  @apply transition-colors duration-300;
  background-color: var(--background);
  color: var(--text);
}

/* Custom animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Custom components */
.btn-primary {
  @apply font-medium py-3 px-6 rounded-lg transition-all duration-300;
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  @apply font-medium py-3 px-6 rounded-lg transition-all duration-300;
  border: 2px solid var(--card-border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.feature-card {
  @apply p-6 rounded-xl transition-all duration-300;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-image {
  animation: float 6s ease-in-out infinite;
}

.theme-switcher {
  @apply w-12 h-6 rounded-full p-1 transition-colors duration-300;
  background-color: var(--card-bg);
}

.theme-toggle {
  @apply w-4 h-4 rounded-full transition-transform duration-300;
  background-color: var(--primary);
}

.dark .theme-toggle {
  transform: translateX(24px);
}
/* Login form styles */
#error-message {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}
#error-message:not(.hidden) {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 1rem;
}
/* Animated gradient background */
.gradient-bg {
  background: linear-gradient(-45deg, #4fd1c5, #4299e1, #667eea, #9f7aea);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}
/* Responsive tweaks */
@media (max-width: 640px) {
    .hero-text {
        @apply text-4xl;
    }
}