/* =================================================================
   ACPM-MALI — PAGE DE CONNEXION ULTRA PREMIUM
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  overflow: hidden;
  background: #0a0e1a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ============== CARROUSEL DE FOND — 6 PAGES ACPM ============== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  perspective: 1500px;
}

.bg-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1), transform 8s ease-in-out;
  transform: scale(1.08);
  pointer-events: none;
}
.bg-page.active {
  opacity: 1;
  animation: kenburns 12s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}

.bg-page-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Conteneur des mockups (style "écran de site") */
.bg-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0a0e1a;
}

/* Mini barre de navigation ACPM (visible en haut des mockups) */
.mk-nav {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 191, 36, .2);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: #cbd5e1;
}
.mk-nav .mk-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: #fbbf24; font-size: 15px;
}
.mk-nav .mk-logo img {
  height: 32px; width: 32px; border-radius: 50%;
  border: 2px solid #fbbf24;
  background: #fff; object-fit: cover;
}
.mk-nav .mk-links { display: flex; gap: 18px; opacity: .85; }
.mk-nav .mk-links span { cursor: default; }
.mk-nav .mk-links span:hover { color: #fbbf24; }
.mk-nav .mk-cta {
  margin-left: auto;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a; padding: 7px 16px; border-radius: 50px;
  font-weight: 700; font-size: 12px;
}

/* Contenu de chaque page (différent par mockup) */
.mk-body { flex: 1; position: relative; overflow: hidden; }

/* HERO commun à plusieurs pages */
.mk-hero {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.mk-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .8) 0%, rgba(30, 27, 75, .7) 50%, rgba(15, 23, 42, .85) 100%);
}
.mk-hero-content {
  position: relative; z-index: 2;
  padding: 80px 60px; max-width: 70%;
}
.mk-tag {
  display: inline-block;
  background: rgba(251, 191, 36, .15);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, .4);
  margin-bottom: 24px;
}
.mk-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  letter-spacing: -1.5px;
}
.mk-title span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mk-subtitle {
  font-size: 20px;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* Stats grille */
.mk-stats {
  position: absolute;
  bottom: 60px; left: 60px; right: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  z-index: 3;
}
.mk-stat {
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 16px;
  padding: 22px 26px;
  text-align: left;
}
.mk-stat-val {
  font-size: 38px; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 6px;
}
.mk-stat-lbl {
  font-size: 12px; color: #cbd5e1;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* Grille de membres (page 2) */
.mk-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px;
}
.mk-member-card {
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, .15);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: .4s;
}
.mk-member-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(251, 191, 36, .08), rgba(255, 255, 255, .04));
  border-color: rgba(251, 191, 36, .3);
}
.mk-member-avatar {
  width: 70px; height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 18px rgba(251, 191, 36, .25);
}
.mk-member-name {
  color: #fff; font-weight: 700; font-size: 13.5px;
  margin-bottom: 4px;
}
.mk-member-meta {
  color: #94a3b8; font-size: 11px;
}

/* Page services / values */
.mk-services {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mk-service {
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 32px 26px;
  transition: .3s;
}
.mk-service .ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(251, 191, 36, .3);
}
.mk-service h4 {
  color: #fff; font-size: 18px; margin-bottom: 8px;
}
.mk-service p {
  color: #94a3b8; font-size: 13px; line-height: 1.6;
}

/* Projects grid */
.mk-projects {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mk-project {
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, .15);
}
.mk-project-img {
  height: 160px;
  background-size: cover; background-position: center;
  position: relative;
}
.mk-project-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .9) 100%);
}
.mk-project-img .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(251, 191, 36, .9);
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mk-project-body { padding: 20px; }
.mk-project-body h4 {
  color: #fff; font-size: 15px; margin-bottom: 6px;
}
.mk-project-body p {
  color: #94a3b8; font-size: 12px; line-height: 1.5;
}

/* Team (Le Bureau) */
.mk-team {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mk-team-member { text-align: center; }
.mk-team-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: 0 14px 30px rgba(251, 191, 36, .35);
  border: 4px solid rgba(251, 191, 36, .3);
}
.mk-team-member h4 {
  color: #fff; font-size: 16px; margin-bottom: 4px;
}
.mk-team-member .pos {
  color: #fbbf24; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* Contact page */
.mk-contact {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  height: 100%;
}
.mk-contact-info { color: #fff; }
.mk-contact-info h2 {
  font-size: 48px;
  background: linear-gradient(135deg, #fbbf24, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1.1;
}
.mk-contact-item {
  display: flex; gap: 18px; align-items: center;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.mk-contact-item .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mk-contact-item .lbl { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.mk-contact-item .val { color: #fff; font-size: 15px; font-weight: 600; }
.mk-contact-map {
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 20px;
  height: 80%;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mk-contact-map::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, .08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.mk-pin {
  width: 70px; height: 70px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: rotate(-45deg);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(251, 191, 36, .5);
  z-index: 2;
}
.mk-pin::before {
  content: ''; width: 24px; height: 24px;
  border-radius: 50%; background: #0f172a;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Devenir membre — CTA page */
.mk-cta-page {
  padding: 80px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
.mk-cta-tag {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.mk-cta-title {
  font-size: 76px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}
.mk-cta-title b {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mk-cta-subtitle {
  font-size: 22px;
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 50px;
  line-height: 1.5;
}
.mk-cta-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}
.mk-benefit {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 16px;
  padding: 26px 22px;
}
.mk-benefit .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(251, 191, 36, .3);
}
.mk-benefit h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.mk-benefit p { color: #94a3b8; font-size: 12px; line-height: 1.5; }

/* ============== OVERLAYS (gradient + grid + particles) ============== */
.bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, .12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, .12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10, 14, 26, .92) 0%, rgba(15, 23, 42, .82) 50%, rgba(10, 14, 26, .94) 100%);
  pointer-events: none;
}

.bg-grid {
  position: fixed; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(251, 191, 36, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Particules dorées flottantes */
.bg-particles {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  opacity: .5;
  box-shadow: 0 0 8px #fbbf24, 0 0 18px #f59e0b;
  animation: floatUp 14s linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* Orbe lumineux décoratif */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251, 191, 36, .4) 0%, transparent 70%);
  top: -10%; right: -10%;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, .35) 0%, transparent 70%);
  bottom: -20%; left: -10%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ============== INDICATEURS DE PAGE (dots avec preview) ============== */
.page-indicators {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 12px;
  background: rgba(15, 23, 42, .7);
  backdrop-filter: blur(20px);
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid rgba(251, 191, 36, .25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.pi-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  border: none;
}
.pi-dot:hover { background: rgba(251, 191, 36, .6); transform: scale(1.2); }
.pi-dot.active {
  width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, .6);
}
.pi-label {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  border: 1px solid rgba(251, 191, 36, .3);
  transition: .25s;
}
.pi-dot:hover .pi-label { opacity: 1; transform: translateX(-50%) translateY(-2px); }

/* Progress bar (auto-rotation) */
.bg-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  z-index: 35;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, .8);
  transition: width .15s linear;
}

/* ============== LAYOUT PRINCIPAL ============== */
.login-stage {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px;
  gap: 50px;
  align-items: center;
}
@media (max-width: 1100px) {
  .login-stage { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .brand-side { display: none; }
}

/* === CÔTÉ GAUCHE — Brand & dynamic content === */
.brand-side {
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px 0;
}
.brand-top {
  display: flex; align-items: center; gap: 18px;
  animation: fadeInDown .8s cubic-bezier(.2, .8, .2, 1);
}
.brand-logo {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  padding: 4px;
  box-shadow: 0 12px 32px rgba(251, 191, 36, .45), 0 0 0 4px rgba(251, 191, 36, .15);
  position: relative;
}
.brand-logo::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, .3);
  animation: pulse 3s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.brand-logo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.brand-text h1 {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.brand-text .brand-sub {
  font-size: 12px;
  color: #fbbf24;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.brand-hero { margin: 40px 0; }
.brand-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251, 191, 36, .12);
  color: #fbbf24;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, .35);
  margin-bottom: 24px;
  animation: fadeInLeft 1s cubic-bezier(.2, .8, .2, 1);
}
.brand-hero-tag .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% { opacity: .3; }
}
.brand-hero h2 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 22px;
  animation: fadeInLeft 1.1s cubic-bezier(.2, .8, .2, 1);
}
.brand-hero h2 b {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-hero p {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 580px;
  animation: fadeInLeft 1.2s cubic-bezier(.2, .8, .2, 1);
}

/* Features ticker */
.brand-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
  max-width: 580px;
  animation: fadeInUp 1.3s cubic-bezier(.2, .8, .2, 1);
}
.feat {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: .25s;
}
.feat:hover {
  background: rgba(251, 191, 36, .08);
  border-color: rgba(251, 191, 36, .3);
  transform: translateX(3px);
}
.feat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(251, 191, 36, .35);
}
.feat-text h4 {
  font-size: 14px; color: #fff; margin-bottom: 2px;
}
.feat-text p {
  font-size: 11.5px; color: #94a3b8; line-height: 1.4;
}

.brand-bottom {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px; color: #94a3b8;
  animation: fadeInUp 1.4s cubic-bezier(.2, .8, .2, 1);
}
.brand-socials {
  display: flex; gap: 10px;
}
.brand-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: .25s;
  text-decoration: none;
}
.brand-socials a:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(251, 191, 36, .4);
  border-color: transparent;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* === CÔTÉ DROIT — CARTE DE LOGIN GLASSMORPHIQUE === */
.login-card-wrap {
  display: flex; align-items: center; justify-content: center;
  perspective: 1500px;
}
.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 28px;
  padding: 44px 42px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .4),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
  animation: cardEntrance .9s cubic-bezier(.2, .8, .2, 1);
  transform-style: preserve-3d;
}
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.95) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Accent doré en haut */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* Logo dans la carte */
.card-logo-wrap {
  display: flex; justify-content: center; margin-bottom: 18px;
}
.card-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  padding: 3px;
  box-shadow: 0 14px 30px rgba(251, 191, 36, .35);
  position: relative;
}
.card-logo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff;
}
.card-logo::after {
  content: '✓';
  position: absolute;
  bottom: -4px; right: -4px;
  width: 24px; height: 24px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 3px solid #fff;
}

.login-card h3 {
  font-size: 26px;
  color: #0f172a;
  margin-bottom: 4px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.5px;
}
.login-card .sub {
  color: #64748b;
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 32px;
}

/* Inputs premium avec floating labels */
.form-group {
  position: relative;
  margin-bottom: 16px;
}
.input-shell {
  position: relative;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: .25s;
  overflow: hidden;
}
.input-shell:focus-within {
  border-color: #fbbf24;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .15);
}
.input-shell::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: linear-gradient(135deg, rgba(251, 191, 36, .1), rgba(245, 158, 11, .1));
  transition: width .3s ease;
}
.input-shell:focus-within::before { width: 100%; }
.input-shell input {
  width: 100%;
  padding: 18px 16px 18px 50px;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.input-shell .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 17px;
  z-index: 2;
  transition: .25s;
}
.input-shell:focus-within .input-icon { color: #f59e0b; transform: translateY(-50%) scale(1.1); }
.toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.toggle-pw:hover { background: #f1f5f9; color: #f59e0b; }

.login-options {
  display: flex; justify-content: space-between; align-items: center;
  margin: 14px 0 22px;
  font-size: 13px;
}
.checkbox-wrap {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  color: #475569; font-weight: 500;
}
.checkbox-wrap input { display: none; }
.checkbox-wrap .check-box {
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
  background: #fff;
}
.checkbox-wrap input:checked + .check-box {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #f59e0b;
}
.checkbox-wrap input:checked + .check-box::after {
  content: '✓'; color: #0f172a; font-weight: 900; font-size: 12px;
}
.forgot-link {
  color: #f59e0b;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.forgot-link:hover { color: #fbbf24; text-decoration: underline; }

.btn-login {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
  transition: .25s;
  box-shadow:
    0 10px 30px rgba(251, 191, 36, .45),
    inset 0 1px 0 rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-login::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transition: left .6s ease;
}
.btn-login:hover::before { left: 100%; }
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(251, 191, 36, .55);
}
.btn-login:active { transform: translateY(0); }
.btn-login i.fa-arrow-right { transition: transform .25s; }
.btn-login:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-login.loading {
  pointer-events: none;
  opacity: .7;
}
.btn-login.loading .label-text { opacity: 0; }
.btn-login.loading::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 3px solid rgba(15, 23, 42, .3);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Trust badges */
.trust-badges {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
}
.trust-badge {
  display: flex; align-items: center; gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}
.trust-badge i { color: #10b981; font-size: 11px; }

/* Demo creds */
.demo-creds {
  margin-top: 18px;
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #fde047;
  position: relative;
}
.demo-creds h5 {
  font-size: 11px;
  color: #854d0e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.demo-creds .demo-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #78350f; margin-bottom: 3px;
  align-items: center;
}
.demo-creds code {
  background: #fde68a;
  color: #78350f;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: .15s;
}
.demo-creds code:hover { background: #fcd34d; transform: scale(1.05); }
.demo-creds .demo-fill {
  background: none; border: none; color: #b45309;
  font-size: 10px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
}
.demo-creds .demo-fill:hover { color: #92400e; text-decoration: underline; }

/* Alert errors */
.alert {
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  animation: shake .4s cubic-bezier(.36, .07, .19, .97);
}
.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ============== STATUS BAR (top corner) ============== */
.status-bar {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 40;
  display: flex; gap: 10px; align-items: center;
}
.status-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(15, 23, 42, .7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: .25s;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blink 1.6s ease-in-out infinite;
}
.status-pill:hover { border-color: rgba(251, 191, 36, .4); color: #fff; }

/* Responsive */
@media (max-width: 720px) {
  .login-stage { padding: 14px; }
  .login-card { padding: 30px 24px; }
  .login-card h3 { font-size: 22px; }
  .mk-title { font-size: 36px; }
  .mk-subtitle { font-size: 15px; }
  .mk-hero-content { padding: 40px 24px; max-width: 100%; }
  .mk-stats { display: none; }
  .status-bar { display: none; }
}
