/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com */
/* Custom CSS untuk menggantikan Tailwind CDN */

/* Reset dan Base Styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

/* CSS Variables */
:root {
  --primary: 59 130 246;
  --background: 255 255 255;
  --foreground: 15 23 42;
  --muted: 241 245 249;
  --muted-foreground: 100 116 139;
  --border: 226 232 240;
  --destructive: 239 68 68;
}

.dark {
  --primary: 59 130 246;
  --background: 2 6 23;
  --foreground: 248 250 252;
  --muted: 30 41 59;
  --muted-foreground: 148 163 184;
  --border: 51 65 85;
  --destructive: 239 68 68;
}

/* Utility Classes */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.h-full { height: 100%; }
.h-10 { height: 2.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-px { height: 1px; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Spacing */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }

.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pl-12 { padding-left: 3rem; }

.m-0 { margin: 0; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-2 { margin-left: 0.5rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.left-0 { left: 0; }

/* Z-index */
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }

/* Display */
.block { display: block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }

/* Colors */
.bg-background { background-color: rgb(var(--background)); }
.bg-white { background-color: rgb(255 255 255); }
.bg-muted { background-color: rgb(var(--muted)); }
.text-foreground { color: rgb(var(--foreground)); }
.text-muted-foreground { color: rgb(var(--muted-foreground)); }
.text-primary { color: rgb(var(--primary)); }
.text-destructive { color: rgb(var(--destructive)); }
.text-white { color: rgb(255 255 255); }

/* Borders */
.border { border-width: 1px; }
.border-border { border-color: rgb(var(--border)); }
.border-destructive { border-color: rgb(var(--destructive)); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-r-2xl { border-top-right-radius: 1rem; border-bottom-right-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Typography */
.font-body { font-family: 'Work Sans', sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Focus */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgb(var(--primary) / 0.5); }
.focus\:ring-primary:focus { box-shadow: 0 0 0 2px rgb(var(--primary) / 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Hover */
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }
.underline-offset-4 { text-underline-offset: 4px; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgb(var(--primary) / 0.5);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background-color: rgb(var(--primary));
  color: rgb(255 255 255);
}

.btn-primary:hover {
  background-color: rgb(var(--primary) / 0.9);
}

.btn-outline {
  border: 1px solid rgb(var(--border));
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
}

.btn-outline:hover {
  background-color: rgb(var(--muted));
}

/* Auth specific styles */
.auth-bg {
  background: linear-gradient(135deg, rgb(var(--primary)) 0%, transparent 100%);
}

.auth-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(var(--primary), 0.4);
}

.dark .auth-card {
  background: rgba(var(--primary), 0.25);
  backdrop-filter: blur(2px);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-alert {
  animation: slideDown 0.3s ease;
}

/* Dark mode support */
.dark {
  color-scheme: dark;
}

.dark .hidden {
  display: none;
}

.dark .block {
  display: block;
}

.dark .dark\:hidden {
  display: none;
}

.dark .dark\:block {
  display: block;
}

/* Media queries untuk responsive */
@media (min-width: 768px) {
  .md\:max-w-4xl {
    max-width: 56rem;
  }
  
  .md\:max-w-\[862px\] {
    max-width: 862px;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:p-10 {
    padding: 2.5rem;
  }
  
  .md\:pl-12 {
    padding-left: 3rem;
  }
  
  .md\:top-14 {
    top: 3.5rem;
  }
}