/* auth.css — styles for the login / register pages.
 *
 * Served as a hashed static asset via the build manifest so it loads under the
 * strict Content-Security-Policy (style-src 'self'; no unsafe-inline). The auth
 * pages must not use inline <style> — that would be blocked by CSP on the real
 * path and render the page unstyled.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ink: #111; --muted: #6b7280; --surface: #fff; --subtle: #f5f5f4;
  --line: #e5e5e5; --blue: #2563eb; --red: #dc2626;
  --radius: 6px;
}

body {
  font-family: var(--font-sans); background: var(--subtle); color: var(--ink);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 40px 36px; width: 100%; max-width: 380px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.auth-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.auth-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; margin-top: 16px;
}
.auth-label:first-of-type { margin-top: 0; }

.auth-input {
  display: block; width: 100%; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-family: var(--font-sans);
}
.auth-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }

.auth-btn {
  display: block; width: 100%; padding: 10px; margin-top: 24px;
  font-size: 13px; font-weight: 600; color: var(--surface); background: var(--ink);
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-sans); letter-spacing: 0.01em;
}
.auth-btn:hover { background: #222; }

.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; color: var(--red);
  font-size: 13px; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 16px;
}

.auth-link { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-link a { color: var(--blue); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
