/* ============================================================================
 * login.css
 * ----------------------------------------------------------------------------
 * CSS de la page de connexion ERP (standalone, hors layout/base.html).
 * Externalisé depuis le bloc <style> inline historique de layout/login.html
 * (piège RainTPL P11 — règle ZÉRO BUG appliquée).
 *
 * Inclus par :
 *   - Intra/templates/layout/login.html
 * ============================================================================
 */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px; -webkit-font-smoothing: antialiased;
  display: flex;
}

/* ══════════════════════════════════════
   GAUCHE — fond blanc, logo seul
══════════════════════════════════════ */
.lp-left {
  width: 420px; flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e8e4dc;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
/* Fine ligne orange en bas */
.lp-left::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8581a, #c03d1e 60%, transparent);
}

/* Logo stacked — affiché sans aucun filtre CSS */
.lp-logo {
  width: 220px;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════
   DROITE — fond crème, formulaire
══════════════════════════════════════ */
.lp-right {
  flex: 1; background: #f7f3ee;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
}
/* Fine ligne orange en haut */
.lp-right::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e8581a 50%, #c03d1e);
}

.lp-form-wrap { width: 100%; max-width: 340px; }

.lp-project {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #e8581a; margin-bottom: .5rem;
}
.lp-hello {
  font-size: 1.55rem; font-weight: 800;
  color: #111827; letter-spacing: -.03em;
  margin-bottom: .25rem; line-height: 1.2;
}
.lp-hello-sub {
  font-size: .82rem; color: #9ca3af;
  margin-bottom: 2rem;
}

.form-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: #374151; margin-bottom: .35rem; display: block;
}
.lp-input {
  width: 100%; padding: .65rem .9rem;
  background: #ffffff; border: 1.5px solid #e5e1d8;
  border-radius: .45rem; font-size: .875rem;
  color: #111827; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lp-input:focus {
  border-color: rgba(232,88,26,.4);
  box-shadow: 0 0 0 3px rgba(232,88,26,.09);
}
.lp-input::placeholder { color: #b0aaa0; }

.lp-btn {
  width: 100%; padding: .72rem 1rem;
  background: #e8581a; border: none; border-radius: .45rem;
  color: #fff; font-size: .9rem; font-weight: 700;
  font-family: inherit; cursor: pointer; margin-top: .5rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 2px 10px rgba(232,88,26,.25);
}
.lp-btn:hover {
  background: #c4481a;
  box-shadow: 0 4px 16px rgba(232,88,26,.35);
  transform: translateY(-1px);
}
.lp-btn:active { transform: translateY(0); box-shadow: none; }

.lp-alert {
  background: rgba(192,61,30,.07); color: #7a2810;
  border: none; border-radius: .4rem;
  padding: .6rem .85rem; font-size: .82rem; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.lp-footer {
  margin-top: 1.75rem; padding-top: 1.1rem;
  border-top: 1px solid #e5e1d8;
  text-align: center; font-size: .68rem; color: #9ca3af;
}
.lp-footer a { color: #1e3464; text-decoration: none; }
.lp-footer a:hover { color: #e8581a; text-decoration: underline; }

@media (max-width: 700px) {
  body { flex-direction: column; }
  .lp-left { width: 100%; min-height: 260px; padding: 2.5rem 1.5rem; }
  .lp-right { padding: 2rem 1.25rem; }
  .lp-contact { display: none; }
}
