/* Estilos temporários enquanto Tailwind não carrega */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
}

/* Utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-2 { margin-left: 0.5rem; }

/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1.2; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Colors */
.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-white { color: #ffffff; }
.text-blue-600 { color: #2563eb; }
.text-blue-100 { color: #dbeafe; }
.bg-white { background-color: #ffffff; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-600 { background-color: #2563eb; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, #eff6ff, #e0e7ff); }
.border-b { border-bottom-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }

/* Components */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.transition-shadow { transition-property: box-shadow; transition-duration: 200ms; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Button styles */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary button */
.btn-primary, button:not(.btn-outline):not(.btn-ghost) {
  background-color: #121f53;
  color: white;
}

.btn-primary:hover, button:not(.btn-outline):not(.btn-ghost):hover {
  background-color: #1a2b5c;
}

/* Outline button */
.btn-outline {
  background-color: transparent;
  border: 2px solid #121f53;
  color: #121f53;
}

.btn-outline:hover {
  background-color: #121f53;
  color: white;
}

/* Ghost button */
.btn-ghost {
  background-color: transparent;
  color: #4b5563;
}

.btn-ghost:hover {
  background-color: #f3f4f6;
}

/* Secondary button */
.btn-secondary {
  background-color: #005282;
  color: white;
}

.btn-secondary:hover {
  background-color: #0066cc;
}

/* Card */
.card {
  background-color: white;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(18, 31, 83, 0.15), 0 10px 10px -5px rgba(18, 31, 83, 0.08);
  border-color: #121f53;
}

.card:active {
  transform: translateY(-4px) scale(1.01);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* Icon containers */
.icon-container {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

.icon-container.blue { 
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.icon-container.green { 
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.icon-container.purple { 
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}
.icon-container.yellow { 
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.icon-container.red { 
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}
.icon-container.indigo { 
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-right { text-align: right; }
  .md\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Loading spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
}

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.btn-primary:hover,
.btn-secondary:hover {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient animation for auth headers */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Auth page enhancements */
.auth-header-gradient {
  background: linear-gradient(135deg, #121f53 0%, #005282 50%, #0066cc 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Input focus effects */
input:focus {
  outline: none;
  border-color: #121f53 !important;
  box-shadow: 0 0 0 3px rgba(18, 31, 83, 0.1);
  transition: all 0.2s ease;
}

/* Card shadow on hover */
.card:hover {
  box-shadow: 0 20px 40px rgba(18, 31, 83, 0.15);
  transform: translateY(-4px);
  border-color: rgba(18, 31, 83, 0.2);
}

/* Button hover effects */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(18, 31, 83, 0.4) !important;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
  background-color: #f9fafb !important;
}

.btn-outline:hover {
  background: linear-gradient(135deg, #121f53 0%, #005282 100%) !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Header specific button styles */
header .btn-primary:hover {
  background: white !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
}

/* Shine effect on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

/* Focus states for accessibility */
button:focus-visible,
.card:focus-visible {
  outline: 3px solid #121f53;
  outline-offset: 2px;
}
