﻿/* ==========================================================================
   THEME PAR DÉFAUT LEGREENER AUTHENTIFICATION BLAZOR
   ========================================================================== */

:root {
    /* Palette de couleurs */
    --lg-auth-primary: #2e7d32; /* Vert LeGreener */
    --lg-auth-primary-hover: #1b5e20;
    --lg-auth-secondary: #6c757d;
    --lg-auth-secondary-hover: #5a6268;
    --lg-auth-danger: #d32f2f;
    --lg-auth-danger-hover: #9a0007;
    --lg-auth-success: #388e3c;
    --lg-auth-warning: #f57c00;
    /* Arrière-plans et bordures */
    --lg-auth-bg-card: #ffffff;
    --lg-auth-border-color: #e0e0e0;
    --lg-auth-text-color: #212121;
    --lg-auth-text-muted: #616161;
    --lg-auth-radius: 8px;
    --lg-auth-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Carte principale --- */
.lg-auth-card {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-register {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-registerpending {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-switchorganization {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Carte principale --- */
.lg-auth-card-large {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-full {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-useradminlisting {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-usersinrole {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-rolelisting {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-ldapgroups {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-ldapusers {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-ldaptestservice {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


.lg-auth-card-ldaptest {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


.lg-auth-card-organizationlisting {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-auth-card-membermanagement {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--lg-auth-bg-card);
    border: 1px solid var(--lg-auth-border-color);
    border-radius: var(--lg-auth-radius);
    box-shadow: var(--lg-auth-shadow);
    color: var(--lg-auth-text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Titre --- */
.lg-auth-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--lg-auth-text-color);
}

/* --- Groupes de formulaires & Labels --- */
.lg-auth-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .lg-auth-group label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--lg-auth-text-muted);
    }

/* --- Champs de saisie (Inputs / Selects) --- */
.lg-auth-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--lg-auth-border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    color: var(--lg-auth-text-color);
}

    .lg-auth-input:focus {
        outline: none;
        border-color: var(--lg-auth-primary);
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
    }

/* --- Boutons --- */
.lg-auth-btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--lg-auth-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .lg-auth-btn-primary:hover {
        background-color: var(--lg-auth-primary-hover);
    }

.lg-auth-btn-secondary {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: var(--lg-auth-secondary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .lg-auth-btn-secondary:hover {
        background-color: var(--lg-auth-secondary-hover);
    }

.lg-auth-btn-danger {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: var(--lg-auth-danger);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .lg-auth-btn-danger:hover {
        background-color: var(--lg-auth-danger-hover);
    }

.lg-auth-btn-logout {
    padding: 0.65rem 1rem;
    background-color: var(--lg-auth-danger);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .lg-auth-btn-logout:hover {
        background-color: var(--lg-auth-danger-hover);
    }

/* --- Messages d'alerte --- */
.lg-auth-alert-error {
    padding: 0.75rem 1rem;
    background-color: #ffebee;
    border-left: 4px solid var(--lg-auth-danger);
    color: #c62828;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.lg-auth-alert-success {
    padding: 0.75rem 1rem;
    background-color: #e8f5e9;
    border-left: 4px solid var(--lg-auth-success);
    color: #2e7d32;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* --- Badges de statut 2FA --- */
.lg-auth-badge-success {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lg-auth-badge-warning {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}


/* --- Lien Mot de passe oublié --- */
.lg-auth-forgot-link {
    font-size: 0.875rem;
    color: var(--lg-auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .lg-auth-forgot-link:hover {
        color: var(--lg-auth-primary-hover);
        text-decoration: underline;
    }

.lg-auth-forgot-container {
    margin-top: 0.25rem;
    text-align: right;
}