/*
 * auth-utils.css — Replaces cdn.tailwindcss.com on auth pages.
 * Contains only the utility classes actually used across login, signup,
 * email-verification, and forgot-password pages.
 */

/* Layout */
.absolute { position: absolute; }
.relative { position: relative; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sizing */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-20 { width: 5rem; }
.w-10 { width: 2.5rem; }
.w-5 { width: 1.25rem; }
.h-20 { height: 5rem; }
.h-10 { height: 2.5rem; }
.h-5 { height: 1.25rem; }

/* Spacing — padding */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-20 { padding-top: 5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.p-4 { padding: 1rem; }

/* Spacing — margin */
.\-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-snug { line-height: 1.375; }
.text-center { text-align: center; }
.no-underline { text-decoration: none; }
.uppercase { text-transform: uppercase; }

/* Colors — text */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-800 { color: #1f2937; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-purple-500 { color: #a855f7; }
.text-purple-600 { color: #9333ea; }
.text-yellow-200 { color: #fef08a; }
.text-yellow-300 { color: #fde047; }
.text-yellow-400 { color: #facc15; }

/* Colors — background */
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-purple-600 { background-color: #9333ea; }
.bg-yellow-900\/30 { background-color: rgba(113, 63, 18, 0.3); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white { border-color: #fff; }
.border-gray-500 { border-color: #6b7280; }
.border-purple-600 { border-color: #9333ea; }
.border-yellow-600\/50 { border-color: rgba(202, 138, 4, 0.5); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
.duration-300 { transition-duration: 300ms; }

/* Hover states */
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-purple-600:hover { background-color: #9333ea; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-purple-600:hover { color: #9333ea; }
.hover\:text-purple-300:hover { color: #d8b4fe; }
.hover\:border-purple-400:hover { border-color: #c084fc; }
.hover\:shadow-\[0_0_15px_rgba\(128\,0\,255\,0\.7\)\]:hover {
  box-shadow: 0 0 15px rgba(128, 0, 255, 0.7);
}
.hover\:shadow-\[0_0_15px_rgba\(255\,255\,255\,0\.3\)\]:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.hover\:brightness-110:hover { filter: brightness(1.1); }

/* Responsive: sm (640px+) */
@media (min-width: 640px) {
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Responsive: md (768px+) */
@media (min-width: 768px) {
  .md\:w-1\/2 { width: 50%; }
  .md\:mb-0 { margin-bottom: 0; }
}

/* Responsive: lg (1024px+) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* Responsive: xl (1280px+) */
@media (min-width: 1280px) {
  .xl\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Submit button spinner */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}
