:root {
    --auth-ink: #17212b;
    --auth-muted: #77828b;
    --auth-paper: #f3f3f0;
    --auth-panel: #fbfbf9;
    --auth-accent: #ad8548;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body.syndical-auth {
    min-height: 100vh;
    color: var(--auth-ink);
    background: var(--auth-paper);
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .92fr) minmax(480px, 1.08fr); }
.auth-brand-panel {
    min-height: 100vh; display: flex; flex-direction: column;
    padding: clamp(2rem, 5vw, 4.5rem); overflow: hidden; position: relative;
    color: #f7f8f6;
    background:
        radial-gradient(circle at 15% 4%, rgba(173,133,72,.25), transparent 25rem),
        radial-gradient(circle at 92% 90%, rgba(88,70,155,.2), transparent 24rem),
        #17242c;
}
.auth-brand-panel::after {
    content: ""; width: 32rem; height: 32rem; position: absolute; right: -17rem; bottom: -18rem;
    border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255,255,255,.018), 0 0 0 10rem rgba(255,255,255,.012);
}
.auth-family-mark { display: flex; align-items: center; gap: .8rem; width: fit-content; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.auth-family-emblem { width: 38px; height: 38px; position: relative; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); }
.auth-family-emblem::before {
    content: ""; width: 7px; height: 7px; position: absolute; left: 15px; top: 15px;
    border-radius: 50%; background: #d2a75e;
    box-shadow: -8px 0 0 rgba(255,255,255,.98), 8px 0 0 rgba(255,255,255,.5);
}
.auth-family-mark strong { display: block; font-size: 1.52rem; line-height: 1; letter-spacing: -.05em; }
.auth-family-mark strong span { color: rgba(255,255,255,.5); font-weight: 400; }
.auth-family-mark small { display: block; margin-top: .35rem; color: rgba(255,255,255,.45); font-size: .61rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.auth-brand-copy { margin: auto 0; max-width: 38rem; position: relative; z-index: 1; }
.auth-kicker { margin: 0 0 1.25rem; color: #d2a75e; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.auth-brand-copy h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.5rem, 6vw, 6.4rem); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.auth-brand-copy h1 em { color: #aabec2; font-weight: 500; }
.auth-brand-copy > p:last-child { max-width: 34rem; margin: 1.6rem 0 0; color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.7; }
.auth-family-list { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.auth-product { --product: #9aa7ad; padding: .43rem .65rem; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.035); font-size: .68rem; }
.auth-product b { color: var(--product); font-weight: 700; }
.auth-product-droit { --product: #7ca3c7; }
.auth-product-local { --product: #76bbc4; }
.auth-product-analyste { --product: #a899dc; }
.auth-product-accord { --product: #d59a6e; }

.auth-form-panel {
    min-height: 100vh; display: flex; flex-direction: column; padding: clamp(2rem, 5vw, 4.5rem);
    background: radial-gradient(circle at 100% 0, rgba(45,115,130,.08), transparent 27rem), var(--auth-panel);
}
.auth-origin { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; color: #889299; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-origin-dot { width: 6px; height: 6px; border-radius: 50%; background: #5da08b; box-shadow: 0 0 0 4px rgba(93,160,139,.12); }
.form-card { width: min(100%, 430px); margin: auto; }
.form-eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; color: var(--auth-muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.form-eyebrow .num { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d4dadb; border-radius: 8px; color: var(--auth-ink); background: #fff; letter-spacing: 0; }
.form-title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600; line-height: .95; letter-spacing: -.035em; }
.form-title em { color: var(--auth-accent); font-weight: 500; }
.form-sub { margin: .8rem 0 2.4rem; color: var(--auth-muted); font-size: .92rem; line-height: 1.55; }
form.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; }
.field label { display: flex; justify-content: space-between; margin-bottom: .45rem; color: #69757d; font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.field label::after { content: attr(data-index); color: #aeb6ba; }
.field input { width: 100%; padding: .85rem .95rem; border: 1px solid #d4dadd; border-radius: 10px; outline: none; color: var(--auth-ink); background: #fff; font: 500 1rem "Source Sans 3", sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.field input::placeholder { color: #aab2b6; font-weight: 400; }
.field input:focus { border-color: #527f8b; box-shadow: 0 0 0 4px rgba(82,127,139,.11); }
.field .helper { margin: .6rem 0 0; color: var(--auth-muted); font-size: .75rem; line-height: 1.55; }
.submit-row { display: flex; margin-top: .35rem; }
button.submit { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; border: 1px solid #172f39; border-radius: 10px; color: #fff; background: #172f39; cursor: pointer; font: 700 .72rem "Source Sans 3", sans-serif; letter-spacing: .09em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
button.submit:hover { transform: translateY(-1px); background: #24505e; box-shadow: 0 10px 24px rgba(23,47,57,.16); }
button.submit .arrow { font: 1.2rem "Cormorant Garamond", serif; transition: transform .18s ease; }
button.submit:hover .arrow { transform: translateX(3px); }
.link-row { display: flex; justify-content: flex-end; margin-top: 1rem; }
.quiet-link { color: #68757c; font-size: .72rem; font-weight: 700; text-decoration: none; }
.quiet-link:hover { color: #2d7382; }
.alert { margin: 0 0 1.2rem; padding: .85rem 1rem; border: 1px solid #e4c1bd; border-radius: 10px; color: #7d3935; background: #fff7f5; font-size: .82rem; }
.alert strong { display: block; margin-bottom: .25rem; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.alert-warning { border-color: #e1c89a; color: #71572b; background: #fffbf2; }
.alert-ok { border-color: #acd2c2; color: #2f654f; background: #f3fbf7; }
.prose { color: #58666e; font-size: .9rem; line-height: 1.65; }
.prose p { margin: 0 0 1rem; }
.fineprint { display: flex; align-items: center; gap: .5rem; margin: 1.65rem 0 0; color: #98a1a6; font-size: .64rem; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.fineprint-lock { width: 8px; height: 7px; border: 1px solid #7a969c; border-radius: 2px; position: relative; }
.fineprint-lock::before { content: ""; width: 5px; height: 5px; position: absolute; left: 1px; top: -5px; border: 1px solid #7a969c; border-bottom: 0; border-radius: 5px 5px 0 0; }
.auth-footer { display: flex; justify-content: space-between; color: #a0a7aa; font-size: .64rem; }

@media (max-width: 880px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: auto; padding: 1.35rem; }
    .auth-brand-copy { margin: 3rem 0 2.5rem; }
    .auth-brand-copy h1 { font-size: clamp(3.3rem, 14vw, 5rem); }
    .auth-brand-copy > p:last-child, .auth-family-list { display: none; }
    .auth-form-panel { min-height: auto; padding: 1.35rem; }
    .form-card { margin: 3rem auto 4rem; }
}
@media (max-width: 520px) {
    .auth-origin { display: none; }
    .auth-family-mark small { display: none; }
    .auth-brand-copy { margin: 2.5rem 0 1.5rem; }
    .auth-brand-copy h1 { font-size: 3.4rem; }
    .auth-footer { gap: .5rem; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
    .auth-family-mark, .auth-brand-copy, .form-card { animation: auth-rise .55s ease-out both; }
    .auth-brand-copy { animation-delay: .06s; }
    .form-card { animation-delay: .1s; }
    @keyframes auth-rise { from { opacity: 0; transform: translateY(8px); } }
}
