/* project.css — referenced by views/login.ejs and project/views/layouts/main.ejs.
 *
 * The auth/login views define their component classes (.auth-card, …) via
 * Tailwind @apply inside a PLAIN <style> block. The Tailwind Play CDN
 * (cdn.tailwindcss.com) only compiles @apply inside <style type="text/tailwindcss">,
 * so those rules never apply → unstyled card. We provide the compiled-equivalent
 * here as normal CSS, using the HSL design tokens already defined inline
 * (:root / .dark) in the views. Do NOT @import /css/core.css here — it defines
 * the same token names as HEX, which breaks the hsl(var(--…)) Tailwind utilities.
 */

/* ---- Auth / login layout ---- */
.auth-container {
  min-height: 100vh;
  background: hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.auth-logo {
  margin: 0 auto 2rem;
  display: block;
  width: 160px;
  height: auto;
}

.auth-form-group { margin-bottom: 1.5rem; }

.auth-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.auth-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.95rem;
}
.auth-form-input::placeholder { color: hsl(var(--muted-foreground)); }
.auth-form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px hsl(var(--primary));
}

.auth-btn-primary {
  width: 100%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.auth-btn-primary:focus { outline: none; box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--primary)); }

.auth-link { color: hsl(var(--primary)); font-size: 0.875rem; text-decoration: none; }
.auth-link:hover { color: hsl(var(--primary) / 0.8); text-decoration: underline; }

.auth-message { padding: 1rem; border-radius: 0.375rem; margin-bottom: 1rem; }
.auth-message-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-message-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.dark .auth-message-error   { background: rgb(127 29 29 / 0.2); color: #fca5a5; border-color: rgb(153 27 27 / 0.4); }
.dark .auth-message-success { background: rgb(20 83 45 / 0.2); color: #86efac; border-color: rgb(22 101 52 / 0.4); }
