/* Pages d'authentification de l'espace PME */
:root { --deep: #123C32; --green: #21725D; --mint: #E3F1EB; --gold: #D6A84B; --red: #C44747; --text: #17352D; --muted: #698078; --line: #D5E5DE; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Manrope, system-ui, sans-serif; color: var(--text); background: #F2F7F4; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.brand-panel { position: relative; overflow: hidden; background: linear-gradient(150deg, #123C32 0%, #1B5A49 60%, #21725D 100%); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.brand-panel::before { width: 420px; height: 420px; right: -160px; top: -170px; background: rgba(214, 168, 75, .16); }
.brand-panel::after { width: 260px; height: 260px; left: -110px; bottom: -90px; background: rgba(255, 255, 255, .06); }
.brand-panel > * { position: relative; z-index: 1; }
.logo-box { display: inline-flex; align-self: flex-start; background: #fff; border-radius: 16px; padding: 10px 16px; }
.logo-box img { height: 48px; width: auto; display: block; }
.eyebrow { margin-top: auto; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--gold); }
.brand-panel h1 { margin: 10px 0 12px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; max-width: 560px; }
.brand-panel .lead { margin: 0; max-width: 520px; color: #CFE1DB; font-size: 16px; line-height: 1.6; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 580px; }
.features li { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.features i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(214, 168, 75, .18); color: var(--gold); font-size: 18px; }
.features strong { display: block; font-size: 14px; }
.features span { display: block; font-size: 12.5px; color: #A9C9BE; margin-top: 2px; }
.sync-note { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #CFE1DB; }
.sync-note i { color: var(--gold); font-size: 18px; }
.brand-foot { margin-top: auto; padding-top: 30px; font-size: 12.5px; color: #A9C9BE; }

.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.form-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--green); }
.form-wrap h2 { margin: 22px 0 6px; font-size: 28px; color: var(--deep); letter-spacing: -.01em; }
.form-wrap .sub { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.alert i { font-size: 18px; flex: none; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #FDECEE; color: #8E2B2B; border: 1px solid #F2C9C9; }
.alert-ok { background: var(--mint); color: var(--deep); border: 1px solid #C7E1D6; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
label { font-size: 13.5px; font-weight: 800; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.control { position: relative; }
.control > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.control input { width: 100%; min-height: 52px; padding: 12px 46px 12px 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; color: var(--text); outline: 0; transition: border-color .15s, box-shadow .15s; }
.control input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(33, 114, 93, .14); }
.control input[aria-invalid="true"] { border-color: var(--red); }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.toggle-pw:hover { background: var(--mint); color: var(--green); }
.remember { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--green); }
.submit { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font: inherit; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .15s; }
.submit:hover { background: #1B634F; }
.submit:disabled { opacity: .7; cursor: wait; }
.link-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--red); }
.help { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.help strong { color: var(--text); }
.help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; font-size: 13px; font-weight: 800; text-decoration: none; background: var(--mint); color: var(--green); }
.chip.wa { background: #E7F8EE; color: #13824A; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .brand-panel { padding: 22px 20px 26px; }
  .brand-panel .eyebrow { margin-top: 22px; }
  .brand-panel h1 { font-size: 26px; }
  .brand-panel .lead { font-size: 14.5px; }
  .features, .sync-note, .brand-foot { display: none; }
  .logo-box img { height: 38px; }
  .form-panel { padding: 26px 16px 36px; justify-content: flex-start; }
  .form-wrap h2 { margin-top: 8px; font-size: 24px; }
}
