/**
 * Styles partagés de l'écran "connexion requise" des shortcodes membres.
 *
 * Copie autonome des règles .demg-login-* (source d'origine :
 * extensions/gestion_apps/public/assets/css/gestion-apps-09-buttons.css).
 * Enregistré sous son propre handle (demg-login-shared) et enqueue
 * directement par chaque extension qui affiche un écran de connexion,
 * pour ne plus dépendre du handle partagé fragile espace_membre-frontend-css.
 *
 * @package DEMG
 */

.demg-login-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 1800px;
    margin: 20px auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demg-login-container {
    max-width: 500px;
    margin: 0 auto;
}

.demg-login-container h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.demg-login-container p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 0;
}

.demg-login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.demg-login-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demg-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    text-decoration: none;
}

.demg-login-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ── Carte "accès restreint" (même design que gestion_mandats/gestion_commissions/
   espace_mandat/espace_commission) — icône en badge dégradé, titre, texte, bouton. ── */
.demg-login-access-card {
    max-width: 420px;
    margin: 64px auto;
    padding: 40px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(47, 36, 131, .10);
    text-align: center;
}

.demg-login-access-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2F2483 0%, #662282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demg-login-access-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #fff;
}

.demg-login-access-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.demg-login-access-card p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.demg-login-access-card p:last-child { margin-bottom: 0; }

.demg-login-access-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #2F2483 0%, #662282 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s ease;
}

.demg-login-access-btn:hover { opacity: .9; color: #fff !important; }
