/* ===== LOGIN PAGE ===== */
.login-body {
  background: var(--black);
  display: flex;
  min-height: 100vh;
}

.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ---- LEFT PANEL ---- */
.login-panel-left {
  flex: 1;
  background: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.login-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(229,57,53,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.login-panel-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(229,57,53,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.lp-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.logo-icon-lg {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-red);
}

.lp-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.lp-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.lp-headline h1 .accent {
  color: var(--red);
  position: relative;
}

.lp-headline h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 3px;
  background: var(--red);
  border-radius: 2px;
  opacity: 0.4;
}

.lp-headline p {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 380px;
}

.lp-stats {
  display: flex;
  gap: 12px;
  margin: 36px 0;
}

.stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 10px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}

.stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 500;
}

.lp-decoration {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deco-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-400);
  backdrop-filter: blur(4px);
  animation: floatCard 4s ease-in-out infinite;
}

.deco-card:nth-child(2) { animation-delay: 0.8s; }
.deco-card:nth-child(3) { animation-delay: 1.6s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ---- RIGHT PANEL ---- */
.login-panel-right {
  width: 480px;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px;
}

.login-form-wrap { width: 100%; max-width: 360px; }

.lf-header {
  margin-bottom: 32px;
}

.lf-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.lf-header p {
  font-size: 14px;
  color: var(--gray-600);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-800);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--red);
  border-color: var(--red);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.forgot-link {
  font-size: 13px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

.login-btn {
  height: 52px;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.pwd-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  transition: var(--transition);
}

.pwd-toggle:hover { opacity: 1; }

.login-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--info-bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--info);
}

.login-roles {
  margin-top: 24px;
}

.roles-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-chips {
  display: flex;
  gap: 8px;
}

.role-chip {
  flex: 1;
  padding: 8px 4px;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-800);
}

.role-chip:hover {
  background: var(--red-glow);
  border-color: var(--red);
  color: var(--red);
}

/* ---- Messages d'erreur & changement de mot de passe ---- */
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.45;
}

.change-pwd-panel {
  margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .login-panel-left { display: none; }
  .login-panel-right { width: 100%; padding: 32px 24px; }
  .login-form-wrap { max-width: 400px; margin: 0 auto; }
}