.mdp-card { max-width: 540px; }

.mdp-icon-ok  { background-color: #f0fdf4; color: #16a34a; }
.mdp-icon-ko  { background-color: #fef2f2; color: #dc2626; }
.login-icon.mdp-icon-ok svg { color: #16a34a; stroke: #16a34a; }
.login-icon.mdp-icon-ko svg { color: #dc2626; stroke: #dc2626; }

.mdp-message {
    color: #4b5563;
    font-size: 14px;
    text-align: center;
    margin: 8px 0;
}

.mdp-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 16px 0;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.mdp-warning svg { flex-shrink: 0; color: #d97706; margin-top: 2px; }

.mdp-box {
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
}
.mdp-value {
    display: block;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 2px;
    word-break: break-all;
    user-select: all;
}
.mdp-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}
.mdp-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}
.mdp-actions .btn-secondary:hover { background: #f3f4f6; color: #ef6f6c; border-color: #ef6f6c; }

.mdp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #ef6f6c, #e25b58);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(239,111,108,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mdp-cta:hover {
    background: linear-gradient(135deg, #e25b58, #d04a47);
    box-shadow: 0 6px 16px rgba(239,111,108,0.35);
    transform: translateY(-1px);
}
.mdp-cta:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(239,111,108,0.25); }
.mdp-cta svg { flex-shrink: 0; }

.mdp-tiny  {
    margin-top: 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
}
.mdp-tiny code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }

/* ============================================
   MOT DE PASSE OUBLIÉ (demande + nouveau mot de passe)
   ============================================ */
.mdp-message-discret {
    color: #6b7280;
    font-size: 13px;
}

.mdp-lien-inline {
    color: #ef6f6c;
    font-weight: 600;
}

.mdp-lien-secondaire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.mdp-lien-secondaire:hover,
.mdp-lien-secondaire:focus-visible { color: #ef6f6c; }

.mdp-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 16px 0;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.mdp-info svg { flex-shrink: 0; color: #0284c7; margin-top: 1px; }

/* Dans un formulaire, l'écart vient déjà du gap : pas de marge en plus */
.login-form .login-error { margin-top: 0; }

.mdp-erreur-haut {
    margin: 0 0 20px;
    text-align: left;
}
.mdp-erreurs {
    margin: 0;
    padding-left: 18px;
}

/* Jauge de force + critères (repris du profil) */
.mdp-strength {
    margin-top: 8px;
    text-align: left;
}
.mdp-strength-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.mdp-strength-fill {
    height: 100%;
    width: 0;
    background: #dc2626;
    transition: width 0.18s ease, background 0.18s ease;
    border-radius: 4px;
}
.mdp-strength-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.mdp-criteres {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.9;
    text-align: left;
}
.mdp-criteres li {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}
.mdp-criteres .crit-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: transparent;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}
.mdp-criteres li.crit-ok { color: #047857; }
.mdp-criteres li.crit-ok .crit-dot {
    background: #10b981;
    color: #fff;
}
.mdp-criteres li.crit-ok .crit-dot::before { content: '✓'; }
.mdp-criteres li.crit-ko .crit-dot::before { content: '·'; }

.mdp-confirmation {
    display: block;
    min-height: 16px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}
.mdp-confirmation-ok { color: #047857; }
.mdp-confirmation-ko { color: #dc2626; }
