/* Pages Connexion / Inscription / 2FA - BURINFORT */
:root {
  --auth-primary: #dc3545;
  --auth-primary-hover: #c82333;
  --auth-bg: #f0f2f5;
  --auth-card-bg: #ffffff;
  --auth-text: #1c1e21;
  --auth-text-muted: #65676b;
  --auth-border: #dddfe2;
  --auth-radius: 16px;
  --auth-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --auth-shadow-hover: 0 4px 24px rgba(0,0,0,0.12);
}

.auth-wrapper { background: var(--auth-bg); min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.auth-page { width: 100%; max-width: 420px; margin: 0 auto; }

.auth-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  border: 1px solid var(--auth-border);
}

.auth-card-inner { padding: 32px; }

.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 48px; width: auto; }

.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--auth-text); text-align: center; margin-bottom: 8px; }
.auth-subtitle { font-size: 0.9375rem; color: var(--auth-text-muted); text-align: center; margin-bottom: 24px; line-height: 1.4; }

.auth-form .form-label { font-weight: 600; color: var(--auth-text); font-size: 0.875rem; }
.auth-form .form-control {
  border-radius: 8px;
  border: 1px solid var(--auth-border);
  padding: 12px 16px;
  padding-left: 44px;
  font-size: 1rem;
}
.auth-form .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.auth-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--auth-text); }
.auth-remember input { width: auto; }
.auth-forgot { font-size: 0.875rem; }
.auth-forgot a { color: var(--auth-primary); text-decoration: none; font-weight: 500; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-footer-signup { text-align: center; margin-top: 24px; font-size: 0.9375rem; color: var(--auth-text-muted); }
.auth-footer-signup a { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.auth-footer-signup a:hover { text-decoration: underline; }

.auth-form .btn-primary {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
}
.auth-form .btn-primary:hover { background: var(--auth-primary-hover); border-color: var(--auth-primary-hover); }

.auth-divider { display: flex; align-items: center; margin: 20px 0; color: var(--auth-text-muted); font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.auth-divider span { padding: 0 12px; }

.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--auth-border); background: #fff; color: var(--auth-text); font-weight: 500; text-decoration: none; transition: background 0.2s; }
.auth-google:hover { background: #f7f8fa; color: var(--auth-text); }

.auth-footer-link { text-align: center; margin-top: 20px; font-size: 0.875rem; }
.auth-footer-link a { color: var(--auth-primary); font-weight: 500; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

.auth-alert { border-radius: 8px; font-size: 0.875rem; }

.auth-security-note { font-size: 0.75rem; color: var(--auth-text-muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--auth-border); }
.auth-security-note i { margin-right: 4px; }

.password-strength { height: 4px; border-radius: 2px; background: var(--auth-border); margin-top: 6px; overflow: hidden; }
.password-strength-bar { height: 100%; width: 0; transition: width 0.2s, background 0.2s; }
.password-strength-bar.weak { width: 33%; background: #dc3545; }
.password-strength-bar.medium { width: 66%; background: #fd7e14; }
.password-strength-bar.strong { width: 100%; background: #198754; }

#code { letter-spacing: 0.5em; font-variant-numeric: tabular-nums; }

.lock-message { background: #fff3cd; border: 1px solid #ffc107; color: #856404; padding: 14px; border-radius: 8px; margin-bottom: 20px; font-size: 0.875rem; }
