/* ==========================================================================
   Modale login / registrazione (ospiti) - click sul cuore preferiti.
   Lo shell overlay e' autonomo (login.css fornisce gli stili dei campi
   .bfz-login-*). Namespace .bfz-auth-modal per non interferire col pattern
   .bfz-modal di lavora-con-noi / apri-in-franchising.
   ========================================================================== */

.bfz-auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(11, 22, 44, 0.55);
    z-index: 1100;
    padding: 24px 16px;
    overflow-y: auto;
    overflow-x: hidden; /* clip honeypot off-screen (.bfz-hp-field left:-9999px) */
    animation: bfzAuthFadeIn 0.25s ease;
}

.bfz-auth-modal.active {
    display: flex;
}

@keyframes bfzAuthFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bfzAuthSlideIn {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bfz-auth-modal .bfz-modal-content {
    background: #ffffff;
    border-radius: 22px;
    max-width: 460px;
    width: 100%;
    margin: auto;
    padding: clamp(26px, 3.5vw, 44px);
    position: relative;
    box-shadow: 0 24px 64px rgba(11, 22, 44, 0.28);
    animation: bfzAuthSlideIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.bfz-auth-modal .bfz-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #8b96a8;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.bfz-auth-modal .bfz-modal-close:hover {
    color: #1d4f96;
    transform: rotate(90deg);
}

/* Header piu' compatto rispetto alla pagina login a tutta altezza. */
.bfz-auth-modal .bfz-login-header {
    margin-bottom: 22px;
}

.bfz-auth-modal .bfz-login-header .bi-house-heart-fill,
.bfz-auth-modal .bfz-login-header .bi-person-plus-fill {
    font-size: 2.4rem;
    color: #e74c6f;
    display: block;
    margin-bottom: 10px;
}

.bfz-auth-modal .bfz-login-title {
    font-size: 1.4rem;
}

/* Pannello nascosto (attributo hidden). */
.bfz-auth-panel[hidden] {
    display: none;
}

/* Toggle login <-> registrazione. */
.bfz-auth-switch {
    text-align: center;
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: #5a6a8a;
}

.bfz-auth-switch-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #e74c6f;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.bfz-auth-switch-btn:hover {
    color: #c0392b;
}
