:root {
    --wl-bg: #04170d;
    --wl-bg2: #0a3a1c;
    --wl-lime: #9be10a;
    --wl-lime-btn: #84d321;
    --wl-ink: #0b1d12;
    --wl-muted: #44566b;
    --wl-green: #1b7a2f;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.wl-body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: #fff;
    background: radial-gradient(1100px 700px at 15% 40%, var(--wl-bg2) 0%, var(--wl-bg) 70%), var(--wl-bg);
}
.wl-lines { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.wl-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
    gap: 32px;
    align-items: center;
    padding: 40px 5vw;
}

/* ---- Gauche : marque ---- */
.wl-brand { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-bottom: 28vh; min-height: 560px; }
.wl-logo {
    width: 190px; height: 190px; border-radius: 50%;
    background: #fff; display: grid; place-items: center;
    border: 6px solid #5fb70a;
    box-shadow: 0 0 0 6px rgba(155, 225, 10, .18), 0 0 44px 10px rgba(155, 225, 10, .45);
    margin-bottom: 36px; overflow: hidden;
}
.wl-logo img { width: 74%; height: 74%; object-fit: contain; }
.wl-title { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.wl-title span { color: var(--wl-lime); margin-left: .25em; }
.wl-subtitle { margin: 14px 0 0; max-width: 34em; font-size: 1.1rem; line-height: 1.5; color: #eaf5ea; }
.wl-photo {
    position: fixed; left: 0; bottom: 0; z-index: -1;
    width: min(62vw, 980px); height: 40vh;
    background: url("/images/login/tanger.jpg") left bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%), linear-gradient(to right, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to top, #000 55%, transparent 100%), linear-gradient(to right, #000 70%, transparent 100%);
    mask-composite: intersect;
}

/* ---- Droite : carte ---- */
.wl-card {
    background: #fff; color: var(--wl-ink);
    border-radius: 28px; padding: 22px 26px 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
    width: 100%; max-width: 560px; justify-self: end;
}
.wl-partners {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: #f1f6f1; border-radius: 18px; padding: 8px; margin-bottom: 18px;
}
.wl-partner { display: flex; align-items: center; justify-content: center; height: 84px; min-height: 0; padding: 6px 10px; overflow: hidden; }
.wl-partner:nth-child(odd) { border-right: 2px solid #2a8a3a; }
.wl-partner img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.wl-h2 { margin: 4px 0 4px; font-size: 1.9rem; font-weight: 800; color: #000; }
.wl-lead { margin: 0 0 14px; color: var(--wl-muted); font-size: 1.02rem; line-height: 1.4; }
.wl-label { display: block; margin: 12px 0 6px; font-weight: 700; font-size: .98rem; }
.wl-field {
    position: relative; display: flex; align-items: center;
    border: 1.5px solid #d9dee3; background: #f6f7f8; border-radius: 14px;
    height: 54px; padding: 0 14px; gap: 12px;
}
.wl-field:focus-within { border-color: var(--wl-green); background: #fff; box-shadow: 0 0 0 3px rgba(27, 122, 47, .18); }
.wl-ico { flex: none; color: #222; }
.wl-field input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 1.02rem; color: var(--wl-ink);
}
.wl-field input::placeholder { color: #6b7a86; }
.wl-toggle { border: 0; background: none; color: var(--wl-green); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 2px; }
.wl-btn {
    display: block; width: 100%; margin-top: 20px; height: 54px;
    border: 0; border-radius: 14px; cursor: pointer;
    background: var(--wl-lime-btn); color: #0b1d00; font: inherit; font-size: 1.2rem; font-weight: 800;
    transition: filter .15s, transform .05s;
}
.wl-btn:hover { filter: brightness(1.06); }
.wl-btn:active { transform: translateY(1px); }
.wl-btn:focus-visible, .wl-toggle:focus-visible, .wl-links a:focus-visible { outline: 3px solid #1b7a2f; outline-offset: 2px; }
.wl-links { margin-top: 12px; text-align: center; font-size: .95rem; }
.wl-links a { color: var(--wl-green); font-weight: 600; text-decoration: none; }
.wl-links a:hover { text-decoration: underline; }
.wl-secure {
    margin-top: 16px; padding-top: 12px; border-top: 1px solid #d9dee3;
    display: flex; gap: 8px; align-items: center; justify-content: center; color: #2d3b46; font-size: .98rem;
}
.wl-secure svg { color: var(--wl-green); }
.wl-alert { margin: 8px 0 4px; padding: 10px 14px; border-radius: 12px; font-size: .95rem; }
.wl-alert ul { margin: 0; padding: 0; list-style: none; }
.wl-alert-err { background: #fdecec; color: #a11a1a; border: 1px solid #f3b9b9; }
.wl-alert-ok { background: #eaf7ea; color: #14602a; border: 1px solid #b9e3bf; }
.validation-summary-valid { display: none; }

/* ---- Tablette / mobile ---- */
@media (max-width: 960px) {
    .wl-page { grid-template-columns: 1fr; padding: 24px 16px 40px; gap: 24px; align-items: start; }
    .wl-brand { min-height: 0; padding-bottom: 0; align-items: center; text-align: center; }
    .wl-logo { width: 120px; height: 120px; border-width: 4px; margin-bottom: 20px; }
    .wl-subtitle { font-size: 1rem; }
    .wl-card { max-width: none; justify-self: stretch; border-radius: 22px; padding: 16px 16px 14px; }
    .wl-photo { width: 100vw; height: 30vh; opacity: .55; }
    .wl-partner { height: 64px; }
    .wl-h2 { font-size: 1.6rem; }
}
