/* ═══════════════════════════════════════════════════
   BCET — login.css
   Page d'authentification — reprend le langage visuel
   du hero de l'accueil (navy + accent orange)
═══════════════════════════════════════════════════ */

.auth-page {
  min-height: calc(100vh - var(--page-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--gray-50);
}

.auth-shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

/* ── Panneau visuel (hero) ── */
.auth-hero {
  position: relative;
  min-height: 560px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
}
.auth-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: authZoom 12s ease forwards;
}
@keyframes authZoom { to { transform: scale(1); } }
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,25,60,.92) 0%, rgba(10,25,60,.72) 55%, rgba(10,25,60,.5) 100%);
}
.auth-hero > *:not(.auth-hero-img):not(.auth-hero-overlay) { position: relative; z-index: 2; }

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-brand-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.auth-brand .name { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.auth-brand .sub  { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.3; }

.auth-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.auth-titre {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 420px;
}
.auth-titre span { color: var(--orange); }
.auth-extrait {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 400px;
}

.auth-features { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.85); }
.auth-feature-icon {
  width: 34px; height: 34px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--orange);
  flex-shrink: 0;
}
.auth-feature-icon svg { width: 16px; height: 16px; }

.auth-hero-foot { font-size: 11.5px; color: rgba(255,255,255,.5); }

/* ── Panneau formulaire ── */
.auth-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel-head { margin-bottom: 28px; }
.auth-panel-head h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-panel-head h1::before {
  content: '';
  width: 4px; height: 22px;
  border-radius: 2px;
  background: var(--orange);
}
.auth-panel-head p { font-size: 13.5px; color: var(--gray-500); }

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--red-lt);
  border: 1px solid rgba(220,38,38,.25);
  color: var(--red);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}
.auth-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.auth-input { position: relative; }
.auth-input > svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-400);
  pointer-events: none;
  transition: color var(--tr-fast);
}
.auth-input input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-md);
  background: var(--gray-50);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}
.auth-input input:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.auth-input:focus-within > svg { color: var(--orange); }
.auth-input.has-error input { border-color: var(--red); }

.auth-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
}
.auth-toggle:hover { background: var(--gray-100); color: var(--navy); }
.auth-toggle:focus-visible,
.auth-submit:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.auth-toggle svg { width: 16px; height: 16px; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 13px;
}
.auth-remember { display: flex; align-items: center; gap: 8px; color: var(--gray-700); cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--orange); }

.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--tr-fast), transform var(--tr-fast);
}
.auth-submit:hover { background: var(--orange-dk); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit svg { width: 15px; height: 15px; }

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray-500);
}
.auth-secure svg { width: 13px; height: 13px; color: var(--green); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 480px; }
  .auth-hero { min-height: 0; padding: 28px; }
  .auth-features, .auth-hero-foot { display: none; }
  .auth-titre { font-size: 22px; margin-top: 24px; }
  .auth-panel { padding: 32px 28px; }
}
@media (max-width: 480px) {
  .auth-page { padding: 24px 16px; }
  .auth-panel { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-hero-img { animation: none; transform: none; }
}

/* ── Modalités d'accès ── */
.auth-modalites { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--gray-200); border-radius: var(--r-md); background: var(--gray-50); }
.auth-modalites h2 { font-size: 13px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.auth-modalites ul { display: flex; flex-direction: column; gap: 8px; }
.auth-modalites li { font-size: 12.5px; color: var(--gray-700); line-height: 1.55; padding-left: 14px; position: relative; }
.auth-modalites li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.auth-modalites a { color: var(--orange-dk); font-weight: 600; text-decoration: underline; }
