:root {
    --gren: #3d6b22;
    --gren-dark: #345c1d;
    --ink: #111827;
    --muted: #6b7280;
    --label: #374151;
    --paper: #fbfaf7;
    --line: #d1d5db;
    --field: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.sso-split { display: flex; min-height: 100vh; }

/* ---- Colonne gauche : formulaire ---- */
.sso-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
}
@media (min-width: 640px) { .sso-left { padding: 32px 56px; } }
@media (min-width: 1024px) { .sso-left { width: 42%; } }

.sso-logo { height: 96px; width: auto; }

.sso-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.sso-card { width: 100%; max-width: 380px; }

.sso-eyebrow { font-size: 14px; color: var(--muted); text-transform: capitalize; margin: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.4px; margin: 6px 0 0; color: var(--ink); }
.sso-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 8px 0 0; }

.sso-error {
    margin-top: 24px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 14px;
    padding: 12px 16px;
}

form { margin-top: 32px; }
.sso-field { margin-bottom: 20px; }

label { display: block; font-size: 14px; font-weight: 500; color: var(--label); margin-bottom: 7px; }

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--field);
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--gren); box-shadow: 0 0 0 3px rgba(61, 107, 34, .14); }

.sso-pass { position: relative; }
.sso-pass input { padding-right: 48px; }
.sso-eye {
    position: absolute; top: 0; bottom: 0; right: 0;
    width: 48px; display: flex; align-items: center; justify-content: center;
    background: none; border: 0; color: #9ca3af; cursor: pointer;
}
.sso-eye:hover { color: #4b5563; }
.sso-eye svg { width: 18px; height: 18px; }

button[type=submit] {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--gren);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
button[type=submit]:hover { background: var(--gren-dark); }

.sso-help { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.sso-help a { color: var(--gren); text-decoration: none; font-weight: 500; }
.sso-help a:hover { text-decoration: underline; }

.sso-footer { font-size: 12px; color: #9ca3af; text-align: center; }

/* ---- Colonne droite : photo ---- */
.sso-right { display: none; position: relative; flex: 1; }
@media (min-width: 1024px) { .sso-right { display: block; } }
.sso-right img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.sso-overlay { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); }
.sso-caption { position: absolute; bottom: 24px; left: 32px; right: 32px; color: rgba(255, 255, 255, .95); font-size: 15px; line-height: 1.6; max-width: 32rem; }
.sso-caption span { color: rgba(255, 255, 255, .7); }
