:root {
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  color: #222222;
  background: #f5f7fa;

  --blue-dark: #123a8f;
  --blue: #1f4fbf;
  --green: #5aae3e;
  --green-light: #eef8e9;
  --border: #eaeff5;
  --muted: #606163;
  --white: #ffffff;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fa;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--blue-dark);
  font-size: 19px;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.brand-logo {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  border-radius: 15px;

  color: var(--white);
  background: var(--blue-dark);

  font-size: 17px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 12px;

  color: var(--green);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

/* CONNEXION */

.login-layout {
  display: grid;
  grid-template-columns:
    minmax(360px, 1.1fr)
    minmax(420px, 0.9fr);

  min-height: 100vh;
}

.login-presentation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 48px 8%;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(18, 58, 143, 0.98),
      rgba(31, 79, 191, 0.92)
    );
}

.brand-white strong,
.brand-white span {
  color: var(--white);
}

.brand-white span {
  opacity: 0.8;
}

.brand-white .brand-logo {
  color: var(--blue-dark);
  background: var(--white);
}

.presentation-content {
  max-width: 680px;
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow-white {
  color: #c4f3ae;
}

.presentation-content h1 {
  margin: 0;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
}

.presentation-content > p:last-child {
  max-width: 610px;
  margin: 28px 0 0;

  font-size: 19px;
  line-height: 1.7;

  opacity: 0.9;
}

.login-form-section {
  display: grid;
  place-items: center;

  padding: 45px;
}

.login-card {
  width: min(460px, 100%);
  padding: 44px;

  border: 1px solid var(--border);
  border-radius: 24px;

  background: var(--white);

  box-shadow:
    0 24px 60px rgba(18, 58, 143, 0.12);
}

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin: 0;

  color: var(--blue-dark);

  font-size: 34px;
}

.form-introduction {
  margin: 12px 0 30px;

  color: var(--muted);

  line-height: 1.6;
}

.login-card label {
  display: block;

  margin: 19px 0 8px;

  font-size: 14px;
  font-weight: 750;
}

.login-card input {
  width: 100%;
  height: 52px;

  padding: 0 15px;

  border: 1px solid #ccd5e3;
  border-radius: 11px;

  outline: none;

  background: var(--white);
}

.login-card input:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 4px rgba(31, 79, 191, 0.12);
}

.login-card button {
  width: 100%;
  min-height: 52px;

  margin-top: 14px;

  border: 0;
  border-radius: 11px;

  color: var(--white);
  background: var(--blue);

  font-weight: 800;
}

.login-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-message {
  min-height: 22px;
  margin: 18px 0 0;

  color: var(--danger);

  font-size: 14px;
}

.help-text {
  margin: 22px 0 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* TABLEAU DE BORD */

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 90px;
  padding: 16px 5%;

  border-bottom: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(10px);
}

.account-zone {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-details {
  text-align: right;
}

.account-details strong,
.account-details span {
  display: block;
}

.account-details strong {
  color: var(--blue-dark);
}

.account-details span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 13px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;

  border: 1px solid #d7deea;
  border-radius: 10px;

  color: var(--blue-dark);
  background: var(--white);

  font-weight: 750;
}

.dashboard-container {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 55px 0 90px;
}

.dashboard-introduction h1 {
  margin: 0;

  color: var(--blue-dark);

  font-size: clamp(35px, 5vw, 58px);
}

.dashboard-introduction > p:last-child {
  margin: 16px 0 0;

  color: var(--muted);

  font-size: 18px;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-top: 38px;
}

.statistic-card {
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--white);

  box-shadow:
    0 12px 30px rgba(18, 58, 143, 0.06);
}

.statistic-card span,
.statistic-card strong {
  display: block;
}

.statistic-card span {
  color: var(--muted);
  font-size: 14px;
}

.statistic-card strong {
  margin-top: 10px;

  color: var(--blue-dark);

  font-size: 38px;
}

.section-heading {
  margin: 60px 0 20px;
}

.section-heading h2 {
  margin: 0;

  color: var(--blue-dark);

  font-size: 28px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.module-card {
  padding: 30px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background: var(--white);

  box-shadow:
    0 15px 36px rgba(18, 58, 143, 0.07);
}

.module-icon {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  border-radius: 15px;

  color: var(--blue-dark);
  background: var(--border);

  font-size: 23px;
  font-weight: 900;
}

.module-card h3 {
  margin: 20px 0 9px;

  color: var(--blue-dark);

  font-size: 23px;
}

.module-card p {
  min-height: 52px;
  margin: 0;

  color: var(--muted);

  line-height: 1.6;
}

.module-status {
  display: inline-block;

  margin-top: 20px;
  padding: 8px 12px;

  border-radius: 999px;

  color: #376c20;
  background: var(--green-light);

  font-size: 12px;
  font-weight: 800;
}

.organizations-list {
  display: grid;
  gap: 14px;
}

.organization-card,
.empty-state {
  padding: 24px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: var(--white);
}

.organization-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.organization-card h3 {
  margin: 0;

  color: var(--blue-dark);
}

.organization-card p,
.empty-state {
  color: var(--muted);
}

.organization-role {
  padding: 7px 11px;

  border-radius: 999px;

  color: var(--blue-dark);
  background: var(--border);

  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 850px) {
  .login-layout {
    display: block;
  }

  .login-presentation {
    display: none;
  }

  .login-form-section {
    min-height: 100vh;
    padding: 25px;
  }

  .login-card {
    padding: 30px 24px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 40px;

    color: var(--blue-dark);
    font-size: 20px;
  }

  .dashboard-header {
    min-height: auto;
    padding: 14px 5%;
  }

  .dashboard-header .brand span,
  .account-details {
    display: none;
  }

  .dashboard-header .brand-logo {
    width: 45px;
    height: 45px;

    border-radius: 12px;

    font-size: 15px;
  }

  .secondary-button {
    padding: 0 11px;
    font-size: 13px;
  }

  .statistics-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    width: 90%;
    padding-top: 38px;
  }

  .organization-card {
    align-items: flex-start;
    gap: 15px;
  }
}

/* ADMINISTRATION CLIENTS */

.admin-actions {
  margin-top: 32px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 18px;

  border-radius: 11px;

  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  color: var(--white);
  background: var(--blue);
}

.secondary-link {
  border: 1px solid #d7deea;

  color: var(--blue-dark);
  background: var(--white);
}

.form-container {
  width: min(1000px, 90%);
  margin: 0 auto;
  padding: 55px 0 90px;
}

.admin-form {
  display: grid;
  gap: 24px;

  margin-top: 38px;
}

.form-section {
  padding: 30px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background: var(--white);

  box-shadow:
    0 15px 36px rgba(18, 58, 143, 0.06);
}

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-bottom: 25px;
}

.form-section-heading > span {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 13px;

  color: var(--white);
  background: var(--blue-dark);

  font-weight: 900;
}

.form-section-heading h2,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h2 {
  color: var(--blue-dark);
}

.form-section-heading p {
  margin-top: 5px;

  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.form-grid label {
  display: grid;
  gap: 8px;

  font-size: 14px;
  font-weight: 750;
}

.form-grid input,
.service-option input[type="number"] {
  width: 100%;
  height: 49px;

  padding: 0 14px;

  border: 1px solid #ccd5e3;
  border-radius: 10px;

  outline: none;
}

.form-grid input:focus,
.service-option input[type="number"]:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 4px rgba(31, 79, 191, 0.11);
}

.full-width {
  grid-column: 1 / -1;
}

.services-selection {
  display: grid;
  gap: 14px;
}

.service-option {
  display: grid;
  grid-template-columns: auto 1fr 140px auto;
  align-items: center;
  gap: 15px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;
}

.service-option > input[type="checkbox"] {
  width: 21px;
  height: 21px;
}

.service-option span,
.service-option strong,
.service-option small {
  display: block;
}

.service-option strong {
  color: var(--blue-dark);
}

.service-option small {
  margin-top: 4px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.form-actions button {
  min-height: 48px;
  padding: 0 20px;

  border: 0;
  border-radius: 11px;

  color: var(--white);
  background: var(--blue);

  font-weight: 800;
}

.success-message {
  color: #376c20;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .service-option {
    grid-template-columns: auto 1fr;
  }

  .service-option input[type="number"],
  .service-option b {
    grid-column: 2;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

/* ADMIN STATISTICS MOBILE START */

@media (max-width: 700px) {
  #admin-statistics.statistics-grid {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  #admin-statistics.statistics-grid.hidden {
    display: none;
  }

  #admin-statistics .statistic-card {
    min-width: 0;
    min-height: 115px;
    box-sizing: border-box;
    padding: 18px;
  }

  #admin-statistics .statistic-card span {
    font-size: 13px;
    line-height: 1.35;
  }

  #admin-statistics .statistic-card strong {
    margin-top: 8px;
    font-size: 30px;
  }
}

@media (max-width: 370px) {
  #admin-statistics.statistics-grid {
    gap: 10px;
  }

  #admin-statistics .statistic-card {
    min-height: 105px;
    padding: 14px;
  }

  #admin-statistics .statistic-card span {
    font-size: 12px;
  }

  #admin-statistics .statistic-card strong {
    font-size: 27px;
  }
}

/* ADMIN STATISTICS MOBILE END */



.help-text a {
  color: #123a8f;
  font-weight: 800;
}

.form-message.success {
  color: #287a18;
}

.registration-card {
  max-width: 620px;
}

.registration-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registration-grid label,
.registration-card > label {
  display: grid;
  gap: 7px;
}

.password-information {
  margin: -6px 0 8px;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 680px) {
  .registration-grid {
    grid-template-columns: 1fr;
  }
}


/* MVL GLOBAL MOBILE START */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: hidden;
}

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

img,
video,
canvas,
svg {
  max-width: 100%;
}

main,
header,
section,
article,
nav,
form,
div {
  min-width: 0;
}

input,
select,
textarea,
button,
a {
  max-width: 100%;
}

@media (max-width: 760px) {
  body > header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 70px !important;

    padding:
      max(10px, env(safe-area-inset-top))
      12px
      10px !important;

    overflow: hidden;
  }

  body > header .brand,
  body > header .dashboard-brand,
  body > header .client-plates-brand {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    gap: 9px !important;
    min-width: 0 !important;
  }

  body > header .brand-logo,
  body > header .client-plates-brand span {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }

  body > header .brand strong,
  body > header .dashboard-brand strong,
  body > header .client-plates-brand strong {
    overflow: hidden;
    font-size: 19px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body > header .header-actions,
  body > header .dashboard-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 7px !important;
    margin-left: auto !important;
  }

  body > header button,
  body > header a {
    min-height: 46px !important;
    padding: 0 11px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  body > header
  button[aria-label*="notification" i],
  body > header
  button[title*="notification" i] {
    flex: 0 0 46px !important;
    width: 46px !important;
    padding: 0 !important;
  }
}

@media (max-width: 390px) {
  body > header .brand strong,
  body > header .dashboard-brand strong {
    font-size: 17px !important;
  }

  body > header button,
  body > header a {
    padding: 0 9px !important;
    font-size: 12px !important;
  }
}

/* MVL GLOBAL MOBILE END */


/* MVL PASSWORD TOGGLE START */

.password-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.password-input-wrapper
.password-toggle-input {
  width: 100%;
  padding-right: 58px !important;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 11px;
  z-index: 3;

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

  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;

  padding: 0;
  border: 0;
  border-radius: 10px;

  background: transparent;
  color: #123a8f;

  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle-button:hover {
  background: #e8efff;
}

.password-toggle-button:focus-visible {
  outline: 3px solid
    rgba(31, 79, 191, 0.25);

  outline-offset: 1px;
}

.password-toggle-button svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.password-toggle-button
.password-eye-slash {
  stroke-width: 2;
}

@media (max-width: 600px) {
  .password-toggle-button {
    right: 9px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .password-input-wrapper
  .password-toggle-input {
    padding-right: 54px !important;
  }
}

/* MVL PASSWORD TOGGLE END */


/* MVL PASSWORD EYE SIZE FIX START */

.password-input-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.password-input-wrapper
.password-toggle-input {
  width: 100% !important;
  padding-right: 58px !important;
}

.password-input-wrapper
> .password-toggle-button {
  position: absolute !important;

  top: 50% !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;

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

  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;

  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: transparent !important;
  color: #123a8f !important;

  box-shadow: none !important;

  font-size: 0 !important;
  line-height: 1 !important;

  cursor: pointer !important;

  transform:
    translateY(-50%) !important;

  z-index: 10 !important;
}

.password-input-wrapper
> .password-toggle-button:hover {
  background: #e8efff !important;

  transform:
    translateY(-50%) !important;
}

.password-input-wrapper
> .password-toggle-button:active {
  transform:
    translateY(-50%) !important;
}

.password-input-wrapper
> .password-toggle-button svg {
  display: block !important;

  width: 23px !important;
  min-width: 23px !important;

  height: 23px !important;
  min-height: 23px !important;

  margin: 0 !important;

  fill: none !important;
  stroke: currentColor !important;
}

@media (max-width: 600px) {
  .password-input-wrapper
  > .password-toggle-button {
    right: 8px !important;

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }

  .password-input-wrapper
  > .password-toggle-button svg {
    width: 21px !important;
    min-width: 21px !important;

    height: 21px !important;
    min-height: 21px !important;
  }

  .password-input-wrapper
  .password-toggle-input {
    padding-right: 52px !important;
  }
}

/* MVL PASSWORD EYE SIZE FIX END */


/* MVL PWA INSTALL BUTTON START */

#mvl-install-app-button {
  position: fixed !important;
  right: 18px !important;
  bottom: calc(
    18px + env(safe-area-inset-bottom)
  ) !important;
  z-index: 9999 !important;

  width: auto !important;
  min-width: 170px !important;
  max-width: calc(100vw - 36px) !important;
  min-height: 52px !important;

  margin: 0 !important;
  padding: 0 20px !important;

  border: 2px solid #ffffff !important;
  border-radius: 16px !important;

  background: #123a8f !important;
  color: #ffffff !important;

  box-shadow:
    0 12px 30px
    rgba(18, 58, 143, 0.3) !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;

  cursor: pointer !important;
}

#mvl-install-app-button:hover {
  background: #1f4fbf !important;
}

@media (max-width: 600px) {
  #mvl-install-app-button {
    right: 12px !important;
    bottom: calc(
      12px + env(safe-area-inset-bottom)
    ) !important;

    min-width: 160px !important;
    min-height: 50px !important;

    padding: 0 16px !important;

    font-size: 14px !important;
  }
}

/* MVL PWA INSTALL BUTTON END */

/* MVL PASSWORD RESET FINAL START */

.auth-secondary-link {
  margin: 17px 0 5px;
  text-align: center;
}

.auth-secondary-link a,
.login-card .help-text a {
  color: #123a8f;
  font-weight: 700;
  text-decoration: none;
}

.auth-secondary-link a:hover,
.login-card .help-text a:hover {
  text-decoration: underline;
}

.form-message.success {
  padding: 13px 14px;
  border: 1px solid #a7d89a;
  border-radius: 11px;
  background: #eef9ea;
  color: #306b24;
  line-height: 1.45;
}

/* MVL PASSWORD RESET FINAL END */


/* MVL CLIENT LOYALTY HIDDEN */
.client-space-action-button[hidden] {
  display: none !important;
}

/* MVL PWA DISABLED 20260806 */
#mvl-install-app-button {
  display: none !important;
}
