/* Style principal pour le formulaire de connexion */
.wpsl-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wpsl-login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.wpsl-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpsl-site-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.wpsl-site-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
}

.wpsl-site-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.wpsl-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wpsl-form-group {
    margin-bottom: 20px;
}

.wpsl-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.wpsl-form-group input[type="text"],
.wpsl-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.wpsl-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.wpsl-remember-me label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.wpsl-remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.wpsl-submit-button {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wpsl-submit-button:hover {
    background: #5a67d8;
}

.wpsl-login-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.wpsl-login-footer p {
    margin: 10px 0;
}

.wpsl-login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.wpsl-login-footer a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.wpsl-register-link a {
    display: inline-block;
    padding: 8px 16px;
    background: #f7f7f7;
    border-radius: 5px;
    font-weight: 500;
}

.wpsl-back-home {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Style pour le message "déjà connecté" */
.wpsl-already-logged {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 20px 0;
}

/* Style pour le lien de déconnexion */
.wpsl-logout-link {
    display: inline-block;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.wpsl-logout-link:hover {
    background: #c82333;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .wpsl-login-box {
        padding: 30px 20px;
    }
    
    .wpsl-site-title {
        font-size: 20px;
    }
}

/* Styles pour la page mot de passe oublié */
.wpsl-lostpassword-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wpsl-lostpassword-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 40px;
}

.wpsl-lostpassword-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpsl-lostpassword-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0 5px;
}

.wpsl-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wpsl-success-message a {
    color: #155724;
    text-decoration: underline;
    font-weight: 500;
}


/* Style pour le lien mot de passe oublié dans le formulaire de connexion */
.wpsl-lost-password-link {
    margin-top: 15px;
    text-align: center;
}

.wpsl-lost-password-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.wpsl-lost-password-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .wpsl-lostpassword-box {
        padding: 30px 20px;
    }
}

/* Styles pour le bouton connexion/déconnexion */
.wpsl-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.wpsl-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.wpsl-login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.wpsl-login-button:hover::before {
    left: 100%;
}

.wpsl-logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.wpsl-logout-btn:hover {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.wpsl-icon {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.wpsl-login-button:hover .wpsl-icon {
    transform: scale(1.2);
}

/* Variantes de boutons */
.wpsl-btn-small {
    padding: 6px 15px;
    font-size: 13px;
}

.wpsl-btn-large {
    padding: 14px 35px;
    font-size: 17px;
}

.wpsl-btn-rounded {
    border-radius: 50px;
}

.wpsl-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.wpsl-btn-outline.wpsl-logout-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.wpsl-btn-outline:hover {
    background: #667eea;
    color: white;
}

.wpsl-btn-outline.wpsl-logout-btn:hover {
    background: #dc3545;
    color: white;
}

/* Animation de chargement pour le bouton */
.wpsl-loading {
    position: relative;
    color: transparent !important;
}

.wpsl-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wpsl-spin 0.8s linear infinite;
}

@keyframes wpsl-spin {
    to { transform: rotate(360deg); }
}

/* Styles pour les exemples de démo */
.my-custom-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2) !important;
}

.my-custom-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba87e 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}

/* Message pour le système parallèle */
.wpsl-alternative-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.wpsl-alternative-login a {
    color: #667eea;
    font-weight: 500;
}

.wpsl-alternative-login a:hover {
    text-decoration: underline;
}