:root {
  --login-primary: #0f766e;
  --login-primary-dark: #115e59;
  --login-navy: #172033;
  --login-text: #1e293b;
  --login-muted: #64748b;
  --login-border: #dbe3ee;
}

html, body.login-page, .login-page #app, .login-page #app > .row {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
body.login-page {
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--login-text);
  background: #f8fafc;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.login-page #app { padding: 0; }
.login-page #app > .row { height: 100vh; min-height: 0; margin: 0; }
.login-visual {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 0;
  padding: 54px 64px;
  overflow: hidden;
  background-color: var(--login-navy);
  background-blend-mode: soft-light;
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(15, 118, 110, .78));
}
.login-visual::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(94, 234, 212, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(94, 234, 212, .05), 0 0 0 140px rgba(94, 234, 212, .035);
}
.login-visual > .row { position: relative; z-index: 1; width: 100%; margin: 0; }
.login-visual .marge-gauche-20 { max-width: 650px; margin: auto 0 !important; }
.login-visual .logo { width: auto; height: 76px; margin-bottom: 28px; object-fit: contain; }
.login-visual hr { display: none; }
.login-eyebrow {
  margin: 0 0 12px 15px;
  color: #5eead4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}
.login-visual h2 { margin: 0; padding-right: 0; }
.login-visual h2 strong { color: #fff; font-size: 34px !important; line-height: 1.25; }
.login-visual-copy { max-width: 570px; margin: 20px 0 0 15px; color: #cbd5e1; font-size: 16px; line-height: 1.65; }
.login-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0 15px; }
.login-benefits span { padding: 8px 12px; color: #e2e8f0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 12px; }
.login-benefits i { margin-right: 5px; color: #5eead4; }
.login-panel {
  display: flex;
  align-items: center;
  height: 100vh;
  min-height: 0;
  padding: 24px 7% !important;
  background: #f8fafc;
}
.login-panel #header,
.login-panel #header > .row,
.login-panel #header .col-md-10 { width: 100%; }
.login-panel #header > .row { margin: 0; }
.login-panel #header .col-md-1 { display: none; }
.login-panel h6 { margin: 0; }
.login-panel h6 .form-group { margin-bottom: 0; }
.login-panel h6 .logo { width: auto; height: 56px; object-fit: contain; }
.login-identity-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 2px; }
.login-coat-of-arms { width: auto; height: 82px; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 5px 8px rgba(15,23,42,.10)); }
.login-chu-logo { width: 104px; height: 54px; object-fit: contain; }
.login-logo-separator { width: 1px; height: 54px; background: var(--login-border); }
.login-product-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.login-product-identity small { color: var(--login-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.login-product-identity .logo { margin: 0; }
.login-panel h6 hr { width: 44px; margin: 14px auto; border-top: 3px solid var(--login-primary); border-radius: 999px; }
.login-welcome { margin: 0 0 5px; color: var(--login-primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.login-title { margin-bottom: 8px !important; color: var(--login-text); font-size: 25px; font-weight: 800 !important; }
.login-subtitle { margin: 0 0 18px; color: var(--login-muted); font-size: 14px; text-align: center; }
.login-deployment-badge { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 8px 14px; border: 1px solid #bfdbfe; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f8fafc); box-shadow: 0 6px 16px rgba(37,99,235,.07); }
.login-deployment-badge img { width: 72px; height: 38px; object-fit: contain; }
.login-deployment-badge > img { display: none; }
.login-deployment-badge span, .login-deployment-badge small, .login-deployment-badge strong { display: block; }
.login-deployment-badge span { padding-left: 0; border-left: 0; line-height: 1.15; text-align: center; }
.login-deployment-badge small { margin-bottom: 3px; color: #64748b; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.login-deployment-badge strong { color: #0757a6; font-size: 13px; font-weight: 850; }
.login-card { margin: 0 !important; padding: 20px 22px !important; border: 1px solid var(--login-border); border-radius: 14px !important; box-shadow: 0 16px 40px rgba(15, 23, 42, .08) !important; }
.login-card .form-group { margin-bottom: 14px; }
.login-card .form-group:has(.form-check:empty) { display: none; }
.login-card label { padding: 0 15px 7px; color: #334155; font-size: 13px; font-weight: 700; }
.login-card .form-control { height: 46px; border: 1px solid #cbd5e1; border-radius: 9px; box-shadow: none; }
.login-card .form-control:focus { border-color: var(--login-primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.login-password-wrap { position: relative; }
.login-password-wrap .form-control { padding-right: 46px; }
.login-password-toggle { position: absolute; top: 50%; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 7px; background: transparent; color: var(--login-muted); }
.login-password-toggle:hover,
.login-password-toggle:focus { background: #f1f5f9; color: var(--login-primary); outline: none; }
.login-card button.form-control { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--login-primary); border-color: var(--login-primary); font-size: 14px; font-weight: 750; }
.login-card button.form-control:hover { background: var(--login-primary-dark); border-color: var(--login-primary-dark); }
.login-card .btn-link { color: var(--login-primary) !important; font-size: 13px; font-weight: 650; }
.login-card .invalid-feedback { display: block; margin-top: 5px; color: #dc2626; font-size: 12px; }

@media (max-width: 991px) {
  .login-visual { display: none !important; }
  .login-panel {
    width: 100%;
    height: 100vh;
    min-height: 0;
    padding: 20px max(18px, 12%) !important;
  }
  .login-panel #header { display: flex; align-items: center; justify-content: center; }
  .login-panel #header .col-md-10 { max-width: 560px; }
}

@media (max-width: 600px) {
  .login-panel { padding: 14px 18px !important; }
  .login-panel h6 .logo { height: 48px; }
  .login-coat-of-arms { height: 70px; }
  .login-chu-logo { width: 86px; height: 45px; }
  .login-title { font-size: 22px; }
  .login-card { padding: 17px 12px !important; }
}

@media (max-height: 700px) {
  .login-panel h6 .logo { height: 44px; }
  .login-identity-logos { gap: 11px; }
  .login-coat-of-arms { height: 62px; }
  .login-chu-logo { width: 78px; height: 40px; }
  .login-logo-separator { height: 44px; }
  .login-product-identity small { font-size: 9px; }
  .login-panel h6 hr { margin: 9px auto; }
  .login-title { margin-bottom: 4px !important; font-size: 21px; }
  .login-subtitle { margin-bottom: 10px; }
  .login-deployment-badge { margin-bottom: 10px; padding: 6px 11px; }
  .login-deployment-badge img { width: 62px; height: 32px; }
  .login-card { padding-top: 14px !important; padding-bottom: 14px !important; }
  .login-card .form-group { margin-bottom: 10px; }
  .login-card .form-control { height: 42px; }
}
