/* =========================================================
   MALLOUL DIGITAL ANALYTICS
   PAGE DE CONNEXION
========================================================= */

:root {

  --md-primary: #2563eb;

  --md-primary-hover: #1d4ed8;

  --md-dark: #0f172a;

  --md-text: #172033;

  --md-muted: #64748b;

  --md-border: #dce4ee;

  --md-white: #ffffff;

}

* {

  box-sizing: border-box;

}

html {

  min-height: 100%;

  color-scheme: light;

}

body {

  margin: 0;

  min-height: 100vh;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--md-text);

  background-color: #0f172a;

  background-image:

    linear-gradient(
      rgba(255,255,255,.025) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(255,255,255,.025) 1px,
      transparent 1px
    ),

    radial-gradient(
      ellipse at top right,
      #1d3970,
      transparent 65%
    );

  background-size:

    42px 42px,

    42px 42px,

    100% 100%;

}

button,
input {

  font: inherit;

}

button {

  cursor: pointer;

}

[hidden] {

  display: none !important;

}


/* PAGE */

.md-login-page {

  min-height: 100vh;

  min-height: 100dvh;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 32px 20px;

}


/* CARTE */

.md-login-card {

  width: 100%;

  max-width: 460px;

  padding: 34px;

  border: 1px solid rgba(255,255,255,.2);

  border-top: 4px solid var(--md-primary);

  border-radius: 20px;

  background: var(--md-white);

  box-shadow:

    0 25px 80px rgba(0,0,0,.28),

    0 5px 15px rgba(0,0,0,.12);

}


/* IDENTITE VISUELLE */

.md-login-brand {

  display: flex;

  align-items: center;

  gap: 14px;

  padding-bottom: 25px;

  border-bottom: 1px solid var(--md-border);

}

.md-logo {

  width: 56px;

  height: 56px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  border-radius: 15px;

  font-size: 23px;

  font-weight: 850;

  letter-spacing: -1px;

  color: white;

  background: linear-gradient(

    145deg,

    #60a5fa,

    #2563eb 60%,

    #1d4ed8

  );

  box-shadow: 0 5px 15px rgba(37,99,235,.25);

}

.md-brand-text {

  display: flex;

  flex-direction: column;

  gap: 5px;

}

.md-brand-text strong {

  font-size: 21px;

  font-weight: 800;

  color: var(--md-dark);

}

.md-brand-text span {

  color: var(--md-primary);

  font-size: 11px;

  letter-spacing: 3px;

  font-weight: 750;

}


/* INTRODUCTION */

.md-login-intro {

  margin: 28px 0;

}

.md-eyebrow {

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: var(--md-primary);

}

.md-login-intro h1 {

  font-size: 27px;

  font-weight: 800;

  letter-spacing: -.8px;

  margin: 10px 0;

  color: var(--md-dark);

}

.md-login-intro p {

  margin: 0;

  color: var(--md-muted);

  font-size: 14px;

  line-height: 1.7;

}


/* FORMULAIRE */

.md-field {

  margin-bottom: 20px;

}

.md-field label {

  display: block;

  margin-bottom: 9px;

  font-size: 13px;

  font-weight: 700;

}

.md-field input {

  width: 100%;

  min-width: 0;

  height: 50px;

  border: 1px solid var(--md-border);

  border-radius: 10px;

  background: #f8fafc;

  padding: 0 14px;

  font-size: 14px;

  color: var(--md-text);

  outline: none;

  transition:

    border-color .2s,

    box-shadow .2s;

}

.md-field input:focus {

  background: white;

  border-color: var(--md-primary);

  box-shadow: 0 0 0 3px rgba(37,99,235,.12);

}

.md-field input::placeholder {

  color: #94a3b8;

}

.md-password-field {

  position: relative;

}

.md-password-field input {

  padding-right: 54px;

}

.md-password-toggle {

  position: absolute;

  right: 6px;

  top: 5px;

  width: 40px;

  height: 40px;

  display: grid;

  place-items: center;

  border: none;

  border-radius: 8px;

  background: transparent;

  color: var(--md-muted);

}

.md-password-toggle:hover {

  color: var(--md-primary);

  background: #eff6ff;

}


/* BOUTON */

.md-login-button {

  width: 100%;

  min-height: 50px;

  margin-top: 4px;

  border: none;

  border-radius: 10px;

  background: var(--md-primary);

  color: white;

  font-weight: 750;

  font-size: 14px;

  transition: background .2s;

}

.md-login-button:hover {

  background: var(--md-primary-hover);

}

.md-login-button:disabled {

  cursor: wait;

  opacity: .65;

}

button:focus-visible {

  outline: 3px solid #93c5fd;

  outline-offset: 3px;

}


/* ERREURS */

.md-login-error {

  padding: 13px;

  margin: 0 0 16px;

  border: 1px solid #fecaca;

  border-radius: 9px;

  background: #fef2f2;

  color: #991b1b;

  font-size: 13px;

  line-height: 1.6;

}


/* SECURITE */

.md-security {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 8px;

  margin-top: 22px;

  color: var(--md-muted);

  font-size: 12px;

}

.md-security svg {

  color: var(--md-primary);

  flex-shrink: 0;

}


/* PIED DE PAGE */

.md-login-footer {

  margin-top: 25px;

  padding-top: 20px;

  border-top: 1px solid var(--md-border);

  text-align: center;

  color: var(--md-muted);

  font-size: 11px;

  line-height: 1.7;

}

.md-login-version {

  margin: 22px 0 0;

  text-align: center;

  font-size: 11px;

  color: #94a3b8;

}


/* MOBILE */

@media (max-width: 480px) {

  .md-login-page {

    padding: 20px 14px;

  }

  .md-login-card {

    padding: 24px;

    border-radius: 16px;

  }

  .md-login-intro h1 {

    font-size: 24px;

  }

  .md-field input {

    font-size: 16px;

  }

}

@media (max-width: 360px) {

  .md-login-card {

    padding: 20px;

  }

  .md-brand-text strong {

    font-size: 18px;

  }

  .md-login-intro h1 {

    font-size: 22px;

  }

}