/* =====================================================================
 * Baratin Auth Widget — Connexion / Inscription
 * Style aligne sur le formulaire d'ajout d'exposition (expo-submit).
 * ===================================================================== */

.bauth-widget {
    max-width: 460px;
    margin: 0 auto;
    font-family: inherit;
    color: #222;
}

.bauth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #222;
}
.bauth-intro {
    color: #666;
    font-size: 15px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Bouton Google */
.bauth-google {
    text-align: center;
    margin-bottom: 8px;
}
.bauth-google .baratin-google-btn {
    width: 100%;
    justify-content: center;
}

/* Separateur "ou par email" */
.bauth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.bauth-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}
.bauth-divider span {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

/* Champs de formulaire (memes regles que .expo-field) */
.bauth-field {
    margin-bottom: 16px;
}
.bauth-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.bauth-field input[type="text"],
.bauth-field input[type="email"],
.bauth-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    /* 16px minimum pour eviter le zoom auto sur iOS */
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s;
}
.bauth-field input:focus {
    outline: none;
    border-color: #5300F2;
}

/* Checkbox "Se souvenir de moi" */
.bauth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin: -4px 0 14px;
    cursor: pointer;
    user-select: none;
}
.bauth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5300F2;
    cursor: pointer;
    margin: 0;
}

/* Boutons */
.bauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background .2s, box-shadow .2s, opacity .2s;
}
.bauth-btn-primary {
    background: #5300F2;
    color: #fff;
}
.bauth-btn-primary:hover {
    background: #4500cc;
    box-shadow: 0 4px 12px rgba(83, 0, 242, .25);
}
.bauth-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Messages d'erreur */
.bauth-error {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: #b00;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}
/* Variante "compte Google detecte" — informatif, pas alarmiste */
.bauth-error.bauth-error-google {
    background: #f0f4ff;
    border-color: #c5d2ff;
    color: #1a3a8a;
}

/* Honeypot anti-bot — invisible aux humains, atteignable par les bots */
.bauth-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Liens secondaires */
.bauth-lost-pass,
.bauth-switch {
    text-align: center;
    margin: 14px 0 0;
    font-size: 14px;
    color: #666;
}
.bauth-lost-pass a,
.bauth-switch a,
.bauth-link {
    color: #5300F2;
    font-weight: 600;
    text-decoration: none;
}
.bauth-lost-pass a:hover,
.bauth-switch a:hover,
.bauth-link:hover {
    text-decoration: underline;
}

/* Bouton style "lien" — utilise pour les toggles login/register
   afin d'eviter le handler bootscore qui ferme l'offcanvas au clic sur <a>. */
.bauth-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

/* ============ Variantes selon contexte ============ */

/* Dans l'offcanvas du header : un peu moins de padding et titre plus petit */
.offcanvas-body .bauth-widget {
    max-width: 100%;
    padding: 8px 4px;
}
.offcanvas-body .bauth-title {
    font-size: 20px;
}
.offcanvas-body .bauth-intro {
    font-size: 14px;
    margin-bottom: 18px;
}

/* Sur la page mon-compte : plus d'air vertical */
.woocommerce-account .bauth-widget {
    margin-top: 24px;
    margin-bottom: 40px;
}
