/* ===== Wrapper principale ===== */
.malu-cp-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0 40px;
    padding: 0 10px;
}

/* ===== Card ===== */
.malu-cp-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,1);
    border: 1px solid #e3e9f3;
    box-sizing: border-box;
    
}

.malu-cp-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2933;
    text-align: center;
}

.malu-cp-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* ===== Errori / Successo ===== */
.malu-cp-error {
    max-width: 480px;
    margin: 10px auto 15px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}
.malu-cp-error p {
    margin: 0 0 4px;
}
.malu-cp-error p:last-child {
    margin-bottom: 0;
}

.malu-cp-success {
    max-width: 480px;
    margin: 10px auto 15px;
    padding: 14px 16px;
    border-radius: 10px;
    box-sizing: border-box;
}
.malu-cp-btn-login {
    margin-top: 8px;
    display: inline-block;
    border-radius: 20px !important;
    padding: 8px 18px !important;
    font-size: 14px;
}

/* ===== Menu profilo (dedicato a questa pagina) ===== */
.malu-cp-profile-container {
    margin-bottom: 14px;
    text-align: right;
}
.malu-cp-profile-trigger {
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f3f4ff;
    border: 1px solid #d1d5ff;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    font-size: 14px;
    position: relative;
}
.malu-cp-profile-trigger:hover {
    background-color: #e0e7ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.malu-cp-profile-dropdown {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1000;
}
.malu-cp-profile-dropdown.malu-cp-visible {
    display: block;
}
.malu-cp-profile-dropdown li {
    padding: 6px 14px;
}
.malu-cp-profile-dropdown li:hover {
    background-color: #f3f4ff;
}
.malu-cp-profile-dropdown a,
.malu-cp-profile-dropdown span {
    text-decoration: none;
    color: #111827;
    display: block;
    font-size: 14px;
}
.malu-cp-profile-dropdown a:hover {
    color: #1d4ed8;
}

/* ===== Form ===== */
.malu-cp-form {
    margin-top: 5px;
}
.malu-cp-group {
    margin-bottom: 16px;
}
.malu-cp-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 15px;
}
.malu-cp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.malu-cp-input-wrap input[type="password"],
.malu-cp-input-wrap input[type="text"] {
    flex: 1;
    padding-right: 40px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #f9fafb;
}
.malu-cp-input-wrap input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
    background-color: #ffffff;
}

/* Bottone occhio */
.malu-cp-toggle {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    user-select: none;
    color: #9ca3af;
    font-size: 16px;
    padding: 0;
}
.malu-cp-toggle:hover {
    color: #4b5563;
}
/* 🔥 Rimuove bordo/outline rosso ovunque (desktop + mobile) */
.malu-cp-toggle:focus,
.malu-cp-toggle:active,
.malu-cp-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.malu-cp-toggle::-moz-focus-inner {
    border: 0;
}

/* Requisiti password */
.malu-cp-meter {
    list-style: none;
    padding-left: 0;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}
.malu-cp-meter li {
    color: #b91c1c;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.malu-cp-meter li::before {
    content: "•";
    font-size: 16px;
}
.malu-cp-meter li.malu-cp-pass {
    color: #15803d;
}
.malu-cp-meter li.malu-cp-pass::before {
    content: "✔";
    font-size: 14px;
}

/* Messaggio match */
.malu-cp-match-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
}

/* Pulsante invio */
.malu-cp-submit.button.button-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 11px 16px;
    font-size: 15px;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.1s ease;
    font-weight: 600;
    margin-top: 6px;
}
.malu-cp-submit.button.button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}
.malu-cp-submit.button.button-primary:disabled {
    background: #a5b5cd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .malu-cp-profile-container {
        text-align: center;
    }
    .malu-cp-profile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .malu-cp-profile-dropdown {
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 260px;
    }
    .malu-cp-card {
        padding: 20px 16px 22px;
        border-radius: 14px;
    }
    .malu-cp-title {
        font-size: 20px;
    }
    .malu-cp-subtitle {
        font-size: 13px;
    }
    .malu-cp-input-wrap input {
        font-size: 14px;
        padding: 9px 40px 9px 11px;
    }
    .malu-cp-toggle {
        right: 7px;
        font-size: 15px;
    }
    .malu-cp-submit.button.button-primary {
        font-size: 14px;
        padding: 10px 14px;
    }
}
/* ===== Wrapper principale ===== */
.malu-cp-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0 40px;
    padding: 0 10px;
}

/* ✅ AGGIUNGI QUESTO: spazio per il menu in alto a destra (desktop) */
@media (min-width: 769px) {
    .malu-cp-wrapper {
        margin-top: 80px; /* spazio sufficiente per il menu + padding */
    }
}