/* Pages d'authentification — Lundi V2 SaaS */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  color: #1f2937;
}
.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,166,93,0.04);
  width: 100%; max-width: 460px;
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, #00A65D 0%, #008f4e 100%);
  color: white;
  padding: 28px 32px 24px;
  text-align: center;
}
.auth-header h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.auth-header p  { margin: 0; opacity: 0.9; font-size: 13px; }
.auth-body { padding: 28px 32px; }
.auth-body h2 { margin: 0 0 4px; font-size: 18px; }
.auth-body .lead { margin: 0 0 20px; color: #6b7280; font-size: 13px; }
label {
  display: block; margin: 14px 0 4px; font-size: 12px; color: #6b7280;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
}
input[type="email"], input[type="text"], input[type="password"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; font-family: inherit;
  transition: border-color 0.15s;
}
input:focus {
  outline: none; border-color: #00A65D;
  box-shadow: 0 0 0 3px rgba(0,166,93,0.12);
}
button[type="submit"], .btn-primary {
  width: 100%;
  margin-top: 20px;
  background: #00A65D; color: white;
  border: none; padding: 12px 20px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
button[type="submit"]:hover, .btn-primary:hover { background: #008f4e; }
button[type="submit"]:disabled { background: #9ca3af; cursor: not-allowed; }
.auth-footer {
  padding: 16px 32px; text-align: center;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
}
.auth-footer a { color: #00A65D; text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.error-box {
  background: #fee2e2; color: #991b1b;
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-top: 14px;
  display: none;
}
.error-box.show { display: block; }
.success-box {
  background: #dcfce7; color: #166534;
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-top: 14px;
  display: none;
}
.success-box.show { display: block; }

/* Password strength meter */
.pw-rules { margin-top: 8px; }
.pw-rule {
  font-size: 12px; color: #9ca3af;
  display: flex; align-items: center; gap: 6px;
  padding: 2px 0;
}
.pw-rule.ok    { color: #16a34a; }
.pw-rule.fail  { color: #6b7280; }
.pw-rule::before {
  content: "○"; font-weight: 700; width: 14px;
}
.pw-rule.ok::before { content: "✓"; }
.pw-strength {
  height: 4px; background: #e5e7eb; border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.pw-strength-bar {
  height: 100%; width: 0%; transition: width 0.3s, background 0.3s;
  background: #ef4444;
}
.pw-strength-bar.medium { background: #f59e0b; }
.pw-strength-bar.strong { background: #00A65D; }

/* Loader */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
