/* Règles historiques conservées pour préserver le rendu des autres modules. */
.input-group-text {
    background: #f6f7f9;
    border-color: #e9ecef;
}

.form-control {
    border-color: #e9ecef;
}

.btn-primary {
    background: var(--lx-brand-primary);
    border-color: var(--lx-brand-primary);
}

.btn-primary:hover {
    filter: brightness(0.95);
}

/* Styles réservés aux pages d’authentification. */
.lx-auth-page {
    --lx-auth-accent: #a0c43b;
    --lx-auth-ink: #363f47;
    min-height: 100vh;
    margin: 0;
    color: var(--lx-auth-ink);
    background: #e8e2d6 url('../images/auth-workspace.jpg') center / cover no-repeat fixed;
}

.lx-auth-page .lx-auth-main {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: 3rem;
}

.lx-auth-page .lx-auth-card {
    width: 38.4%;
    min-width: 520px;
    max-width: 720px;
    background: #fff;
    border: 5px solid #ededeb;
    border-radius: 3px;
}

.lx-auth-page .lx-auth-body {
    padding: clamp(2rem, 3vw, 3.5rem) clamp(2rem, 4.8vw, 5.5rem) 2rem;
}

.lx-auth-page .lx-auth-heading {
    margin-bottom: clamp(2rem, 4vw, 4.5rem);
}

.lx-auth-page .lx-auth-greeting {
    color: var(--lx-auth-accent);
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
}

.lx-auth-page .lx-auth-title {
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
}

.lx-auth-page .lx-auth-field + .lx-auth-field {
    margin-top: 1.8rem;
}

.lx-auth-page .form-label {
    margin-bottom: .7rem;
    font-size: clamp(1.15rem, 1.65vw, 1.85rem);
    line-height: 1.4;
}

.lx-auth-page .input-group-text {
    justify-content: center;
    min-width: 46px;
    color: var(--lx-auth-ink);
    background: #f8f9fa;
    border-color: #dce0e5;
}

.lx-auth-page .form-control {
    min-width: 0;
    min-height: 42px;
    color: var(--lx-auth-ink);
    background: #fff;
    border-color: #dce0e5;
    font-size: .9rem;
}

.lx-auth-page .form-control:focus,
.lx-auth-page .form-check-input:focus {
    border-color: #7d9c2b;
    box-shadow: 0 0 0 .2rem rgb(160 196 59 / 25%);
}

.lx-auth-page .lx-auth-remember {
    margin-top: 1.4rem;
    font-size: clamp(1rem, 1.15vw, 1.3rem);
}

.lx-auth-page .form-check-input:checked {
    background-color: #799b26;
    border-color: #799b26;
}

.lx-auth-page .lx-auth-actions {
    margin-top: 2rem;
}

.lx-auth-page .lx-auth-submit {
    width: 278px;
    max-width: 100%;
    min-height: 64px;
    padding: .65rem 1.25rem;
    color: #fff;
    background: var(--lx-auth-accent);
    border: 1px solid var(--lx-auth-accent);
    border-radius: 13px;
    font-size: clamp(1.25rem, 1.65vw, 1.85rem);
    line-height: 1.3;
}

.lx-auth-page .lx-auth-submit:hover,
.lx-auth-page .lx-auth-submit:focus-visible,
.lx-auth-page .lx-auth-submit:active {
    color: #fff;
    background: #819f2d;
    border-color: #819f2d;
}

.lx-auth-page .lx-auth-submit:focus-visible,
.lx-auth-page .lx-auth-link:focus-visible {
    outline: 3px solid #426617;
    outline-offset: 4px;
}

.lx-auth-page .lx-auth-footer {
    padding: 2rem clamp(2rem, 4.8vw, 5.5rem);
    background: #fff;
    border-top: 4px solid #f0f0ee;
}

.lx-auth-page .lx-auth-link {
    color: var(--lx-auth-ink);
    text-underline-offset: 3px;
}

.lx-auth-page .lx-auth-footer .lx-auth-link {
    font-size: clamp(1rem, 1.15vw, 1.3rem);
}

.lx-auth-page .lx-auth-link:hover {
    color: #647e23;
}

.lx-auth-page .lx-auth-footer .bi {
    color: var(--lx-auth-accent);
    font-size: 1.5rem;
    -webkit-text-stroke: 2px;
}

.lx-auth-page .lx-auth-note {
    margin-top: 1.5rem;
    color: #626a70;
    font-size: .85rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .lx-auth-page .lx-auth-main {
        padding: 2rem;
    }

    .lx-auth-page .lx-auth-card {
        width: 480px;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lx-auth-page {
        background-position: 40% center;
        background-attachment: scroll;
    }

    .lx-auth-page .lx-auth-main {
        padding: 1.25rem .75rem;
        justify-content: center !important;
    }

    .lx-auth-page .lx-auth-body {
        padding: 2rem 1.25rem;
    }

    .lx-auth-page .lx-auth-footer {
        padding: 1.25rem;
    }

    .lx-auth-page .lx-auth-submit {
        min-height: 54px;
    }
}
