/* awesome-user-verification-email/assets/css/auve-public-style.css
 * Ce fichier définit l'apparence visuelle des éléments du plugin côté site : le spinner de chargement, l'état du lien de renvoi et le style des messages de succès.
 */

/* awesome-user-verification-email/assets/css/auve-public-style.css
 * Version Finale Nettoyée : Gestion du lien, du loader et du message de succès.
 */

/* 1. Style du lien de renvoi */
#auve-resend-btn {
    display: inline-block;
    margin-top: 5px;
    color: #0073aa;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}

#auve-resend-btn:hover {
    color: #005177;
}

/* Compatibilité spécifique pour ne pas jurer avec les thèmes */
.woocommerce-error #auve-resend-btn,
.forminator-error #auve-resend-btn {
    color: inherit;
}

/* 2. Le Spinner de chargement */
.auve-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 115, 170, 0.2);
    border-left-color: #0073aa;
    border-radius: 50%;
    animation: auve-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes auve-spin {
    to { transform: rotate(360deg); }
}

/* 3. États de chargement */
.auve-loading {
    opacity: 0.6;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none;
    color: #666 !important;
}

/* 4. Message de succès final */
.auve-resend-email-success-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 15px;
    background-color: #f0f9f1; /* Un vert très léger */
    color: #1e4620;
    border-left: 4px solid #46b450;
    border-radius: 0 4px 4px 0;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
}

/* L'icône SVG via pseudo-élément */
.auve-resend-email-success-msg::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    /* Coche SVG blanche sur fond vert */
    background-color: #46b450;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}



/*==================================
// BANDEAU POUR LES UTILISATEURS NON VERIFIES
// On ne bloque pas l'utilisateur à la première connexion,
// du coup on lui affiche partout sur le site un bandeau qui
// lui dit de verifier son email, ou il sera bloqué prochainement
==================================*/
.auve-verification-warning-style {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    border-bottom: 2px solid #ffeeba;
    position: relative;
    z-index: 9999;
}

.auve-verification-warning-style a {
    margin-left: 15px;
    text-decoration: underline;
    color: #856404;
    font-weight: bold;
}














/*===================================
// AUVE VERIFICATION
// Dès que l'uilisateur clique sur le lien dans l'email
====================================*/
#auve-verification-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden !important;
}
.dark #auve-verification-full-overlay {
    background: #111418;
}

.auve-verification-overlay-content {
    margin: 20px;
    position: relative;
    top: -100px;
}

.auve-verification-overlay-content .auve-verification-title {
    margin: 20px 0 20px;
    font-size: 24px;
    font-weight: 600;
}

.auve-verification-overlay-content .auve-verification-loading-text {
    color: #666;
    font-size: 16px;
    display: inline;
}
.dark .auve-verification-overlay-content .auve-verification-loading-text {
    color: #9098a3 !important;
}

.auve-verification-overlay-content .auve-verification-loading-text .auve-spinner {
    position: relative !important;
    margin-right: 0;
    top: -1px;
    margin-left: 1px;
}

.auve-verification-success-icon {
    width: 65px;
    height: 65px;
    background-color: #46b450;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 35px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(70, 180, 80, 0.3);
}

/**************/
/* Icône Info (Bleu) */
.auve-verification-info-icon {
    width: 65px; height: 65px;
    background: #0073aa; color: white;
    font-size: 30px; font-weight: bold; line-height: 65px;
    border-radius: 50%; margin: 0 auto;
}

/* Icône Erreur (Rouge) */
.auve-verification-error-icon {
    width: 65px; height: 65px;
    background: #d93025; color: white;
    font-size: 30px; font-weight: bold; line-height: 65px;
    border-radius: 50%; margin: 0 auto;
}

/* Bouton d'action dans l'overlay */
.auve-verification-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #0073aa;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.auve-verification-btn:hover {
    background: #005177;
}
/***************/