/* ------------------------------
   Reset & base
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
   height: 100%;
}

body.login-body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f7;
  background: radial-gradient(circle at top left, #1b2540 0, #050814 45%, #02030a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
    flex-direction: column;

}

/* ------------------------------
   Background layers
--------------------------------*/
.bg-blur,
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-blur {
  background:
    radial-gradient(circle at 10% 20%, rgba(104, 179, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255, 99, 177, 0.20), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(127, 90, 240, 0.35), transparent 55%);
  filter: blur(55px);
  opacity: 0.9;
}

.bg-overlay {
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.65), transparent 70%);
}

/* ------------------------------
   Layout principal
--------------------------------*/
.auth-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

    .auth-card.glass {
    max-width: 100%;
    padding: 1.4rem 1.3rem 1.3rem;
    border-radius: 20px;
  }

  .auth-logo-inner {
    padding: 1rem 1.2rem;
  }
.auth-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.brand-text {
  flex: 1;
}
.auth-head-inline .brand-text h1 {
  font-size: 1.4rem;   /* plus grand */
  margin: 0.2rem 0 0.15rem;
}

/* Sous-titre : taille inférieure */
.auth-head-inline .brand-text p {
  font-size: 0.7rem;   /* plus petit que le h1 */
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}
  .site-footer {
    padding: 0.75rem 1.2rem;
  }

  .site-footer .footer-content {
    font-size: 0.78rem;
    text-align: center;
  }
}

/* ------------------------------
   Colonne gauche (hero)
--------------------------------*/
.side-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-hero {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.hero-logo {
  max-width: 220px;
  height: auto;
}

/* ------------------------------
   Colonne droite (carte login)
--------------------------------*/
.side-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card.glass {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 1.75rem 1.75rem 1.35rem;
  background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.82),
      rgba(15, 23, 42, 0.9)
    );
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* ------------------------------
   Header / brand
--------------------------------*/
.auth-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.brand-text h1 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
  
}

.brand-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.brand-text .lang-switch {
  margin: 0.2rem 0 0.2rem;
}
/* ------------------------------
   Switch langue
--------------------------------*/
.lang-switch {
  display: inline-flex;                    /* <-- important : ne prend que la largeur de FR/EN */
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);

  margin-left: auto;                       /* le pousse à l'extrême droite du header */
  align-self: flex-start;                  /* aligné en haut du header */
}
.lang-switch .pill {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  text-decoration: none;
  color: #e5e7eb;
  transition: all 0.18s ease-out;
}

.lang-switch .pill:hover {
  background: rgba(148, 163, 184, 0.25);
}

.lang-switch .pill.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1020;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}


.lang-switch .pill:hover {
  background: rgba(148, 163, 184, 0.25);
}

.lang-switch .pill.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1020;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}


/* ------------------------------
   Tabs
--------------------------------*/
.auth-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem;
  margin-bottom: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  justify-content: center;  /* centrer horizontalement */
  width: 100%;
}

.auth-tabs .tab {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.auth-tabs .tab:hover {
  color: #e5e7eb;
}

.auth-tabs .tab.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.55);
}

/* ------------------------------
   Alertes
--------------------------------*/
.alert {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.75);
  color: #fecaca;
}

.alert i {
  font-size: 1.1rem;
}

.alert.success {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(74, 222, 128, 0.9);
  color: #bbf7d0;
}

/* ------------------------------
   Panels
--------------------------------*/
.tab-panels {
  margin-top: 0.2rem;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* ------------------------------
   Formulaires
--------------------------------*/
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.82rem;
  color: #e5e7eb;
}

.field label i {
  margin-right: 0.25rem;
  color: #60a5fa;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s;
}

.field input::placeholder {
  color: #6b7280;
}

.field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 1);
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Mot de passe + bouton œil */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input {
  width: 100%;
  padding-right: 2.5rem;
}

.pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.pw-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
}

/* Lignes & cases */
.row {
  display: flex;
  align-items: center;
}

.row.between {
  justify-content: space-between;
  gap: 0.5rem;
}

.link {
  font-size: 0.8rem;
  color: #60a5fa;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Checkbox custom */
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.check input {
  display: none;
}

.check span {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  position: relative;
}

.check input:checked + span {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(22, 163, 74, 0.95);
}

.check input:checked + span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #0b1120;
}

/* ------------------------------
   Boutons
--------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s;
}

.btn i {
  font-size: 1rem;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
}

.btn.primary i {
  color: #ffffff;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.6);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.55);
}

.btn.full {
  width: 100%;
}

.btn-white-text {
  color: #ffffff !important;
}

.btn-white-text i {
  color: #ffffff !important;
}

/* Boutons sociaux */
.social-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.btn-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.btn-social-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-social-icon:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.8);
}

/* Séparateur */
.sep {
  position: relative;
  text-align: center;
  margin: 0.4rem 0 0.5rem;
}

.sep span {
  display: inline-block;
  padding: 0 0.6rem;
  font-size: 0.75rem;
  color: #9ca3af;
  position: relative;
  background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.9)
    );
}

.sep::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(148, 163, 184, 0.6),
      transparent
    );
  transform: translateY(-50%);
}

/* ------------------------------
   Grille signup
--------------------------------*/
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.7rem;
}

.grid > .field:nth-child(3),
.grid > .field:nth-child(4),
.grid > .field:nth-child(5),
.grid > .check,
.grid > .btn {
  grid-column: 1 / -1;
}

.hint {
  font-size: 0.7rem;
  color: #9ca3af;
  margin: 0.15rem 0 0;
}


/* ------------------------------
   Accessibilité & helpers
--------------------------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html,
body {
  height: 100%;
}

body.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Carte centrée au milieu de la page */
.auth-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;       /* centre verticalement */
  justify-content: center;   /* centre horizontalement */
  padding: 2.5rem 1.5rem;
}

/* Bloc principal : plus imposant */
.auth-card.glass {
  width: 100%;
  max-width: 520px;          /* augmente la largeur */
  padding: 1.8rem 2.2rem 1.6rem;
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  background: radial-gradient(circle at top,
              rgba(44, 120, 255, 0.18),
              rgba(8, 15, 40, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Bloc logo en haut de la carte */
.auth-logo-block {
  margin-bottom: 1.4rem;
}

.auth-logo-inner {
  border-radius: 20px;
  padding: 1.4rem 1.8rem;
  background: radial-gradient(circle at top left,
               rgba(59, 130, 246, 0.30),
               rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-main {
  max-width: 100%;
  height: auto;
}

/* Header (titre + switch langue) sur une ligne */
/* Header (titre + langue+ légende) sur une seule colonne */
.auth-head-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}


.auth-head-inline .brand-text p {
  font-size: 10px;        
  line-height: 1.4;
  opacity: 0.9;
}

.auth-head-inline .brand-text p {
  font-size: 0.8rem;
  opacity: 0.9;
}
/* Footer global */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: #020617; /* noir très sombre */
  padding: 0.75rem 2.5rem;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.site-footer .footer-content a {
  color: #38bdf8;
  text-decoration: none;
}

.site-footer .footer-content a:hover {
  text-decoration: underline;
}

/* Petits écrans */
@media (max-width: 640px) {
  .auth-card.glass {
    max-width: 100%;
    padding: 1.4rem 1.3rem 1.3rem;
    border-radius: 20px;
  }

  .auth-logo-inner {
    padding: 1rem 1.2rem;
  }

  .auth-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }

/* Layout général pour avoir le footer en bas */
html,
body {
  height: 100%;
}

body.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Le main prend tout l'espace dispo, pousse le footer en bas */
.auth-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;      /* centre verticalement la carte */
  justify-content: flex-start; /* carte à gauche, comme ton design */
  padding: 3rem 4rem;
}

/* Footer collé en bas, pleine largeur */
.site-footer {
  flex-shrink: 0;
  position: relative;      /* IMPORTANT : enlève tout absolute/fixed éventuel */
  width: 100%;
  padding: 0 3rem 1.5rem;
  box-sizing: border-box;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.site-footer .footer-right a {
  margin-left: 0.75rem;
  font-size: 1rem;
}

}












































/* Overlay image de fond */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/images/background.png") center center / cover no-repeat;
  filter: blur(7px);
  opacity: 0.6; /* laisse voir le gradient existant */
}

/* Halo logo */
.auth-logo-inner {
  border-radius: 20px;
  padding: 1.4rem 1.8rem;
  background: radial-gradient(circle at top left,
               rgba(59, 130, 246, 0.30),
               rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 35px rgba(59, 130, 246, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.75);
}


.trial-closed-card {
  margin-top: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top,
              rgba(239, 68, 68, 0.12),
              rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fecaca;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.trial-closed-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.trial-closed-card p {
  margin: 0;
  font-size: 0.85rem;
}

.alert.social-alert {
  margin-top: 0.7rem;
  display: none;
}

.alert.flash {
  animation: flashIn 0.25s ease-out;
}

@keyframes flashIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  max-width: 480px;
  margin: 8vh auto;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.3rem 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
}

.modal-close:hover {
  background: rgba(148, 163, 184, 0.2);
}

.modal-body {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.modal-footer {
  margin-top: 0.9rem;
  text-align: right;
}





/* ------------------------------
   Indicateur de complexité MDP
--------------------------------*/
.password-meter {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #9ca3af;
}

.password-meter p.hint {
  margin-bottom: 0.25rem;
}

.password-meter-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.password-meter-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.18s ease-out, background 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* Couleurs selon la force */
.password-meter-bar span.weak {
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
}

.password-meter-bar span.medium {
  background: linear-gradient(90deg, #facc15, #22c55e);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.55);
}

.password-meter-bar span.strong {
  background: linear-gradient(90deg, #22c55e, #2dd4bf);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.7);
}

/* Liste des règles */
.password-meter-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.password-meter-rules li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
}

/* État non respecté */
.password-meter-rules li.rule-ko {
  color: #fca5a5;
}

.password-meter-rules li.rule-ko::before {
  content: "•";
  font-size: 0.9rem;
  color: #f97316;
}

/* État respecté */
.password-meter-rules li.rule-ok {
  color: #bbf7d0;
}

.password-meter-rules li.rule-ok::before {
  content: "✓";
  font-size: 0.85rem;
  color: #22c55e;
}





/* Liens en blanc sur la page login */
body.login-body a {
  color: #ffffff;
  text-decoration: none;
}

body.login-body a:hover {
  text-decoration: underline;
}











