/* ===========================================================================
   BP Analytics — page de connexion (refonte Claude Design, split-screen)
   =========================================================================== */
:root {
  --bp-side: #04323F;
  --bp-teal: #0E8E8A;
  --bp-teal-strong: #0B7A77;
  --bp-teal-bright: #2FD6C0;
  --bp-bg: #EEF4F5;
  --bp-ink: #08323D;
  --bp-ink-2: #23454D;
  --bp-muted: #5E7C83;
  --bp-faint: #9FB3B7;
  --bp-border: #DCE6E7;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--bp-ink); background: var(--bp-bg); }
input::placeholder { color: #A9BDC0; }

.lg { display: flex; min-height: 100vh; }

/* ---- Panneau gauche (hero) --------------------------------------------- */
.lg-aside {
  flex: 0 0 46%; background: var(--bp-side); color: #CFE6E6;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px 52px; position: relative; overflow: hidden;
}
.lg-aside > * { position: relative; }
.lg-aside::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(47,214,192,0.10) 1px, transparent 0);
  background-size: 26px 26px;
}
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-mark { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: contain; }
.lg-brand b { font: 700 17px/1.1 Ubuntu, sans-serif; color: #fff; display: block; }
.lg-brand span { font: 500 12px/1 Lato; color: var(--bp-teal-bright); letter-spacing: .18em; text-transform: uppercase; }

.lg-hero { max-width: 420px; }
.lg-hero h1 { margin: 0; font: 700 30px/1.25 Ubuntu, sans-serif; color: #fff; }
.lg-hero p { margin: 16px 0 0; font: 400 15px/1.6 Lato; color: #9FC0C2; }
.lg-stats { display: flex; gap: 26px; margin-top: 30px; }
.lg-stats b { display: block; font: 700 24px Ubuntu, sans-serif; color: var(--bp-teal-bright); }
.lg-stats span { font: 400 12.5px Lato; color: #8FB1B3; }

.lg-status { display: flex; align-items: center; gap: 8px; font: 400 12.5px Lato; color: #7FA6A8; }
.lg-status .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lg-status .dot--ok { background: #32BA55; box-shadow: 0 0 0 3px rgba(50,186,85,0.18); }
.lg-status .dot--warn { background: #C98A10; box-shadow: 0 0 0 3px rgba(201,138,16,0.18); }

/* ---- Panneau droit (formulaire) ---------------------------------------- */
.lg-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.lg-card { width: 100%; max-width: 388px; }
.lg-card h2 { margin: 0; font: 700 24px Ubuntu, sans-serif; color: var(--bp-ink); }
.lg-card .sub { margin: 7px 0 28px; font: 400 14px Lato; color: var(--bp-muted); }

.lg-error { display: flex; gap: 10px; align-items: flex-start; background: #FBEAE9; border: 1px solid #EEB6B2; border-radius: 10px; padding: 11px 13px; margin-bottom: 18px; }
.lg-error i { color: #C9352D; flex: none; width: 18px; height: 18px; }
.lg-error span { font: 600 12.5px Lato; color: #9E2A23; }

.lg-label { display: block; font: 600 12.5px Lato; color: var(--bp-ink-2); margin-bottom: 7px; }
.lg-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--bp-border); background: #fff; border-radius: 9px; padding: 0 13px; margin-bottom: 17px; }
.lg-field i { color: var(--bp-faint); width: 18px; height: 18px; flex: none; }
.lg-field input { flex: 1; border: none; outline: none; background: transparent; font: 400 14px Lato; color: var(--bp-ink); padding: 12px 0; }
.lg-field:focus-within { border-color: var(--bp-teal); }
.lg-field.has-error { border-color: #EEB6B2; }
.lg-eye { border: none; background: transparent; cursor: pointer; color: #8AA2A8; display: flex; padding: 4px; }
.lg-eye i { color: #8AA2A8; }

.lg-pwrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.lg-forgot { font: 600 12px Lato; color: var(--bp-teal); text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

.lg-remember { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font: 400 13px Lato; color: var(--bp-muted); cursor: pointer; user-select: none; }
.lg-switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #C6D6D8; position: relative; cursor: pointer; flex: none; transition: background .18s ease; margin: 0; }
.lg-switch:checked { background: var(--bp-teal); }
.lg-switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: left .18s ease; }
.lg-switch:checked::before { left: 18px; }

.lg-submit { width: 100%; cursor: pointer; font: 700 14.5px Lato; color: #fff; background: var(--bp-teal); border: none; border-radius: 9px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.lg-submit:hover { background: var(--bp-teal-strong); }

.lg-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.lg-divider .line { flex: 1; height: 1px; background: #E1EAEB; }
.lg-divider span { font: 400 11.5px Lato; color: var(--bp-faint); }

.lg-sso { width: 100%; font: 700 13.5px Lato; color: #0B5563; background: #fff; border: 1px solid var(--bp-border); border-radius: 9px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.lg-sso:hover:not(:disabled) { background: #F3F8F9; }
.lg-sso:disabled { opacity: 0.55; cursor: not-allowed; }
.lg-sso i { width: 18px; height: 18px; }
.lg-sso .soon { font: 600 10.5px Lato; color: var(--bp-faint); }

.lg-foot { margin: 26px 0 0; text-align: center; font: 400 12px Lato; color: var(--bp-faint); }

/* ---- Stepper & écrans reset -------------------------------------------- */
.lg-steps { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.lg-step { display: flex; align-items: center; gap: 13px; }
.lg-step .dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font: 700 13px Ubuntu; border: 1.5px solid; }
.lg-step .dot i, .lg-step .dot svg { width: 15px; height: 15px; }
.lg-step.done .dot { background: var(--bp-teal-bright); color: #04323F; border-color: var(--bp-teal-bright); }
.lg-step.active .dot { background: rgba(47,214,192,0.18); color: var(--bp-teal-bright); border-color: var(--bp-teal-bright); }
.lg-step.idle .dot { background: transparent; color: #6E9092; border-color: #3A6168; }
.lg-step .lbl { font: 600 14px Lato; }
.lg-step.done .lbl, .lg-step.active .lbl { color: #EAFBF8; }
.lg-step.idle .lbl { color: #7FA6A8; }
.lg-status svg { width: 15px; height: 15px; }

.lg-back { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px Lato; color: var(--bp-teal); text-decoration: none; margin-bottom: 22px; }
.lg-back i, .lg-back svg { width: 15px; height: 15px; }
.lg-back:hover { text-decoration: underline; }

.lg-iconbox { width: 54px; height: 54px; border-radius: 13px; background: #E3F4F2; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.lg-iconbox i, .lg-iconbox svg { color: var(--bp-teal); width: 26px; height: 26px; }
.lg-success { width: 58px; height: 58px; border-radius: 50%; background: #E9F6EE; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.lg-success i, .lg-success svg { color: #1E9E54; width: 28px; height: 28px; }

.lg-note { background: #F4F9F9; border: 1px solid #E1ECEC; border-radius: 10px; padding: 13px 15px; display: flex; gap: 11px; align-items: flex-start; }
.lg-note i, .lg-note svg { color: var(--bp-teal); flex: none; width: 17px; height: 17px; }
.lg-note span { font: 400 12.5px/1.55 Lato; color: #3C5A61; }

.lg-strength { display: flex; gap: 6px; margin-bottom: 7px; }
.lg-strength div { flex: 1; height: 5px; border-radius: 3px; background: #E7EFF0; transition: background .18s ease; }
.lg-strlabel { font: 600 11.5px Lato; margin-bottom: 18px; }
.lg-fielderr { font: 600 11.5px Lato; color: #C9352D; margin-bottom: 14px; }

@media (max-width: 860px) {
  .lg-aside { display: none; }
}
