/* Écran de connexion IBS – charte groupeibs.ma */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: #1F2937; background: #0F1E3A; }
a { color: #1A5EA8; text-decoration: none; }
a:hover { color: #0F1E3A; text-decoration: underline; }

.ibsl {
    min-height: 100vh; display: flex; flex-direction: column;
    background-color: #0F1E3A;
    background-image: linear-gradient(90deg, rgba(15,30,58,.94) 0%, rgba(15,30,58,.80) 45%, rgba(15,30,58,.45) 100%),
                      url("/ibs_ma_login/static/src/img/hero.jpg");
    background-size: cover; background-position: center;
}
.ibsl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 56px; }
.ibsl-logo-white { height: 44px; width: auto; }
.ibsl-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; align-self: flex-start;
    border: 1px solid rgba(74,159,212,.5); background: rgba(74,159,212,.12); color: #CFE6F6; font-size: 13px;
}
.ibsl-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4A9FD4; }

.ibsl-main { flex: 1; display: flex; align-items: center; padding: 16px 56px 48px; }
.ibsl-wrap {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 48px;
}
.ibsl-pitch { flex: 1 1 460px; max-width: 600px; display: flex; flex-direction: column; gap: 22px; color: #fff; }
.ibsl-pitch h2 { margin: 0; font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.01em; }
.ibsl-accent { color: #4A9FD4; }
.ibsl-lead { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 540px; }
.ibsl-lead strong { color: #fff; }
.ibsl-kpis { display: flex; gap: 36px; }
.ibsl-kpis div { display: flex; flex-direction: column; gap: 6px; }
.ibsl-kpi { font-family: "Syne", sans-serif; font-weight: 800; font-size: 32px; line-height: 1; }
.ibsl-kpi-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #CFE6F6; }
.ibsl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ibsl-tags span { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }

.ibsl-card {
    width: 100%; max-width: 430px; background: #fff; border-radius: 10px; padding: 34px 34px 26px;
    box-shadow: 0 18px 48px rgba(15,30,58,.35); display: flex; flex-direction: column; gap: 18px;
}
.ibsl-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ibsl-logo { height: 46px; width: auto; }
.ibsl-env { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #E8F1FA; color: #1A5EA8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ibsl-env i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ibsl-env-test { background: #FDF5E9; color: #9A5B0F; }
.ibsl-card h1 { margin: 0 0 6px; font-family: "Syne", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.01em; color: #0F1E3A; }
.ibsl-sub { margin: 0; font-size: 14px; color: #6B7280; }

.ibsl-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ibsl-field { display: flex; flex-direction: column; gap: 6px; }
.ibsl-field label { font-size: 13px; font-weight: 600; }
.ibsl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ibsl-row a { font-size: 12px; font-weight: 600; }
.ibsl-field input {
    width: 100%; height: 46px; border: 1px solid #D5DCE6; border-radius: 6px; padding: 0 12px;
    font: inherit; font-size: 15px; color: #1F2937; background: #fff;
}
.ibsl-field input:focus { outline: 2px solid #4A9FD4; outline-offset: 1px; border-color: #1A5EA8; }
.ibsl-pass { position: relative; }
.ibsl-pass input { padding-right: 46px; }
.ibsl-eye {
    position: absolute; right: 2px; top: 2px; width: 42px; height: 42px; border: 0; background: transparent;
    color: #6B7280; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px;
}
.ibsl-btn {
    height: 48px; border: 0; border-radius: 6px; background: #1A5EA8; color: #fff; font: inherit;
    font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.ibsl-btn:hover { background: #154d8a; }
.ibsl-alert { margin: 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; background: #E8F1FA; color: #0F1E3A; }
.ibsl-alert-error { background: #FDECEA; color: #9B1C16; }
.ibsl-secure { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #E5EAF1; font-size: 12px; color: #6B7280; }

.ibsl-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 56px;
    font-size: 12px; color: rgba(255,255,255,.75); background: #0F1E3A;
}
.ibsl-foot a { color: #CFE6F6; }

@media (max-width: 991.98px) {
    .ibsl-head, .ibsl-main, .ibsl-foot { padding-left: 24px; padding-right: 24px; }
    .ibsl-wrap { justify-content: center; }
    .ibsl-card { margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .ibsl-head { padding: 18px; }
    .ibsl-head .ibsl-badge { display: none; }
    .ibsl-logo-white { height: 36px; }
    .ibsl-main { padding: 0 14px 20px; }
    .ibsl-wrap { gap: 24px; }
    .ibsl-pitch .ibsl-badge, .ibsl-lead, .ibsl-kpis, .ibsl-tags { display: none; }
    .ibsl-pitch h2 { font-size: 28px; }
    .ibsl-card { padding: 22px 18px 18px; }
    .ibsl-logo { height: 36px; }
    .ibsl-card h1 { font-size: 24px; }
    .ibsl-foot { padding: 14px 18px; justify-content: center; text-align: center; }
}
