/* The sign-in page (views/auth/login.php): the company's world on the left, a clean form on the right.
   --brand is the company's brand colour (Settings), the two others are mixed from it. */
:root {
  --brand: #2563eb;
  --brand2: color-mix(in srgb, var(--brand) 55%, #7c3aed);
  --brand3: color-mix(in srgb, var(--brand) 45%, #06b6d4);
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.lx {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased;
}
.lx-split { min-height: 100%; display: grid; grid-template-columns: 1.25fr 1fr; }

/* Left: moving colour in the brand's tones, a field of dots, slow rings; or the company's picture. */
.lx-show {
  position: relative; overflow: hidden; color: #fff; padding: 3rem 3.5rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background:
    radial-gradient(900px 600px at 15% 10%, var(--brand) 0%, transparent 60%),
    radial-gradient(800px 700px at 90% 80%, var(--brand2) 0%, transparent 60%),
    radial-gradient(600px 500px at 70% 20%, var(--brand3) 0%, transparent 55%), #0b1023;
  background-size: 140% 140%; animation: lx-flow 18s ease-in-out infinite alternate;
}
@keyframes lx-flow { to { background-position: 30% 40%, 70% 60%, 40% 70%, 0 0; } }
.lx-show::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.lx-show.has-picture { background: #0b1023 center / cover no-repeat; animation: none; }
.lx-show.has-picture::before {
  /* the picture darkened where the words are */
  background: linear-gradient(180deg, rgba(2, 6, 23, .55) 0%, rgba(2, 6, 23, .05) 30%, rgba(2, 6, 23, .15) 55%, rgba(2, 6, 23, .85) 100%);
  -webkit-mask-image: none; mask-image: none;
}
.lx-rings {
  position: absolute; right: -180px; bottom: -180px; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); pointer-events: none;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .04), 0 0 0 140px rgba(255, 255, 255, .03), 0 0 0 210px rgba(255, 255, 255, .02);
  animation: lx-spin 60s linear infinite;
}
@keyframes lx-spin { to { transform: rotate(360deg); } }
.lx-brand { position: relative; display: flex; align-items: center; gap: .9rem; font-weight: 700; font-size: 1.1rem; }
.lx-mark {
  min-width: 48px; height: 48px; padding: 0 6px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 1.4rem;
}
.lx-mark img { max-height: 36px; max-width: 120px; object-fit: contain; display: block; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 3px 6px; }
.lx-big { position: relative; max-width: 640px; }
.lx-big h2 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1rem; font-weight: 800; }
.lx-big h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff, #c7d2fe, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lx-big p { font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 0 0 1.8rem; max-width: 520px; }
.lx-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.lx-chips span {
  font-size: .85rem; padding: .5rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lx-chips i { margin-right: .4rem; }
.lx-now { position: relative; display: flex; align-items: flex-end; gap: 1.2rem; }
.lx-now b { font-size: 3.2rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lx-now span { display: inline-block; color: rgba(255, 255, 255, .78); padding-bottom: .4rem; }
.lx-now span::first-letter { text-transform: uppercase; } /* Lundi 9 novembre: only the first letter */

/* Right: a calm, roomy form. */
.lx-form { position: relative; display: grid; place-items: center; padding: 2.5rem 1.5rem 4rem; background: #fff; }
.lx-box { width: 100%; max-width: 380px; animation: lx-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lx-in { from { opacity: 0; transform: translateX(14px); } }
.lx-box h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 .35rem; font-weight: 800; }
.lx-lead { color: var(--muted); margin: 0 0 2rem; }
.lx-f { position: relative; margin-bottom: 1rem; }
.lx-f input {
  width: 100%; height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: #f8fafc;
  font-size: 1rem; padding: 1.25rem 3rem .35rem 3rem; outline: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.lx-f label { position: absolute; left: 3rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; transition: all .18s; }
.lx-i { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.1rem; transition: color .2s; }
.lx-f input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.lx-f input:focus ~ .lx-i { color: var(--brand); }
.lx-f input:focus + label, .lx-f input:not(:placeholder-shown) + label {
  top: 14px; transform: none; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600;
}
/* A field the browser filled by itself (saved logins) floats its label too: Chrome shows the value before anyone
   touches the page, without :placeholder-shown changing. Separate rules: an unknown pseudo-class would drop the rest. */
.lx-f input:-webkit-autofill + label { top: 14px; transform: none; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.lx-f input:autofill + label { top: 14px; transform: none; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.lx-f.has-value label { top: 14px; transform: none; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
/* The browser's saved logins keep the field's own colours (no grey or yellow box). */
.lx-f input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s; }
.lx-eye { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #94a3b8; font-size: 1.15rem; padding: .3rem; cursor: pointer; }
.lx-eye:hover { color: var(--ink); }
.lx-caps { font-size: .82rem; color: #b45309; margin: -.4rem 0 .8rem .2rem; }
.lx-row { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); margin: .3rem 0 1.5rem; }
.lx-row label { display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.lx-row input { accent-color: var(--brand); width: 16px; height: 16px; }
.lx-forgot { background: none; border: 0; padding: 0; color: var(--brand); font-size: .86rem; cursor: pointer; }
.lx-note { font-size: .84rem; color: var(--muted); background: #f1f5f9; border-radius: 10px; padding: .6rem .8rem; margin: -.8rem 0 1.2rem; }
.lx-go {
  width: 100%; height: 56px; border: 0; border-radius: 14px; color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(110deg, var(--brand), var(--brand2)); box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: transform .15s, box-shadow .2s;
}
.lx-go:hover { transform: translateY(-1px); box-shadow: 0 18px 40px color-mix(in srgb, var(--brand2) 40%, transparent); }
.lx-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.lx-go i { transition: transform .2s; }
.lx-go:hover i { transform: translateX(4px); }
.lx-go.is-busy { opacity: .85; pointer-events: none; }
.lx-go.is-busy i::before { content: "\F130"; display: inline-block; animation: lx-spin 1s linear infinite; } /* bi-arrow-repeat */
.lx-langs { display: flex; gap: .5rem; margin-top: 1.6rem; }
.lx-langs a { font-size: .82rem; color: #475569; text-decoration: none; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); }
.lx-langs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lx-copy { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: #94a3b8; }

/* Messages across the top. */
.lx-band {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.25rem; font-size: .95rem; background: #f8d7da; color: #842029; box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.lx-band--success { background: #d1e7dd; color: #0f5132; }
.lx-band--warning { background: #fff3cd; color: #664d03; }
.lx-band--info { background: #cff4fc; color: #055160; }
.lx-band button { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: inherit; opacity: .7; cursor: pointer; }

/* Tablets and phones: the company's world as a short banner above the form. */
@media (max-width: 991.98px) {
  .lx-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lx-show { padding: 1.4rem 1.25rem 1.5rem; gap: 1rem; justify-content: flex-start; }
  .lx-big h2 { font-size: 1.7rem; margin-bottom: .6rem; }
  .lx-big p, .lx-now, .lx-rings { display: none; }
  .lx-chips span { font-size: .78rem; padding: .35rem .75rem; }
  .lx-form { padding: 2rem 16px 4.5rem; align-items: start; }
  .lx-box h1 { font-size: 1.7rem; }
}
@media (max-width: 420px) { .lx-chips { display: none; } }
@media (prefers-reduced-motion: reduce) { .lx-show, .lx-rings, .lx-box { animation: none !important; } }
