/* Auth pages — login / unauthorized
   Uses the same CSS custom properties as the main stylesheet.
   The main styles.css is not loaded here, so we redeclare the minimal
   set of variables and classes needed. */

:root {
  --color-bg:      #f1f5f9;
  --color-surface: #ffffff;
  --color-border:  #e2e8f0;
  --color-text:    #1e293b;
  --color-muted:   #64748b;
  --color-brand:   #1e293b;
  --color-accent:  #2563eb;
  --color-danger:  #dc2626;
  --radius: 6px;
  --font: system-ui,-apple-system,"Segoe UI",sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0; padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── Flash messages ── */
.flashed-messages { width: 100%; max-width: 400px; margin-bottom: 12px; }
.flashed-messages ul { list-style: none; margin: 0; padding: 0; }
.alert {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 8px;
  font-size: 0.875em;
}
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert-error, .alert-danger { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.close-btn { background: none; border: none; cursor: pointer; font-size: 1.1em; padding: 0 4px; }

/* ── Login card ── */
.auth-container {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 36px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.auth-logo {
  display: block;
  font-size: 1.6em;
  font-weight: 800;
  color: var(--color-brand);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85em;
  margin-bottom: 28px;
}

.auth-container h1 {
  display: none; /* hidden — we use auth-logo instead */
}

.auth-container label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: left;
}

.auth-container input[type=text],
.auth-container input[type=password] {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95em;
  transition: border-color 120ms;
}
.auth-container input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}

.auth-container button[type=submit] {
  width: 100%;
  padding: 10px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms;
}
.auth-container button[type=submit]:hover { background: #1d4ed8; }
