/* auth.css — login en auth-pagina's in UI-R3 stijl
   Gebouwd op CSS-variabelen uit style.css (altijd na style.css geladen) */

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ───────────────────────────────────────────── */

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
}

/* ── Branding ─────────────────────────────────────────── */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.auth-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.auth-card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0 1.5rem;
}

/* ── Info-tekst ───────────────────────────────────────── */

.auth-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.1rem;
}

.auth-info a {
  color: var(--accent);
  text-decoration: none;
}
.auth-info a:hover { text-decoration: underline; }

/* ── Foutmelding ──────────────────────────────────────── */

.auth-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.auth-error ul { padding-left: 1.25rem; margin: 0; }

/* ── Formulier ────────────────────────────────────────── */

.field-group { margin-bottom: 0.9rem; }

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-group .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.field-group input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--surface-2, var(--bg));
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field-group--inline {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* ── Knop ─────────────────────────────────────────────── */

.btn-auth {
  display: block;
  width: 100%;
  padding: 0.65rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-auth:hover { opacity: 0.88; }

/* ── Link onderaan ────────────────────────────────────── */

.auth-footer-link {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auth-footer-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer-link a:hover { text-decoration: underline; }

/* ── Flash berichten ──────────────────────────────────── */

.flash {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  text-align: center;
}
.flash-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.flash-error   { background: rgba(239, 68, 68, 0.08); color: #ef4444; }

/* ── Footer ───────────────────────────────────────────── */

footer a { color: var(--text-muted) !important; }
footer a:hover { color: var(--text-light) !important; }
