:root {
  --vert: #2563eb;
  --vert-fonce: #2563eb;
  --bleu-roi: #2563eb;
  --bleu-roi-fonce: #1d4ed8;

  --fuchsia: #e76f51;
  --champ-focus-bg: rgba(37, 99, 235, 0.045);

  --fond: transparent;
  --blanc: #ffffff;

  --texte: #202832;
  --texte-clair: #66717d;

  --bordure: #d9dfe3;

  --ombre: 0 15px 45px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;

  background: var(--fond);

  color: var(--texte);
}

/* =========================================================
   PAGE
========================================================= */

.login-page {
  min-height: 100vh;

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

  padding: 30px;
}

/* =========================================================
   CARTE
========================================================= */

.login-card {
  width: 100%;
  max-width: 440px;

  background: var(--blanc);

  border-radius: 14px;

  padding: 38px 42px 30px;

  box-shadow: var(--ombre);

  border-top: 5px solid var(--vert);
}

/* =========================================================
   LOGO
========================================================= */

.login-brand {
  text-align: center;

  margin-bottom: 34px;
}

.logo {
  font-size: 44px;

  font-weight: 700;

  letter-spacing: -2px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.slogan {
  color: var(--texte-clair);

  font-size: 14px;

  margin-top: 4px;
}

/* =========================================================
   TITRE
========================================================= */

.login-title {
  text-align: center;

  font-size: 26px;

  color: var(--vert-fonce);

  font-weight: 700;

  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;

  color: var(--texte-clair);

  font-size: 14px;

  margin-bottom: 30px;
}

/* =========================================================
   MESSAGE ERREUR
========================================================= */

.alert-error {
  background: #f0f2f8;

  border-left: 4px solid var(--fuchsia);

  color: #1d4ed8;

  border-radius: 5px;

  padding: 12px 14px;

  font-size: 14px;

  margin-bottom: 22px;
}

.alert-error i {
  margin-right: 7px;
}

/* =========================================================
   FORMULAIRE
========================================================= */

.form-group {
  margin-bottom: 21px;
}

.form-group label {
  display: block;

  font-size: 13px;

  font-weight: 700;

  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > i {
  position: absolute;

  top: 50%;
  left: 15px;

  transform: translateY(-50%);

  color: var(--vert-fonce);

  font-size: 15px;
}

.input-wrapper input {
  width: 100%;

  height: 50px;

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

  border-radius: 7px;

  padding: 0 46px 0 44px;

  font-size: 15px;

  outline: none;

  background: white;

  transition: 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--vert);

  background: var(--champ-focus-bg);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   AFFICHER MOT DE PASSE
========================================================= */

.show-password {
  position: absolute;

  right: 10px;
  top: 50%;

  transform: translateY(-50%);

  width: 34px;
  height: 34px;

  border: none;

  background: transparent;

  color: #777;

  cursor: pointer;

  font-size: 15px;
}

.show-password:hover {
  color: var(--fuchsia);
}

/* =========================================================
   OPTIONS
========================================================= */

.login-options {
  display: flex;

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

  gap: 15px;

  margin-top: -2px;
  margin-bottom: 26px;

  font-size: 13px;
}

.remember {
  display: flex;

  align-items: center;

  gap: 7px;

  color: var(--texte-clair);

  cursor: pointer;
}

.remember input {
  accent-color: var(--vert);
}

.login-options a {
  color: var(--fuchsia);

  text-decoration: none;

  font-weight: 600;
}

.login-options a:hover {
  text-decoration: underline;
}

/* =========================================================
   BOUTON CONNEXION
========================================================= */

.btn-login {
  width: 100%;

  height: 52px;

  border: none;

  border-radius: 7px;

  background: var(--bleu-roi);

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s;
}

.btn-login i {
  margin-right: 8px;
}

.btn-login:hover {
  background: var(--bleu-roi-fonce);
}

/* =========================================================
   BAS
========================================================= */

.login-footer {
  text-align: center;

  margin-top: 29px;

  padding-top: 20px;

  border-top: 1px solid #edf0f2;

  font-size: 12px;

  color: #8a939c;
}

.login-footer span {
  margin: 0 6px;

  color: var(--fuchsia);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 520px) {
  .login-page {
    padding: 18px;
  }

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

  .logo {
    font-size: 37px;
  }

  .login-options {
    flex-direction: column;

    align-items: flex-start;
  }
}

/* Icones de connexion, sauf le message d erreur. */
.input-wrapper :is(.fa-solid, .fa-regular) { color: var(--bleu-roi); }


/* Icones bleues des boutons clairs et des actions transparentes. */
body :is(button.secondary, a.secondary, button.neutral, a.neutral, .btn-secondary, .btn-outline, .show-password, .chapter:not(.active), .option:not(.active), .open-tab:not(.active)) :is(i, svg),
body main table :is(.table-actions, .budget-row-actions) :is(a, button):not(.danger):not(.budget-delete-line) i.fa-solid {
  color: #0083ff !important;
  filter: none !important;
}
