/* ====================================================================
   PAGE DE CONNEXION - Campus Mali
   Complement de main.css, specifique a auth/login.php uniquement.
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.auth-shell {
  min-height: 100vh;
  display: flex;
}

/* --- Panneau gauche : identite + parcours de l'etudiant (signature) --- */
.auth-story {
  flex: 1 1 46%;
  background: radial-gradient(circle at 20% 20%, #142238 0%, var(--campus-dark) 55%, #090d16 100%);
  color: var(--campus-white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 138, 113, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.auth-brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.auth-brand .name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* Parcours academique : le "signature element" de la page, construit
   directement a partir de la chaine reelle du logiciel (Prospect -> ... -> Diplome) */
.auth-journey {
  position: relative;
  z-index: 1;
  margin: 40px 0;
}

.auth-journey h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.auth-journey p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 380px;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.journey-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -6px;
  width: 1px;
  background: rgba(148, 163, 184, 0.25);
}

.journey-step:last-child::before {
  display: none;
}

.journey-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--campus-primary);
  background: var(--campus-dark);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.journey-step.is-final .journey-dot {
  background: var(--campus-primary);
}

.journey-text .label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--campus-white);
}

.journey-text .desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 2px;
}

.auth-footnote {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: #64748b;
}

/* --- Panneau droit : formulaire --- */
.auth-form-panel {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--campus-light);
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-password-toggle {
  border-color: var(--campus-gray) !important;
}

@media (max-width: 991.98px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-story {
    flex: none;
    padding: 32px 28px;
  }

  .auth-journey {
    margin: 24px 0;
  }

  .journey-step {
    padding-bottom: 18px;
  }

  .auth-form-panel {
    padding: 32px 20px 48px;
  }
}
