/**
 * Logiciel Facture — Login split (inspiration Indy, couleurs LF)
 */

body.login_admin.lf-login-split {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: #F5F8FC !important;
  font-family: "Inter", system-ui, sans-serif;
}

body.login_admin.lf-login-split > *:not(.lf-login) {
  display: none !important;
}

.lf-login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* —— Panneau visuel —— */
.lf-login-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 100vh;
}

.lf-login-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.lf-login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(6, 36, 86, 0.88) 0%, rgba(6, 36, 86, 0.72) 45%, rgba(3, 99, 225, 0.55) 100%),
    radial-gradient(700px 320px at 10% 90%, rgba(3, 175, 196, 0.35), transparent 60%);
}

.lf-login-visual-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 48px 42px;
  gap: 18px;
}

.lf-login-brand-mark {
  position: absolute;
  top: 36px;
  left: 48px;
}

.lf-login-brand-mark img {
  max-height: 48px !important;
  max-width: 200px !important;
  filter: brightness(0) invert(1);
}

.lf-login-visual-tagline {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 420px;
}

.lf-login-visual-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lf-login-visual-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
}

.lf-login-visual-points i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(3, 175, 196, 0.25);
  color: #7DE8F3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.lf-login-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.lf-login-trust-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 140px;
}

.lf-login-trust-card strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.lf-login-trust-card span {
  font-size: 12px;
  opacity: 0.85;
}

/* —— Panneau formulaire —— */
.lf-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.lf-login-panel-inner {
  width: 100%;
  max-width: 420px;
}

.lf-login-logo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 18px;
}

.lf-login-logo-mobile img {
  max-height: 56px !important;
  max-width: 180px !important;
}

.lf-login-header {
  margin-bottom: 22px;
}

.lf-login-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: #062456;
  letter-spacing: -0.03em;
}

.lf-login-header > p {
  margin: 0 0 14px;
  color: #3D5A80;
  font-size: 15px;
  line-height: 1.45;
}

.login-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-badge-fr {
  background: rgba(3, 99, 225, 0.10);
  color: #0363E1;
}

.login-badge-pa {
  background: rgba(3, 175, 196, 0.12);
  color: #0A6F7C;
}

.lf-login-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.lf-login-form .form-group {
  margin-bottom: 14px;
}

.lf-login-form .control-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #062456;
}

.lf-login-input.form-control,
.lf-login-form .form-control {
  height: 50px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(6, 36, 86, 0.14) !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  box-shadow: none !important;
  background: #F7FAFD !important;
  color: #062456 !important;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.lf-login-input.form-control:focus,
.lf-login-form .form-control:focus {
  border-color: #0363E1 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(3, 99, 225, 0.12) !important;
}

.lf-login-password-wrap {
  position: relative;
}

.lf-login-password-wrap .form-control {
  padding-right: 48px !important;
}

.lf-login-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3D5A80;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lf-login-eye:hover {
  background: rgba(6, 36, 86, 0.06);
  color: #062456;
}

.lf-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}

.lf-login-forgot {
  font-size: 13px;
  font-weight: 600;
  color: #3D5A80 !important;
  text-decoration: none !important;
}

.lf-login-forgot:hover {
  color: #0363E1 !important;
}

.lf-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0363E1 0%, #03AFC4 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(3, 99, 225, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.lf-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(3, 99, 225, 0.34);
}

.lf-login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #9AA8BC;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.lf-login-or::before,
.lf-login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(6, 36, 86, 0.10);
}

.lf-login-or span {
  flex-shrink: 0;
}

/* Reassure */
.login-reassure {
  position: relative;
  font-size: 12px !important;
  line-height: 1.4 !important;
  padding: 10px 36px 10px 14px !important;
  margin-bottom: 16px !important;
  border-radius: 14px !important;
  background: rgba(3, 175, 196, 0.08) !important;
  border: 1px solid rgba(3, 175, 196, 0.18) !important;
  color: #0A6F7C !important;
}

.login-reassure-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #062456;
  opacity: 0.55;
  cursor: pointer;
}

.login-reassure-close:hover {
  opacity: 1;
  background: rgba(6, 36, 86, 0.08);
}

.login-reassure.is-hidden,
body.lf-login-notice-hidden .login-reassure {
  display: none !important;
}

/* Demo */
.lf-demo-access {
  margin-top: 0;
  text-align: center;
}

.lf-demo-access-label {
  margin: 0 0 10px !important;
  font-size: 13px;
  color: #51657F;
}

.lf-demo-access-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(3, 99, 225, 0.28) !important;
  background: #F0F6FF !important;
  color: #062456 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  text-align: center;
  line-height: 1.35;
}

.lf-demo-access-btn:hover,
.lf-demo-access-btn:focus {
  border-color: #0363E1 !important;
  background: #E8F1FF !important;
  outline: none;
  transform: translateY(-1px);
}

.lf-demo-access-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.lf-demo-access-title {
  font-size: 14px;
  font-weight: 750;
  color: #0363E1 !important;
}

.lf-demo-access-creds {
  font-size: 12px;
  color: #3D5270 !important;
}

.lf-demo-access-creds .lf-demo-sep {
  margin: 0 4px;
  opacity: 0.5;
}

.lf-demo-access-creds strong {
  font-weight: 700;
  color: #062456 !important;
}

/* Footer */
.lf-login-footer {
  margin-top: 28px;
  text-align: center;
}

.fr-flag-bar {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #002395 0 33%, #fff 33% 66%, #ED2939 66%);
  box-shadow: 0 0 0 1px rgba(6, 36, 86, 0.08);
}

.lf-login-footer small {
  display: block;
  font-size: 12px;
  color: #3D5A80;
}

.lf-login-signup {
  margin: 12px 0 0;
  font-size: 14px;
  color: #3D5A80;
}

.lf-login-signup a {
  color: #0363E1 !important;
  font-weight: 750;
  text-decoration: none !important;
}

.lf-login-signup a:hover {
  text-decoration: underline !important;
}

/* Checkbox polish */
.lf-login-row .checkbox label {
  font-size: 13px;
  color: #3D5A80;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .lf-login {
    grid-template-columns: 1fr;
  }

  .lf-login-visual {
    display: none;
  }

  .lf-login-logo-mobile {
    display: block;
  }

  .lf-login-panel {
    min-height: 100vh;
    padding: 28px 18px 40px;
    background:
      radial-gradient(600px 240px at 100% 0%, rgba(3, 175, 196, 0.10), transparent 55%),
      #fff;
  }

  .lf-login-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .lf-login-header h1 {
    font-size: 24px;
  }

  .lf-login-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
