/* assets/css/style.css */
/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
}

.dark body {
  background-color: #181818;
  color: #f8f9fa;
}

/* Container e layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* Grades */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:space-y-0 > * + * {
    margin-top: 0;
  }
  
  .md\:space-x-4 > * + * {
    margin-left: 1rem;
  }
  
  .md\:text-base {
    font-size: 1rem;
  }
  
  .md\:text-2xl {
    font-size: 1.5rem;
  }
  
  .md\:w-auto {
    width: auto;
  }
  
  .md\:mb-0 {
    margin-bottom: 0;
  }
  
  .md\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Margens e Padding */
.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Tamanhos */
.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-16 {
  height: 4rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.min-h-screen {
  min-height: 100vh;
}

/* Texto */
.text-center {
  text-align: center;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Cores */
.text-white {
  color: #fff;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-red-700 {
  color: #b91c1c;
}

.text-blue-200 {
  color: #bfdbfe;
}

.text-blue-800 {
  color: #1e40af;
}

.text-green-700 {
  color: #047857;
}

.text-primary {
  color: #5D5CDE;
}

/* Fundos */
.bg-white {
  background-color: #fff;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-blue-900 {
  background-color: #1e3a8a;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-700 {
  background-color: #374151;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-primary {
  background-color: #5D5CDE;
}

/* Modo escuro */
.dark .bg-gray-700 {
  background-color: #374151;
}

.dark .bg-gray-800 {
  background-color: #1f2937;
}

.dark .border-gray-600 {
  border-color: #4b5563;
}

.dark .text-white {
  color: #fff;
}

.dark .text-gray-200 {
  color: #e5e7eb;
}

.dark .text-gray-300 {
  color: #d1d5db;
}

.dark .text-gray-400 {
  color: #9ca3af;
}

/* Bordas */
.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

/* Efeitos */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 300ms;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:bg-red-600:hover {
  background-color: #dc2626;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.dark .hover\:bg-gray-600:hover {
  background-color: #4b5563;
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(93, 92, 222, 0.9);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:scale-\[1\.01\]:hover {
  transform: scale(1.01);
}

/* Utilidades de exibição */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.hidden {
  display: none;
}

/* Formulários */
.form-input, input[type="text"], input[type="password"], input[type="email"], select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out;
}

.form-input:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus {
  outline: none;
  border-color: #5D5CDE;
  box-shadow: 0 0 0 3px rgba(93, 92, 222, 0.1);
}

button, [type="submit"] {
  cursor: pointer;
  display: inline-block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

button:active, [type="submit"]:active {
  transform: scale(0.98);
}

/* Status de HTTPS */
.https-badge {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #d1fae5;
  color: #047857;
  font-size: 0.875rem;
  animation: pulse 2s infinite;
}

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

.dark .https-badge {
  background-color: #2D323B;
  color: #A3E635;
}

.dark .https-icon {
  color: #A3E635;
}

.dark input, .dark select {
  background-color: #374151;
  color: #fff;
  border-color: #4b5563;
}

/* Elementos específicos */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

a {
  color: #5D5CDE;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-placeholder {
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsividade */
@media (max-width: 640px) {
  .p-8 {
    padding: 1rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
  }
  
  .max-w-md {
    max-width: 100%;
  }
  
  .logo-placeholder {
    padding: 0.5rem;
  }
  
  .h-16 {
    height: 3rem;
  }
  
  .https-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Criar diretório para imagem */
.img-dir-notice {
  background-color: #fffbea;
  border: 1px dashed #d97706;
  padding: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  color: #92400e;
}