/* ===== file: /assets/css/login.css =====
   LOGIN — CENTERED (desktop + mobile) — Apple/SaaS
   ✅ Centered in the middle
   ✅ Footer removed (no fixed footer)
   ✅ Mobile: hide company title only (keep logo)
   ✅ "🔒 دخول آمن" next to "رجوع للموقع" (desktop + mobile)
   ✅ More solid glass + crisp border
   ✅ FIX MOBILE TITLE: ensure gradient bar never overlays title + better spacing
==================================================== */

:root {
  --lp-mini-h: 52px;
  --lp-radius-xl: 24px;
  --lp-radius-lg: 16px;
}

/* =========================
   Scroll safe
========================= */
html,
body {
  height: 100%;
}

body.login-page {
  /* La page login est maintenant compactée pour tenir sur un seul écran
     (no-scroll) sur les viewports >= 600px de haut. Scroll auto en fallback
     pour les très petits écrans (ex: téléphones avec clavier ouvert). */
  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) rgba(2, 6, 23, .25);
}

body.login-page::-webkit-scrollbar {
  width: 10px;
}

body.login-page::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, .25);
}

body.login-page::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  border: 2px solid rgba(2, 6, 23, .25);
}

/* ==============================
   BACKGROUND
============================== */
.login-page .login-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #f7f4ec;
}

.login-page .login-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

/* Voile blanc doux par-dessus le motif → motif estompé (option 1). */
.login-page .login-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(247, 244, 236, 0.62));
}

.login-page .login-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: transparent;
}

.login-page .login-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* ==============================
   WRAPPER (CENTERED)
============================== */
.login-page .login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  /* align-content: center → centre VERTICALEMENT la card (sinon la ligne auto
     de la grille reste collée en haut). */
  align-content: center;
  /* Réserve la hauteur du navbar fixe en haut pour que la card ne passe pas
     dessous (le contenu reste centré dans l'espace restant). */
  padding: calc(var(--topbar-h, 74px) + 14px) 14px 14px;
}

.login-page .login-shell {
  width: min(520px, 100%);
  display: grid;
  /* Gap plus visible (14px) — sans ça, le header et la card (même fond
     vert sombre) semblent collés en une seule grosse boîte. */
  gap: 14px;
}

/* ==============================
   MINI HEADER (solid + crisp)
============================== */
.login-page .login-mini {
  min-height: var(--lp-mini-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 14px;
  border-radius: var(--lp-radius-lg);

  /* Même fond sombre que la card principale pour rester lisible sur le motif beige. */
  background: #0e3b2a;
  border: 1px solid rgba(255, 255, 255, .08);

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  box-shadow: 0 20px 45px rgba(0, 0, 0, .25);

  transform: translateY(16px);
  opacity: 0;
  animation: lpFadeUp .65s ease-out forwards;
}

.login-page .login-mini__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, .98);
  min-width: 0;
}

.login-page .login-mini__logo {
  width: auto;
  height: 44px;
  max-width: 160px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 0 0 auto;
}

.login-page .login-mini__name {
  font-weight: 1000;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.login-page .login-mini__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* badge */
.login-page .login-mini__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  color: rgba(255, 255, 255, .98);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  white-space: nowrap;
}

/* back link */
.login-page .login-mini__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;

  font-weight: 1000;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .98);
  text-decoration: none;

  background: linear-gradient(90deg, rgba(0, 128, 55, .35), rgba(34, 193, 195, .30));
  border: 1px solid rgba(255, 255, 255, .18);
  transition: .18s ease;
  white-space: nowrap;
}

.login-page .login-mini__back:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  background: linear-gradient(90deg, rgba(0, 128, 55, .45), rgba(34, 193, 195, .38));
}

/* ==============================
   CARD (solid + crisp)
============================== */
.login-page .login-card {
  position: relative;
  border-radius: var(--lp-radius-xl);
  overflow: hidden;

  /* Carte claire « frosted » (verre dépoli) — cohérente avec les cartes des
     pages contenu, très lisible sur le fond beige à motifs marocains. */
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);

  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;

  box-shadow:
    0 28px 64px rgba(2, 6, 23, .16),
    0 10px 24px rgba(2, 6, 23, .08);

  transform: translateY(16px);
  opacity: 0;
  animation: lpFadeUp .65s ease-out forwards;
}

/* Barre dégradée du haut retirée — redondante avec le fond vert sombre uni
   de la card. Garde le visuel propre et aéré. */
.login-page .login-card::before {
  content: none;
}

/* ✅ content above the bar */
.login-page .login-card-head,
.login-page .login-msg,
.login-page .login-form {
  position: relative;
  z-index: 1;
}

@keyframes lpFadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==============================
   HEADER
============================== */
.login-page .login-card-head {
  text-align: center;
  padding: 14px 28px 0;
}

.login-page .login-title {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 900;
  color: #0b1b48;
  letter-spacing: .2px;

  line-height: 1.25;
  padding: 0 10px;
  display: inline-block;
}

.login-page .login-subtitle {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 0 12px;
}

/* ==============================
   MSG
============================== */
.login-page .login-msg {
  margin: 12px 0 0;
  min-height: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.login-page .login-msg:empty { display: none; }

.login-page .login-msg[data-type="error"] {
  display: block;
  white-space: pre-line; /* le \n du message → saut de ligne (ex. "(2 tentatives restantes)") */
  text-align: center;
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid rgba(252, 165, 165, 0.9);
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.login-page .login-msg[data-type="success"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(240, 253, 244, 0.95);
  border: 1px solid rgba(134, 239, 172, 0.9);
  color: #166534;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.login-page .login-msg[data-type="success"]::before {
  content: "✅";
  font-size: 18px;
  flex-shrink: 0;
}

.login-page .login-msg[data-type="info"] {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  padding: 10px 16px;
  border-radius: 14px;
}

/* Avis (ex. session expirée par inactivité) — ambre, attire l'attention sans alarmer */
.login-page .login-msg[data-type="warn"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: pre-line;
  text-align: center;
  background: rgba(254, 243, 199, 0.95);
  border: 1px solid rgba(252, 211, 77, 0.9);
  color: #92400e;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.login-page .login-msg[data-type="warn"]::before {
  content: "⏱️";
  font-size: 17px;
  flex-shrink: 0;
}

/* ==============================
   FORM
============================== */
.login-page .login-form {
  position: relative;
  padding: 12px 28px 16px;
}

.login-page .field {
  margin-bottom: 8px;
}

.login-page .field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
  font-size: 13.5px;
  color: #0f172a;
  text-align: right;
}

.login-page .input-wrap {
  position: relative;
}

/* (cadenas décoratif 🔒 retiré du champ mot de passe) */

.login-page .field input {
  width: 100%;
  height: 44px;
  border-radius: 14px;

  border: 1px solid rgba(15, 23, 42, .14);
  background: #ffffff;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;

  padding: 0 44px 0 14px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: normal;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.login-page .field input::placeholder {
  color: rgba(15, 23, 42, .55) !important;
  -webkit-text-fill-color: rgba(15, 23, 42, .55) !important;
}

.login-page .input-ltr {
  direction: ltr;
  text-align: left;
}

/* ==============================
   CHAMP TÉLÉPHONE + SÉLECTEUR PAYS À DRAPEAUX
   (identique à signup, scopé .login-page)
============================== */
.login-page .su-phone-field {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 12px;
  direction: ltr;
  align-items: stretch;
  overflow: visible;
}

.login-page .su-phone-field > * {
  min-width: 0;
}

.login-page .su-country-select {
  position: relative;
  z-index: 60;
  min-width: 0;
  overflow: visible;
}

.login-page .su-country-trigger {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: 0.18s ease;
}

.login-page .su-country-trigger:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .22);
}

.login-page .su-country-trigger:focus-visible {
  outline: none;
  border-color: rgba(15, 118, 110, .85);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
}

.login-page .su-country-trigger-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.login-page .su-country-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
}

.login-page .su-country-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  direction: ltr;
}

/* Indicatif dans un petit conteneur vert (bien visible). */
.login-page .su-country-dial {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 1000;
  color: #008037;
  white-space: nowrap;
  background: rgba(0, 128, 55, 0.10);
  border: 1px solid rgba(0, 128, 55, 0.18);
  padding: 2px 7px;
  border-radius: 7px;
}

.login-page .su-country-name {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  color: #334155;
  direction: rtl;
  text-align: left;
  unicode-bidi: plaintext;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-page .su-country-caret {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #1e293b;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.login-page .su-country-select.open .su-country-caret {
  transform: rotate(180deg);
}

.login-page .su-country-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
}

.login-page .su-country-select.open .su-country-menu {
  display: block;
}

.login-page .su-country-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition: 0.16s ease;
}

.login-page .su-country-option:hover,
.login-page .su-country-option:focus-visible,
.login-page .su-country-option.is-active {
  outline: none;
  background: rgba(0, 128, 55, 0.10);
}

.login-page .su-country-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  direction: ltr;
}

.login-page .su-country-option-name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  direction: rtl;
  text-align: left;
  unicode-bidi: plaintext;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-page .su-country-option-dial {
  font-size: 14px;
  font-weight: 1000;
  color: #008037;
  white-space: nowrap;
}

/* Le numéro à droite : LTR, pas de padding icône (pas d'icône ici). */
.login-page .su-phone-field #phone {
  padding: 0 14px;
  direction: ltr;
  text-align: left;
}

@media (max-width: 520px) {
  .login-page .su-phone-field {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .login-page .su-country-trigger,
  .login-page .su-phone-field #phone {
    height: 38px;
  }
  .login-page .su-country-menu {
    max-height: 260px;
  }
}

.login-page .field input:focus {
  border-color: rgba(15, 118, 110, .85);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
  background: #ffffff;
}

.login-page .field-error {
  margin: 4px 0 0;
  min-height: 0;
  font-size: 12px;
  font-weight: 800;
  /* Rouge franc — lisible sur la card claire (l'ancien rose pâle était fait
     pour l'ancienne card sombre). */
  color: #dc2626;
}
.login-page .field-error:empty { display: none; }

.login-page .field input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .15);
}

/* Supprimer le bouton natif "afficher le mot de passe" du navigateur */
.login-page input[type="password"]::-ms-reveal,
.login-page input[type="password"]::-ms-clear {
  display: none;
}
.login-page input::-webkit-credentials-auto-fill-button,
.login-page input::-webkit-contacts-auto-fill-button {
  display: none !important;
  pointer-events: none;
}

/* PASSWORD SHOW/HIDE TOGGLE */
.login-page .input-wrap.has-toggle input {
  padding-inline-end: 50px;
}

.login-page .pass-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 8px;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;

  color: rgba(15, 23, 42, .45);
  transition: color .18s ease, background .18s ease, transform .12s ease;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.login-page .pass-toggle:hover {
  color: rgba(15, 118, 110, .95);
  background: rgba(15, 118, 110, .08);
}

.login-page .pass-toggle:active {
  transform: translateY(-50%) scale(.94);
}

.login-page .pass-toggle.is-on {
  color: rgba(15, 118, 110, 1);
  background: rgba(15, 118, 110, .10);
}

.login-page .pass-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .25);
}

/* ==============================
   ACTIONS
============================== */
.login-page .login-actions {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.login-page .login-actions .btn,
.login-page .link-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 14.5px;
  transition: .25s ease;
}

.login-page .login-actions .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 18px 36px rgba(8, 145, 178, .28);
}

.login-page .login-actions .btn.primary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
}

.login-page .link-soft {
  color: #334155;
  background: rgba(15, 23, 42, .05);
  border: 1px solid rgba(15, 23, 42, .1);
}

.login-page .link-soft:hover {
  background: rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.login-page .login-footNote {
  text-align: center;
  color: #475569;
  margin-top: 8px;
  font-size: 13.5px;
}

.login-page .login-footNote a {
  color: #0f766e;
  text-decoration: underline;
}

.login-page .login-bottom-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 92px;
  background: radial-gradient(260px 92px at 50% 100%, rgba(8, 145, 178, .10), transparent 65%);
  pointer-events: none;
}

/* ==============================
   MOBILE (mini header tweaks)
============================== */
@media (max-width: 520px) {

  /* Plus d'espace sur les côtés (comme la version AR) — la card "respire"
     au lieu de coller aux bords de l'écran. */
  .login-page .login-wrapper {
    padding: calc(var(--topbar-h, 64px) + 4px) 16px 6px;
  }

  .login-page .login-mini {
    justify-content: space-between;
    padding: 6px 8px;
    gap: 8px;
  }

  /* ✅ Hide ONLY the company title on mobile */
  .login-page .login-mini__name {
    display: none !important;
  }

  .login-page .login-mini__logo {
    height: 30px;
    width: auto;
    max-width: 110px;
  }

  /* Badges header réduits — plus compacts pour libérer de la place et
     éviter le débordement visuel sur petits écrans.
     Mobile : caché pour libérer la place au logo + bouton retour. */
  .login-page .login-mini__badge {
    display: none !important;
  }

  .login-page .login-mini__right {
    gap: 5px;
  }

  .login-page .login-mini__back {
    height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .login-page .login-card-head {
    padding: 8px 14px 0;
  }

  .login-page .login-title {
    font-size: 21px;
    line-height: 1.2;
    margin-top: 0;
    padding: 0 6px;
  }

  .login-page .login-subtitle {
    font-size: 11.5px;
    line-height: 1.35;
    margin-top: 2px;
    padding: 0 4px;
  }

  .login-page .login-form {
    padding: 6px 14px 8px;
  }

  /* Espacement vertical resserré → le formulaire tient sur UN écran (pas de
     scroll en usage normal ; overflow:auto reste comme filet pour le clavier). */
  .login-page .field {
    margin-bottom: 5px;
  }

  /* Champs un poil plus petits sur mobile pour un formulaire moins long. */
  .login-page .field input {
    height: 38px;
    border-radius: 11px;
    color: #0f172a;
    font-size: 14px;
  }

  .login-page .field label {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .login-page .ts-row {
    margin: 2px 0 !important;
    transform: scale(.84) !important;
  }

  .login-page .login-actions {
    margin: 4px 0 2px;
    gap: 6px;
  }

  .login-page .login-actions .btn,
  .login-page .link-soft {
    height: 38px;
    font-size: 13.5px;
  }

  .login-page .login-footNote {
    margin-top: 4px;
    font-size: 12.5px;
  }
}

/* ultra small phones */
@media (max-width: 360px) {
  /* Encore un peu moins de padding sur très petits écrans pour gagner de la
     place utile sans toucher au visuel de respiration latérale. */
  .login-page .login-wrapper {
    padding: calc(var(--topbar-h, 60px) + 8px) 12px 8px;
  }

  .login-page .login-mini__badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  .login-page .login-mini__back {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .login-page .login-title {
    font-size: 19px;
  }
}

/* ── LTR (French) overrides ── */
[dir="ltr"] .login-page .field label {
  text-align: left;
}

/* .login-footNote (« Pas encore de compte ? Créer un compte ») : centré dans les deux
   langues (la base .login-footNote{text-align:center} s'applique aussi en FR). */

/* iOS Safari : supprimer le fond jaune autofill */
.login-page input:-webkit-autofill,
.login-page input:-webkit-autofill:hover,
.login-page input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.96) inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── « Mot de passe oublié ? » dans le menu burger MOBILE (login uniquement) ──
   Caché en desktop (c'est un bouton du menu mobile), affiché dans le burger.
   Style secondaire (blanc + bordure bleue) pour le distinguer de « Créer un compte ». */
.login-page .topbar #mobileLinks .mobile-forgot-btn { display: none; }

@media (max-width: 1024px) {
  .login-page .topbar .links .mobile-forgot-btn,
  .login-page .topbar .links a.mobile-forgot-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    color: #0f766e !important;
    background: #fff;
    border: 2px solid #0f766e;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  }

  .login-page .topbar .links .mobile-forgot-btn:hover,
  .login-page .topbar .links .mobile-forgot-btn:focus-visible,
  .login-page .topbar .links a.mobile-forgot-btn:hover,
  .login-page .topbar .links a.mobile-forgot-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(15, 118, 110, 0.06);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
    color: #0f766e !important;
  }
}

/* FR (LTR), UNIQUEMENT en 2 colonnes (≥521px) : input à gauche (sous le label
   « Numéro de téléphone »), indicatif à droite. En mobile (≤520px) le champ s'empile
   normalement (indicatif en haut, input en bas). L'arabe reste inchangé. */
@media (min-width: 521px) {
  [dir="ltr"] .login-page .su-phone-field {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }
  [dir="ltr"] .login-page .su-phone-field > #phone { order: 1; }
  [dir="ltr"] .login-page .su-phone-field > #countrySelect { order: 2; }
}
