/*
 * Static, pre-built subset of Tailwind utilities used by the Auth pages
 * (login.html, register.html, logged_in.html).
 *
 * Replaces the dev-only cdn.tailwindcss.com <script>, which prints a
 * "should not be used in production" console warning. Only the classes
 * actually used by those pages are implemented — if you add new Tailwind
 * classes to an Auth page, add the rule here too.
 */

/* --- minimal reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { margin: 0; line-height: 1.5; }
h1, p { margin: 0; }
svg { display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* --- layout -------------------------------------------------------------- */
.flex { display: flex; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.block { display: block; }
.min-h-screen { min-height: 100vh; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.max-w-md { max-width: 28rem; }

/* --- spacing ------------------------------------------------------------- */
.p-2 { padding: 0.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-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --- typography ---------------------------------------------------------- */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.hover\:underline:hover { text-decoration: underline; }

/* --- colors: text -------------------------------------------------------- */
.text-white { color: #fff; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }

/* --- colors: background -------------------------------------------------- */
.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }

/* --- borders / radius / shadow ------------------------------------------- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-600 { border-color: #dc2626; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.transition-colors { transition: color, background-color, border-color 0.15s ease; }

/* --- focus / ring -------------------------------------------------------- */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:ring-1:focus { --tw-ring-width: 1px; }
.focus\:ring-2:focus { --tw-ring-width: 2px; }
.focus\:ring-offset-2:focus { --tw-ring-offset: 2px; --tw-ring-offset-color: #fff; }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\:ring-green-500:focus { --tw-ring-color: #22c55e; }
.focus\:ring-red-500:focus { --tw-ring-color: #ef4444; }
[class*="focus:ring-"]:focus {
  box-shadow:
    0 0 0 var(--tw-ring-offset, 0px) var(--tw-ring-offset-color, transparent),
    0 0 0 calc(var(--tw-ring-width, 0px) + var(--tw-ring-offset, 0px)) var(--tw-ring-color, transparent);
}

/* --- injected server error message -------------------------------------- */
.error {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background-color: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  text-align: center;
}
.error + form { text-align: center; }
.error + form button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: #2563eb;
  color: #fff;
  font-weight: 500;
}
